[PHP] Mulitpart form posts and mysql blobs

2003-11-14 Thread John Ryan
How are files encoded when theyre sent in mulitpart forms??? Is it the same as blob fields in mySQL databased when you use the LOAD_FILE() command?? If not, is it easy to convert from one to the other?? At the moment, Im taking the blob from mySQL and writing it to a file and then uploading that

[PHP] Re: [PHP-DB] Re: [PHP] Mulitpart form posts and mysql blobs

2003-11-14 Thread John Ryan
messy I want to be able to get the BINARY data from mySQL and send it via cURL directly. TIA - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: John Ryan [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, November 15, 2003 1:22 AM Subject: [PHP-DB] Re

[PHP] Web Applications and C++?

2003-11-01 Thread John Ryan
I assume sites like Amazon and Ebay does not use PHP to generate its pages. Does it use CGI and C++?? If so, does that mean a C++ program is run each time I request a page. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Generating Numbers from Strings

2003-10-31 Thread John Ryan
I've a bit of a problem, I want a random keyword pulled from my database. But I dont want it random all the time. I just want it random to each page. So I have the filename variable of the page. How do I somehow generate a 'constant' random number from this string that is constant to each file???

[PHP] Re: Generating Numbers from Strings

2003-10-31 Thread John Ryan
I've done that, but how do I generate a number out of that that's in a certain range? Thomas Seifert [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sat, 1 Nov 2003 00:37:32 - [EMAIL PROTECTED] (John Ryan) wrote: I've a bit of a problem, I want a random keyword pulled from my

[PHP] PNG to GIF conversion

2003-10-11 Thread John Ryan
How do I do this?? I have the latest version of GD with PNG, but no GIF. But I *have to* be able to convert images to gif. Is there any standalone php script that'll do it, or a cgi??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PNG to GIF conversion

2003-10-11 Thread John Ryan
for it on the main page @ stillhq.com On Saturday 11 October 2003 01:50 pm, John Ryan wrote: How do I do this?? I have the latest version of GD with PNG, but no GIF. But I *have to* be able to convert images to gif. Is there any standalone php script that'll do it, or a cgi??? -- Evan

Re: [PHP] PNG to GIF conversion

2003-10-11 Thread John Ryan
page @ stillhq.com On Saturday 11 October 2003 01:50 pm, John Ryan wrote: How do I do this?? I have the latest version of GD with PNG, but no GIF. But I *have to* be able to convert images to gif. Is there any standalone php script that'll do it, or a cgi??? -- Evan Nemerson [EMAIL

Re: [PHP] PNG to GIF conversion

2003-10-11 Thread John Ryan
, in the nominative, dative, and objective case, indicating the person or persons addressed. (Webster's Revised Unabridged Dictionary 1913). And believe it or not, the shift key is there for a reason. Have a nice day. On Saturday 11 October 2003 02:14 pm, John Ryan wrote: and i cant see

[PHP] apache logs reset at midnight

2003-09-27 Thread John Ryan
for some reason, my apache log files reset every night at 12, whihc i dont want. how do i change this in the apache httpd.conf file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] apache logs reset at midnight

2003-09-27 Thread John Ryan
PROTECTED] You sure you don't have a cron that run every night and rotates the log files such that the previous day's is archived? Rob. On Sat, 2003-09-27 at 16:49, John Ryan wrote: for some reason, my apache log files reset every night at 12, whihc i dont want. how do i change

[PHP] For Loops and Variables??

2003-09-13 Thread John Ryan
When I use for loops, at the start of each iteration, the variables hold the values from the last loop. First, is there an elegant way of clearing variables at the start of each loop rather than using unset???! It just seems wrong. Also, all my problems would be solved if variables in a for loop

[PHP] accept/type

2003-09-12 Thread John Ryan
Is it possible with an Apache confiugartion file to redirect users, if their browser sends a certain accept/type header, and somewhere else if not?? I dont want to do it with PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] curl and sent headers

2003-09-08 Thread John Ryan
is there any way of seeing exactly what headers cURL sent in a transfer, with PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: curl and sent headers

2003-09-08 Thread John Ryan
i found out myself if anyone wants to know... John Ryan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] is there any way of seeing exactly what headers cURL sent in a transfer, with PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: curl and sent headers

