[PHP] Problem with readfile

2003-08-27 Thread French, Alastair
to be correct. The browser produces a dialog with the correct information in it, i.e what file type and the name. Thanks Alastair This email and any attached files are confidential and intended solely for the use of the individual

RE: [PHP] a generic getsql() function

2003-06-25 Thread French, Alastair
, but then return $new_array not $arr. Hope this makes sense. Alastair == IMPORTANT NOTICE The information contained in this e-mail is confidential. It may also be legally privileged. It is intended only for the stated

[PHP] Problem retrieving URLs

2003-06-11 Thread French, Alastair
: file(http://www.xx.uk:81/;) - Success in /home/sites/site70/users/afrench/web/get_test.php on line 3 Warning: Invalid argument supplied for foreach() in /home/sites/site70/users/afrench/web/get_test.php on line 5 The server is a cobalt with PHP v4.1.2 Thanks Alastair French

[PHP] OT - representing data

2002-03-29 Thread Alastair Battrick
26000. TIA Alastair Battrick Senior Developer Lightwood Consultancy Ltd http://www.lightwood.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] fsockopen

2002-03-26 Thread Alastair Battrick
Is $tempPort set ? Alastair Battrick Senior Developer Lightwood Consultancy Ltd http://www.lightwood.net -Original Message- From: Christoph Starkmann [mailto:[EMAIL PROTECTED]] Sent: 26 March 2002 12:40 To: '[EMAIL PROTECTED]' Subject: [PHP] fsockopen Hi! I'm trying to check

RE: [PHP] fsockopen

2002-03-26 Thread Alastair Battrick
not it, try adding this instead of your single echo line: while (!feof ($fp)) { $line = fgets($fp, 4096); echo $line; } As that will return and echo all the page, not just the header. Alastair -Original Message- From: Christoph Starkmann [mailto:[EMAIL PROTECTED]] Sent: 26 March 2002 12

RE: [PHP] sessions

2002-03-20 Thread Alastair Battrick
There must be some whitespace in the script before the opening ?php Lose that and the error should go with it. Alastair Battrick Senior Developer Lightwood Consultancy Ltd http://www.lightwood.net I am kind of confused by an error I am getting when trying to destroy a session. Here

RE: [PHP] Re: Can't display PNG images

2002-03-12 Thread Alastair Battrick
, and if you give this to us it would help. Alastair Battrick Senior Developer Lightwood Consultancy Ltd http://www.lightwood.net -Original Message- From: Jordan S. Jones [mailto:[EMAIL PROTECTED]] Sent: 12 March 2002 11:29 To: [EMAIL PROTECTED] Subject: [PHP] Re: Can't display PNG images

RE: [PHP] number_format

2002-03-08 Thread Alastair Battrick
why not multiply the number by 1000 and then use str_pad($in,6,0,STR_PAD_LEFT) Alastair Battrick Senior Developer Lightwood Consultancy Ltd http://www.lightwood.net -Original Message- From: Scott St. John [mailto:[EMAIL PROTECTED]] Sent: 08 March 2002 17:02 To: [EMAIL PROTECTED

RE: [PHP] mktime() into TIMESTAMP ?

2002-03-04 Thread Alastair Battrick
have to do this. In the end, I guess it depends if you want to do the formatting of the date field when you're inserting the data (use TIMESTAMP) or when you're pulling it out (use INT). Alastair Battrick Lightwood Consultancy Ltd http://www.lightwood.net -Original Message- From: Erik

RE: [PHP] get_browser();

2002-02-18 Thread Alastair Battrick
Have you got the browscap.ini file installed properly ? and have you got a up to date version of browscap.ini ? and What is reported by IE visitng the script ? Alastair -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED]] Sent: 18 February 2002 17:48 To: [EMAIL

RE: [PHP] how a function 'return' statement works

2002-02-14 Thread Alastair Battrick
Do you not have to make $_SERVER a global variable in the function ? Alastair Lightwood Consultancy Ltd Hm... I tried quite a few variations on this. I can't seem to get any displayable value out of this function. function get_current_page_name() { $current_page_name = explode

RE: [PHP] Cheap, PHP, mySQL hosting!

2002-02-13 Thread Alastair Battrick
Lookin for about 50 Megs with php4, mySQL and the works. Any economical hosts?? You could try: http://www.datasnke.co.uk And I am biased... Alastair Lightwood Consultancy Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] form values and the back button

2002-01-12 Thread Alastair
on the previous page. I really don't want to have to keep all the data and repopulate the form if I don't have to. thanks, alastair -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] Re: HTTP Server vars

2002-01-12 Thread Alastair
in the last few days..). cheers, alastair Gerard Samuel [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hey all. I was wondering. Is it safe to use HTTP global variables ie $HTTP_POST_VARS etc in my scripts? Thought I read somewhere that they weren't sa

[PHP] session_unregister and register_globals = Off

2002-01-10 Thread Alastair
I'm having difficulty trying to figure out how unregister a variable when register_globals is turned on. I've tried session_unregister but it doesn't seem to do anything. thanks, alastair -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP] Strange Session Issues

2002-01-07 Thread Alastair
problems because some data is actually being written. The only data missing (and the most crucial) is the contents of each those variables. Does anybody have any suggestions? Thanks! alastair -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] Strange Session Issues

2002-01-07 Thread Alastair
I've turned it off. When I try reading a variable using $HTTP_SESSION_VARS[blah] but it says that there is no index for 'blah'. thanks! alastair Kirk Johnson [EMAIL PROTECTED] wrote in message 01A4B59FD1EBD311838100A0C98BE0D9AD5EFB@chef">news:01A4B59FD1EBD311838100A0C98BE0D9AD5EFB@chef.

Re: [PHP] Strange Session Issues

2002-01-07 Thread Alastair
WOO HOO!!! :-) Thanks Kirk! I didn't realize that you had to use session_vars to write the variables as well. That's a huge weight taken off my chest. :-) cheers, alastair Kirk Johnson [EMAIL PROTECTED] wrote in message 01A4B59FD1EBD311838100A0C98BE0D9AD5EFC@chef"

[PHP] problem reading sessions

2002-01-04 Thread Alastair
these variables? thanks, alastair -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] problem reading sessions

2002-01-04 Thread Alastair
I get the error: 'Warning: Undefined index: blah' when I use the long name. As far as I can tell it doesn't seem to be actually writing the data into the session file. Am I missing a crucial step somewhere? alastair Kevin Stone [EMAIL PROTECTED] wrote in message 003401c19563$95ee2e00$[EMAIL

Re: [PHP] problem reading sessions

2002-01-04 Thread Alastair
you set the session.save_path properly in php.ini ? By default it is set to /tmp which doesn't work under Win* systems. You need to point it to a valid directory on your machine. HTH - Original Message - From: Alastair [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January