[PHP] Problem with readfile

2003-08-27 Thread French, Alastair
wrong? I have checked the pathnames and the headers and all seems 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 att

RE: [PHP] a generic getsql() function

2003-06-25 Thread French, Alastair
_array[] = $arr or similar. and then move the return $arr to after the while loop, but then return $new_array not $arr. Hope this makes sense. Alastair == IMPORTANT NOTICE The information contained in this e-mail is confid

[PHP] Problem retrieving URLs

2003-06-11 Thread French, Alastair
ww.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 coba

[PHP] OT - representing data

2002-03-29 Thread Alastair Battrick
ut having to download all 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
If that's 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 PR

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

RE: [PHP] sessions

2002-03-20 Thread Alastair Battrick
There must be some whitespace in the script before the opening http://www.lightwood.net > I am kind of confused by an error I am getting when trying to destroy a > session. Here is the error that I am receiving along with the > code that is > causing the problem. > > Warning: Cannot send sess

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

2002-03-12 Thread Alastair Battrick
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: Ca

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

RE: [PHP] mktime() into TIMESTAMP ?

2002-03-04 Thread Alastair Battrick
arely 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 M

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 >

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() > { > $curr

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] Re: HTTP Server vars

2002-01-12 Thread Alastair
ts 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

[PHP] form values and the back button

2002-01-12 Thread Alastair
rm 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 c

[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

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 01A4B59FD1EBD311838100A

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">

[PHP] Strange Session Issues

2002-01-07 Thread Alastair
am having file permission 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-ma

Re: [PHP] problem reading sessions

2002-01-04 Thread Alastair
6a$f1321db0$[EMAIL PROTECTED]... > Have 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 - > F

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 i

[PHP] problem reading sessions

2002-01-04 Thread Alastair
on is registered' function - the string that is found in the session file (listed above) - true for the 'isset' function - size of zero - The warning: 'Warning: Undefined variable: blah ' Does anybody know why I would not be able to read these variables? thanks, alastair

[PHP] WAP and PHP

2001-01-23 Thread Alastair Binns
query string myself and create links in the code but as far as I can tell the postfield should send variables through to the script. TIA Al -- - Alastair Binns Programmer Lawton eMarketing 4 Grosvenor Square Southampton SO15 2BE Email: [EMAIL PROTECTED] Tel: 023 8082 8560 Fax: 023 8082 8566 A