zips, exchange, so will work for mapping, phone or
address validation, whatever your needs are. Hope someone find it useful.
http://www.briandunning.com/sample-data/
On Jan 28, 2010, at 3:52 PM, Brian Dunning wrote:
> I need a few million sample contact records - name, company, address, email
Hey all -
Glad some of you found that sample data helpful. :-)
I use PHP/MySQL to generate RSS feeds of my podcasts. The feed is submitted as
*.xml and I use .htaccess to redirect it to my PHP document. The start of the
document sets the right header and outputs the to prevent PHP from
tryi
Ugh. Stupid me. Thanks Robert. It was a type elsewhere in my code further down
the page. I was so hung up thinking it was an encoding or MIME or delivery
problem I didn't think to check my PHP.
Someone slap me upside the head please.
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
Hey all -
I'm selling a custom PHP solution to FileMaker users. It uses FileMaker's PHP
API, so everyone who has FileMaker Server is already set up to use it, but very
few of them have any knowledge of how to set up a server or do anything PHP
related. But I do want to add some level of code ob
Hey all -
I'm using simplexml-load-string just to validation a string of XML, and
libxml-get-errors to return any errors. It's always worked before, but today
it's choking on this line in the XML:
Basketball Personalized Notebook -
Jeff's
It's returning "Premature end of data in tag client_or
y 6, 2010, at 5:02 PM, Brian Dunning wrote:
> Hey all -
>
> I'm using simplexml-load-string just to validation a string of XML, and
> libxml-get-errors to return any errors. It's always worked before, but today
> it's choking on this line in the XML:
>
>
I was able to resolve this by changing the XML file encoding from UTF-8 to
ISO-8859-1. Works like a charm now, with the XML-encoded characters.
Thanks to all who offered their help.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have a project where I need to add some 2D barcodes onto some PDF files. I
plan to use fpdi, since I've used it before and am familiar with it, but I need
a source to generate the 2D barcodes, preferably as a png or jpg. Anyone have a
suggestion - either a local classfile or a reliable web ser
Hi Shiplu -
I also have a product with similar requirements. I searched a LOT and was never
able to find a free solution that I was satisfied with. Even a lot of the
commercial solutions required some server-side runtime EXE or something be
installed, and my customers are not tech savvy enough
Totally agree. But just in case it wasn't clear, you only need a Windows
computer once to run the obfuscator; once done the code runs on any PHP server.
On May 11, 2010, at 5:06 PM, Ashley Sheridan wrote:
> Does slightly limit you to the Windows platform though, which I always think
> is a
I'm using FPDI to add some stuff to some existing PDF documents. Works great,
except that it's slightly changing the size of the PDF document (the physical
page size, not the file size), which is unacceptable since this is for a
high-end print file. I've stripped out all the code to the bare bon
Solved it. Here's the solution:
$pdf = new fpdi();
$pdf->setSourceFile('D:\\DocShare\\'.$filename);
$tplidx = $pdf->ImportPage(1);
$s = $pdf->getTemplatesize($tplidx);
$pdf->AddPage($s['h'] > $s['w'] ? 'P' : 'L', array($s['w'], $s['h'])); // This
gets it the right dimensions
$pdf->useTemplate($tp
Hey - It looks like a PHP form on my server is insecure and is being used to
send spam. This is Rackspace's best guess. The problem is there are SO MANY
forms on all the web sites on this server that it would be a nightmare task to
try and look at them all to be sure they're properly secured.
I
Agreed that's a great overall strategy but what I need now is a way to track
down the offending script, within the next few days if possible.
On Jun 7, 2010, at 1:35 PM, Jim Lucas wrote:
> Change all the forms to use a single
> processing script and then you won't have such a big problem trackin
I think I must have misstated the problem. Thanks to everyone for the replies,
but the question is not how to fix it, it's how to find the script being
attacked. Many different admins manage many different sites on this server, and
I can't even begin to guess how many mail forms are on there fro
I'm currently geotargeting all the IPs in the log, and focusing on the hits
from Russia (the majority of these apache@ spams seem to be Russian). I've got
a much shorter list of scripts to look at now. Hopefully I'll find some that
just use mail() with no scrubbing.
--
PHP General Mailing List (
I'm trying to write a VERY simple script that does nothing but store all the
submitted GET and POST vars in a string and echo it out.
$response = print_r($_REQUEST, true);
echo $response;
The problem is it only shows GET vars. I've tried $POST instead of $_REQUEST
and it always gives an empty a
Sorry, my typo, $_POST is one of the options we tried, not $POST. It returns an
empty array also.
On Aug 18, 2010, at 1:50 PM, Joshua Kehn wrote:
> On Aug 18, 2010, at 4:45 PM, Brian Dunning wrote:
>
>> I'm trying to write a VERY simple script that does nothing
This was the complete code of the page (this is the POST version not the
REQUEST version):
Returns an empty array no matter what POST vars are sent. We fixed it by
changing it to this, which I've never even heard of, but so far is working
perfectly:
I have no idea what the problem was. Tha
I am kind of jacked here. I have a SimpleXML object that's been converted to an
array. In one of the nodes, for no reason I can see, the array is populated
differently if there is only one than if there are multiple
s.
If there is just one, my $order_item array looks like this:
Array
(
[or
If you read down to the bottom of the post, the function I used is given.
On Sep 28, 2010, at 3:47 PM, Nathan Nobbe wrote:
> On Tue, Sep 28, 2010 at 4:29 PM, Brian Dunning wrote:
> I am kind of jacked here. I have a SimpleXML object that's been converted to
> an array.
&g
Gents -
I'm trying to work with a major vendor's web service, but all my efforts are
met with a 401 authentication error response. I can log in manually to this URL
using these credentials through a browser, so I know the credentials are good.
Unfortunately the support guys at the vendor don't
Hey all -
I'm trying to provide reporting to users of our widget. Some may get 0 to 5
hits a day; others may get up to 10,000 hits a day. I need to define the range
of the graph (using one of Google's). If their max day is 7, I'd like the graph
to go from 0 to 10. If their max day is 5678, I'd
Hey all - I'm having no luck serving a .dmg from my online store. I stripped
down the code to just the following to debug, but no matter what I get a
zero-byte file served:
header('Content-Type: application/x-apple-diskimage'); // also tried
octet-stream
header('Content-Disposition: attac
Thanks, this suggestion from Dante completely solved the problem.
Replaced:
readfile('/var/www/mypath/My Cool Image.dmg');
With:
$fd = fopen ('/var/www/mypath/My Cool Image.dmg', "r");
while(!feof($fd)) {
set_time_limit(30);
echo fread($fd, 4096);
flush();
}
fclose ($fd);
It's now
I have a script that downloads a 267MB SQL file (it creates and loads a MySQL
database). Any idea how to do this? Obviously I'm not going to get a file that
size into memory to loop through.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How would you launch that from PHP?
On May 4, 2012, at 6:11 PM, tamouse mailing lists wrote:
> Is there any need to use PHP with this at all? If it's already in SQL,
> can't you just feed it to mysql?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
Hey all -
The articles on my web site already have a very nice stylesheet that produces a
print version. Does anyone know if there's a such a thing as a PHP class that
would let me put up a "Download PDF" link that would generate a PDF doc on the
fly, using that same stylesheet? I've used vario
I never found a solution to this myself.
On Apr 26, 2012, at 2:13 PM, Jim Giner wrote:
> For those of you with FPDF experience.
>
> I've just begun using it and have figured out how it works I think. I am
> still having trouble with the bottom of the page tho. Seems that if I get
> too close
I'm dealing with a Windows NT network that includes some digital printing
presses that also run Windows. PHP 5.3.8 is running on one NT machine. Its job
is to take CSV files that exist in a directory on one machine, and move them to
a directory on the digital presses. All the source and destinat
Regular Windows networking.
On Jul 30, 2012, at 2:29 PM, Mike Mackintosh
wrote:
>>
> What protocol are you targeting? FTP, SFTP, SSH, SMB, etc?
>
> --
> Mike Mackintosh
> PHP 5.3 ZCE
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey all -
I'm using mcrypt to store credit cards into MySQL. About 90% of them decrypt
fine, but about 10% decrypt as nonsense ("b1�\�JEÚU�A���" is a good example).
Maybe there is a character that appears in about 10% of my encryptions that's
not being encoded properly???
// Encryption is set
On Feb 13, 2011, at 12:44 AM, Richard Quadling wrote:
> You are
> using addslashes($_POST['cc_number']). Considering a credit card
> number is purely numeric, the addslashes would seem to be redundant as
> you don't need to escape numbers.
I do that routinely to all input fields as one additional
Hey all -
I've got long articles, the HTML for which comes out of MySQL. Works great. I
want to split it up so that I can insert ad blocks at various points within it.
The articles are all pretty long but they're of variable length. I want to chop
them up into three close-to-equal (doesn't have
Yes, thanks, what I'm looking for is how to do that.
On Feb 15, 2011, at 1:38 PM, Simon J Welsh wrote:
> Assuming you're only using tags, count the number of opening tags,
> divide by three. First ad block goes after the round($amount/3)-th ,
> second ad block goes after the round($amount/3*2
I just wanted to ping this, as it's becoming a serious problem. I hope someone
can help.
On Feb 11, 2011, at 2:42 PM, Brian Dunning wrote:
> Hey all -
>
> I'm using mcrypt to store credit cards into MySQL. About 90% of them decrypt
> fine, but about 10% decrypt as
My merchant provider levies monthly fines based on how many of their security
restrictions you fail to follow. I follow as many as are reasonably practical,
but I think it's virtually impossible to follow them all, such as absurdly
expensive (and probably unnecessary) hardware. IMHO, some of the
That's a great suggestion. I will try this and report back. It's also been
suggested to me that I should have base64_encoded the encryptions before
storing them in MySQL, so I'll try this option at the same time.
On Mar 1, 2011, at 2:04 PM, Ashley Sheridan wrote:
> Onto the problem of the data
Let's say I do a query:
$result = mysql_query("select * from tablename");
Is there some way I can manually update the contents of certain columns/records
in $result? I don't want to actually update MySQL, just the results that I'm
holding in memory for this script. Can I do it without convertin
I should have said "modify the contents of a MySQL resource".
On Mar 23, 2011, at 5:06 PM, Brian Dunning wrote:
> Let's say I do a query:
>
> $result = mysql_query("select * from tablename");
>
> Is there some way I can manually update the contents of
I'm looking for some geographic data, like ZIP codes, area codes, but it has to
be current and correct. Has anyone ever used the free web services at
webserviceX.net? Do you know anything about the data? How current/correct is
it? Seems to be an awful lot they're giving away for free.
--
PHP Gen
Here's my code:
error_reporting(E_ALL);
require_once('/var/www/mysite/includes/fpdi.php');
require_once('/var/www/mysite/includes/fpdf.php');
I have used fpdf many times and never had a problem with it. I've double
checked my pathnames until I'm blue in the face. But for some reason, the
script
Thanks, this helped me solve it. FPDI extends a class in FPDF, so I simply had
to reverse the order in which I call them and all is hunky dory.
On Jun 6, 2011, at 5:54 PM, Michael Shadle wrote:
>
> ini_set('display_errors', 1);
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
My server has GD but NOT ImageMagick. Can I convert a PDF doc to a PNG? I have
the PDFs stored as a files and I need to save an identical PNG alongside each.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The server does not have that software installed either. :-(
On Jun 14, 2011, at 1:53 PM, Richard Quadling wrote:
> I do that using an external tool pdf2png. For me, I use Cygwin.
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The PDFs are text only (white text on transparent background). I made them
using the FPDF, which was tedious to set up but works great. I've since learned
that I need PNG images, not PDFs. I know that I could rebuild them using GD,
but it's a lot of strings of text wrapping and formatting and th
I have heard back from Rackspace and ImageMagick is not going to happen for the
time being, but they say Ghostscript is installed. Is it possible to do this
completely with GS without ImageMagick? The PDFs are text only.
On Jun 15, 2011, at 2:28 AM, Richard Quadling wrote:
> I use PDF2PNG as t
Hey all -
I need to create PNG images with transparent backgrounds that contain text. The
text will come from four fields in a database, and needs to be centered, and
text wrapped. The fields are going to be of varying lengths, so each block of
text (which will be shown in a different font size
Help. I'm using PayPal's API to get a report of all the yesterday's
transactions. I'm in California, and I define "yesterday" as California's
yesterday, midnight to midnight.
PayPal wants the STARTDATE and ENDDATE provided in UTC/GMT. I'm building and
testing my report using this:
$start = gmd
Thanks everyone. It seems to be working correctly. You gave me some extra peace
of mind. I did set the date_default_timezone_set('America/Los_Angeles') but it
looks like that was in the defaults anyway. :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.n
Anyone know a way to update Google Plus via the 33669 SMS number?
Yes, I have seen the popular how-to instructions to get the secret email
address by using Google Voice and forcing the error message, but I'd prefer a
legit non-hack way to do it. I'd even be happy to pay for an SMS gateway rather
Sorry, I did not mention the implied "using PHP". Since everything I do & eat &
breathe is PHP, it didn't even occur to me to state the obvious. :-) :-)
On Mar 29, 2012, at 2:46 PM, Stuart Dallas wrote:
> Err, what has this got to do with PHP?!?
--
PHP General Mailing List (http://www.php.ne
That's EXACTLY what I was looking for. Thanks! Don't know why my Google-Fu
failed me... :-)
On Mar 29, 2012, at 5:26 PM, Don Wieland wrote:
> First Google+ (Google Plus) status update bot in PHP
> http://360percents.com/posts/first-google-google-plus-status-update-bot-in-php/
> Is that what you
I see URLs formatted like this:
http://tinyurl.com/xyz
How do you read that "xyz," since there's no "/?x=" preceding it? Is it
not a get parameter?
Just curious,
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm using an RSS feed that has WAY too much content, I only want the
first 10. I'm outputting the array with a foreach loop: is there a way
to limit it to only go through the first 10?
Thanks,
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/uns
Is there any way to specify a timeout on a file_get_contents()? I'm
trying to verify a URL but I don't want to spend more than a few
seconds on it.
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've found a number of PHP classes for parsing server logs, but I just
want to parse a single referer at a time. Anyone know of a class that
will do this?
1) Extract just the site from the full referer string,
2) Extract the query keyword (if any) no matter what search engine the
referer is fro
I have a Magpie RSS feed in an array, and I want to output it in random
order. What's the best (fastest) way to do this?
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mar 7, 2005, at 7:40 AM, M. Sokolewicz wrote:
array_rand()
But that's likely to give me the same element more than once. I want to
output the entire array but in a random order, like a shuffled deck of
cards.
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
http://www.php.net/shuffle
Boy do I feel stupid. Thanks!! :)
I always RTFM and STFW before posting - but somehow did not search the
PHP site for the word "shuffle."
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sharvan -
You won't find too many fans of overseas outsourcing on this list.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I did not subscribe to it in the first place
There goes that nefarious PHP-General again, randomly subscribing
unsuspecting innocents as part of its evil master plan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've always known that you can specify a domain when you set a cookie,
and for kicks I experimented with a test page setting a cookie for the
yahoo.com. Seems to me that browsers wouldn't allow this as it could
create any number of security problems. I tried the following code, and
the yahoo co
I suspect it's
for sub-domains of sites you administer and not completely different
domains altogether.
If this is true, and it's not possible for a site to set a cookie for a
completely different domain, then why do browsers have security options
to allow or prevent this specific action? I'm thi
You are misinterpreting the prefs in browsers, they can not do what
you ask.
That's fine, I'm perfectly willing to accept this - but can someone
explain what the pref IS for?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I know this isn't exactly a PHP question, but it's for a PHP site if
that helps :) :)
How would I mod_rewrite a request for /baseball.htm into
/query.php?q=baseball?
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How would I mod_rewrite a request for /baseball.htm into
/query.php?q=baseball?
This should be doing it as far as I can tell, but for some reason it's
not...
RewriteEngine on
RewriteRule /^(.+).htm$ /query.php?q=$1
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
I've been looking at the XML commands and am feeling a bit overwhelmed.
My needs are simple and I'm hoping there's an easy solution that I'm
just missing. I have a hunk of well-formed XML in a variable, $xml, and
it contains only one instance of x.xx. I just want to
get the $price out of $xml.
Does anyone know of any PHP classes for processing the Amazon or eBay
XML feeds?
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Anyone know if it's possible to use Magpie (or similar) using MySQL for
the caching instead of text files? I couldn't find anything in their
docs.
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I know this is a common question but I have RTFM and STFW until I'm
blue in the face - I really need some help here. :)
I've got some forms into which users are going to enter text that
frequently contains funny characters (pilcrows, foreign text, etc). So
I need to encode it before writing i
I've been going through a number of easy XML parsing examples on the
web, and they all have one thing in common: the XML is in a file, which
they read in 4K chunks and parse.
My application will be retrieving the XML from a web service,
presumably like $xml = file_get_contents($url). I was assu
All the resources I've found on the web for URL encoding values within
an XSL stylesheet are either .NET or Java, so I'm looking for some help
with how to do this using PHP's special flavor of XML/XSL.
Within the XSL doc, I've got:
http://www.anrdoezrs.net/click-1692198-5463217?loc={$ItemLink}"
Are you saying to embed that within the XSL? Will it process, and will
the XSL variable be valid for PHP?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all - it seems the longer I use PHP, the stupider my questions are
getting. I finally got my XML parsed into an array, but perhaps my
skills at dealing with the array are not where I thought they were.
My array print_r's out like this:
Array
(
[PARAS] => Array
(
[PARA] => Arra
I have a MySQL database with about a million records. I'd like to use
the SQL command "order by RAND()" but my ISP won't let me: whenever
the server gets spidered, Google overloads their MySQL server because
of all the overhead of that command. I can't just cloak the spiders
because I need
That's great, thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all -
My background is mostly with Lasso. One cool feature is the ability
to make "LassoApps" - single file applications that are secure and
can be sold & distributed without providing access to the source.
Does PHP offer any such capability?
- Brian
--
PHP General Mailing List (http://ww
I need to write a cron job that retrieves a zipped XML file via FTP,
unzips it, and then imports the XML into MySQL. I haven't done any of
these three specific functions yet. Before I tear my hair out on each
of these functions, can anyone point me to a simple example of any or
all three?
Check this out: I'm returning a list of the last 30 days, looping
through i, subtracting it from $end_date where $end_date is 2004-04-10
00:00:00. I'm just trying to derive a timestamp $check_date for each
iteration, like 1081321200. Here's the code within the loop:
$check_date = mktime(0, 0, 0
On Apr 14, 2004, at 7:25 AM, Ford, Mike [LSS] wrote:
Because of such problems, you should never use a time anywhere near
the DST hour-change when you are calculating consecutive dates, and
most especially not a time that could conceivably be shifted into the
adjacent day (i.e. 00:00-00:59)
It w
I STFW and RTFM and I still can't figure out why this returns a 1064
parse error:
SELECT * FROM 'my_table' WHERE ('field_1' LIKE '%$keyword%' OR
'field_2' LIKE '%$keyword%' OR 'field_3' LIKE '%$keyword%') AND
'status' = 'active';
Anyone? TIA!
- B1ff Lamer
--
PHP General Mailing List (http://
uotes?
-Original Message-
From: Brian Dunning [mailto:[EMAIL PROTECTED]
Sent: Friday, April 23, 2004 11:19 AM
To: [EMAIL PROTECTED]
Subject: [PHP] OK SQL experts...
I STFW and RTFM and I still can't figure out why this returns a 1064
parse error:
SELECT * FROM 'my_table' WHERE ('fiel
It gives the same error when I run it in phpmyadmin.
On Apr 23, 2004, at 8:34 AM, Edward Peloke wrote:
does it just return the error when running in the php page? If you
pull it
out can you run it in mysql without errors?
-Original Message-
From: Brian Dunning [mailto:[EMAIL PROTECTED
Backticks, single quotes, or nothing at all makes no difference. I
believe the parsing error is due to my parentheses or AND/OR structure.
Any thoughts on that?
On Apr 23, 2004, at 8:32 AM, John W. Holmes wrote:
From: "Brian Dunning" <[EMAIL PROTECTED]>
I STFW and RTFM a
--Original Message-----
From: Brian Dunning [mailto:[EMAIL PROTECTED]
Sent: Friday, April 23, 2004 11:36 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] OK SQL experts...
Backticks, single quotes, or nothing at all makes no difference. I
believe the parsing error is due to my parentheses or AND/OR stru
phpmyadmin echoes it out exactly as I copied & pasted into my first
post.
On Apr 23, 2004, at 8:56 AM, Edward Peloke wrote:
if you echo out the query..what is the output?
-Original Message-
From: Brian Dunning [mailto:[EMAIL PROTECTED]
Sent: Friday, April 23, 2004 11:36 AM
To: [E
I don't have access to the MySQL command line; it's hosted at my ISP.
:(
On Apr 23, 2004, at 8:54 AM, Mark wrote:
--- Brian Dunning <[EMAIL PROTECTED]> wrote:
Yes, I've checked and rechecked the spelling on everything. I've
been
testing with a word that I know appe
if that works move up into:
SELECT * FROM my_table WHERE (field_1 LIKE '%$keyword%') AND status =
'active';
Yes, I actually did exactly that. Everything works until I have more
than one statement inside the (x LIKE x OR x LIKE x) parens. That's why
I figured there has to be something wrong with m
On Apr 23, 2004, at 10:13 AM, John Nichel wrote:
Brian Dunning wrote:
I STFW and RTFM and I still can't figure out why this returns a 1064
parse error:
SELECT * FROM 'my_table' WHERE ('field_1' LIKE '%$keyword%' OR
'field_2' LIKE '%$keyw
On Apr 23, 2004, at 10:27 AM, Edward Peloke wrote:
doesn't look like your $keyword value contains anything.
My error. Here is the actual return:
You have an error in your SQL syntax. Check the manual that corresponds
to your MySQL server version for the right syntax to use near
''my_table' WHER
You have an error in your SQL syntax. Check the manual that
corresponds
to your MySQL server version for the right syntax to use near
''my_table' WHERE ('field_1' LIKE '%%' OR 'field2'
Because you are using a single quotes around your table/field
names. Remove them or use ` (back tick). As sugges
You have an error in your SQL syntax. Check the manual that
corresponds
to your MySQL server version for the right syntax to use near
''my_table' WHERE ('field_1' LIKE '%%' OR 'field2'
Because you are using a single quotes around your table/field
names. Remove them or use ` (back tick). As sugges
Is there a true max size or do I just have something messed up
somewhere
that I need to tweak??
I've got a client who needs their customers to upload large files for
printing this way - and it stops at 30MB. There is some setting in
Windows XP that we have not been able to change. It's been a lo
I'm sure there's a really simple way to do this: how can I grab the
source code of a specified web page and store it in a variable? Is
there something like this:
$siteCode = functionI'mLookingFor('www.123.com/index.htm');
Thanks,
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsub
On May 20, 2004, at 5:43 PM, raditha dissanayake wrote:
I'm sure there's a really simple way to do this: how can I grab the
source code of a specified web page and store it in a variable?
Never mind, I found it:
$string = get_file_contents('www.123.com');
- Brian
--
PHP General Mailing List (http:
You probably mean...
$string = file_get_contents("http://www.123.com";);
Whoops
Well, it worked, so I must have typed it correctly in my code... :) :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In case anyone cares, here is a site that gives away a free zip code
database that's complete and current, and includes latitude and
longitude so you can do distance calculations:
http://www.zipwise.com/free-zip-database.php
Hope it's useful to someone,
- Brian
--
PHP General Mailing List (htt
I have a form and the people who submit are likely to include a bunch
of "¶" characters. (That's a paragraph symbol in case it doesn't come
through the list correctly.)
However when I read it out of MySQL it comes back as "¶". What can I
do about this? Thanks!
- Brian
--
PHP General Mailing L
The first line of my file is session_start(); but whenever I try to set
or reference $_SESSION['anything'] I get:
Undefined variable: _SESSION
What's up with that???
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
101 - 200 of 363 matches
Mail list logo