2003-09-08 Thread John Ryan
it sent to the site, i saw my problem straight away, and modified the PHP script. Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- John Ryan [EMAIL PROTECTED] wrote: is there any way of seeing exactly what headers cURL sent in a transfer, with PHP? --- John Ryan [EMAIL

[PHP] site with linux binaries??

2003-09-08 Thread John Ryan
hi, i wanna upgrade php, but i dont have, and can never have root access on my server, plus no gcc or anything, so is there any site with binaries of php for linux-x86, with pretty much, all extras and modules! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Opening Zip Files in Linux

2003-09-05 Thread John Ryan
This is kinda off topic, well.. depending on the answer. I downloaded a ZIP file to my server, and want to open it. My version of PHP wasnt compiled with the Zip uncompressing functions, otherwise Id do it with php, so I was wondering if there was a linux-x86 binary that just opens zip

[PHP] Re: Opening Zip Files in Linux

2003-09-05 Thread John Ryan
ive spent the last 2 hours looking for a solution. i was going to recompile php with zip support for one file. THANK YOU! John Herren [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] John Ryan wrote: This is kinda off topic, well.. depending on the answer. I downloaded a ZIP file

[PHP] opening remote tar.gz files

2003-09-02 Thread John Ryan
is it possible with PHP to download and open a remote tar.gz file?? I read in the manual that it is, but it never seems to work for me. I tried opening the file with fopen fopen(zlib://http://www.site.com/update.tar.gz;, r); but it didnt work Then I tried using the zlib functions but they just

Re: [PHP] opening remote tar.gz files

2003-09-02 Thread John Ryan
it definately always only contains one file Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote John Ryan ([EMAIL PROTECTED]): is it possible with PHP to download and open a remote tar.gz file?? I read in the manual that it is, but it never seems to work for me

[PHP] Re: google style paginating

2003-08-21 Thread John Ryan
just split up your total number of results ($num_rows) by the results per page (10, i think) and create a for loop to loop from page1 to pagex, creating a link with offset for each one. simple. Ted Conn [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I am new to this newsgroup and I

[PHP] HOW DO U SPLIT UP LARGE STRINGS?

2003-08-15 Thread John Ryan
I've a string with a huge mySQL query, seperated by a semi-colon and then line-break. You can't run this query staright to mySQL (and i dont want to try), so Im trying to split up the query into, say, 100 mysql commands at a time. Is it possible to split up a string every 100 semi-colons it

Re: [PHP] HOW DO U SPLIT UP LARGE STRINGS?

2003-08-15 Thread John Ryan
, you can use the split() method to break this up into pieces. Unless you are doing a large number of inserts on tables with several keys mysql will not be troubled too much by the number of queries you run. John Ryan wrote: I've a string with a huge mySQL query, seperated by a semi-colon

[PHP] Re: CURL

2003-08-14 Thread John Ryan
/function.curl-setopt.php On Tue, 5 Aug 2003 01:04:42 +0100, John Ryan [EMAIL PROTECTED] wrote: theres this site i want to use to execute a command by visting a url. like http://www.site.com/stuff.php?id=1234message=hello_world when i visit this in the browser when im logged

[PHP] CURL

2003-08-04 Thread John Ryan
theres this site i want to use to execute a command by visting a url. like http://www.site.com/stuff.php?id=1234message=hello_world when i visit this in the browser when im logged into www.site.com, it works as im logged in with cookies or sessions or whatever. but obviosuly i cant be loged in

[PHP] Re: subtracting dates...

2003-08-02 Thread John Ryan
) { $age = $calculatedage - 1; } you'll also need to do something like this with the day of the month if the user's bday is in the current month. at least... i think that works out :$ Craig Roberts John Ryan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, In mySQL, I store

[PHP] subtracting dates...

2003-08-02 Thread John Ryan
Hi, In mySQL, I store dates as -MM-DD, a standard DATE type. It stores users date of births. I need to calculate in a PHP script, the users age from this DOB. I get a PHP date in the same format as the mySQL and subtract, which returns the year rounded off. ie, it doesnt matter if your

Re: [PHP] subtracting dates...

2003-08-02 Thread John Ryan
yeah, thats the code i wrote myself (nearly). it gets the job done. thanks Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote John Ryan ([EMAIL PROTECTED]): Hi, hello ryan, In mySQL, I store dates as -MM-DD, a standard DATE type. It stores users date

[PHP] config failure php4.0.4 + apache 1.3.14

2001-01-19 Thread John Ryan
in /usr/local/src/apache_1.3.14/src/helpers. Error Output for sanity check = End of Error Report = Your help will be appreciated John Ryan Systems Manager King George V School -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL