Re: [PHP] Re: Reading from a file using fgets()

2002-08-30 Thread @ Edwin
I see what you mean. But, personally, if the documentation didn't explicitly say anything about it, I'd assume that it's from top to bottom and that there's no option--of course, I could be wrong you know, there must be something hidden... - E Ok, file() is docuemted, but it doesn't say

[PHP] Re: Properly installing curl in windows 2000

2002-08-30 Thread Steinar Kolnes
A.J. It seems that you have exact same problem as me. Everything seems correctly set up, the phpinfo shows; curl CURL support enabled CURL Information libcurl 7.9 (OpenSSL 0.9.6b) For the third day, I am trying to find out, but still I have not got any useful information from

[PHP] open blocks in one include and close it in another

2002-08-30 Thread Heiko Mundle
Hi, is there an workaround to open blocks (e.g after an if condition) in the first include and close this block in another? with the curly brace i get parse errors. I want to do this: startblock.inc: ?php if ( !$iPageRight ) { echo p class=\fError\access denied!/p; }

[PHP] Re: Properly installing curl in windows 2000

2002-08-30 Thread Dave Withnall
It seems that you have exact same problem as me. Everything seems correctly set up, the phpinfo shows; curl CURL support enabled CURL Information libcurl 7.9 (OpenSSL 0.9.6b) If you see this above then you have php installed with curl To use PHP's CURL support you must also compile

Re: [PHP] Average Number For Math Functions

2002-08-30 Thread JohnP
Ok I think your definently going in the right direction - when I put this into my series I seem to be getting this message for each result: Resource id #40 or some other number that in some way represents something? Any Clue? Here is my SQL: $rsum =mysql_query(select sum(rating) from

[PHP] Mail problem

2002-08-30 Thread Mark Colvin
The script below works on my development web server which sits on our company LAN. When I transfer the script to our isp hosted webserver, the script does not work. I changed 192.168.10.9/iarnaweb/ to read localhost/ for the isp webserver version (I have also tried replacing localhost with the

[PHP] Re: GD Graphics Library

2002-08-30 Thread Henry
Does it have to be in the US? Henry René fournier [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... There are several functions in the GD library that I really, really want to be able to use on several sites that I develop/manage. Unfortunately, the ISP I use,

[PHP] Useragent and file

2002-08-30 Thread Todd Pasley
Hi Im using file() to get the contents of a webpage. e.g // get a web page into an array $fcontents= file ($targeturl); However I dont know how to mimic a different useragent. Using LWP::UA (in perl) i can pretend to be iexplore6 running on win2k or anything i want.. Is there a way i can do

[PHP] Re: Mail problem

2002-08-30 Thread Manuel Lemos
Hello, On 08/30/2002 04:46 AM, Mark Colvin wrote: The script below works on my development web server which sits on our company LAN. When I transfer the script to our isp hosted webserver, the script does not work. I changed 192.168.10.9/iarnaweb/ to read localhost/ for the isp webserver

RE: [PHP] Re: Mail problem

2002-08-30 Thread Mark Colvin
Manuel, My development platform is linux 7.2 and php4.0.6. The production server is also linux (I think 7.2) but the php version 4.1.1. On your second point, do you mean I should say something like this - header(Location: http://ccmltdcouk.site.securepod.com/test.php;) This is our temporary

[PHP] Mail()....

2002-08-30 Thread Brian McGarvie
Is there a way to set the font on a plaintext email? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: How to handle multiple value checkboxes

2002-08-30 Thread COQUET,JULIEN (Non-HP-France,ex1)
name your checkboxes like so input type=checkbox name=mycheckbox[] value=1 on your result page you'll end up with an array of checked boxes. If the boxes are not checked they dont appear in the array. for quick and dirty debugging on your result page: ? print 'pre';

RE: [PHP] Mail()....

2002-08-30 Thread Scott Houseman
Hi there. Not on a plaintext mail, this will be decided by the mail client. If your format the mail using html, then you will be able to format the font. Regards -Scott -Original Message- From: Brian McGarvie [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 10:45 AM To:

[PHP] hide system output from header

2002-08-30 Thread Mark
i execute a system function which works great only prob is it breaks the header so what i need to know is how i can prevent the output from this and append it to a variable, i allready tried appending to variable but still outputted Regards Mark -- PHP General Mailing List

Re: [PHP] hide system output from header

2002-08-30 Thread Todd Pasley
You can use exec($command, $result); which will throw any stdout output into $result Im not sure if it works with stderr as well, you will have to try it :) Todd. - Original Message - From: Mark [EMAIL PROTECTED] To: Sent: Friday, August 30, 2002 7:06 PM Subject: [PHP] hide system

Re: [PHP] Mail()....

2002-08-30 Thread Justin French
on 30/08/02 6:57 PM, Scott Houseman ([EMAIL PROTECTED]) wrote: Not on a plaintext mail, this will be decided by the mail client. If your format the mail using html, then you will be able to format the font. ... but that still won't guarantee it'll work... the user will have to have the font

[PHP] Re: Mail()....

2002-08-30 Thread Brian McGarvie
It's a text-based newsletter... I have a solution i think... so it'll look the same... just need to verify that it *should* be the same... inserting the contents in html, but within a pre/pre? 2'nd, using the following headers, sends it as an attachment it seems... $headers = MIME-Version:

[PHP] PHP_AUTH_USER

2002-08-30 Thread Hendråwan Rinäldi
anyone can help me what is the script for log out WWW-authenticate -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Mail()....

2002-08-30 Thread Stas Maximov
If you need plaintext newsletter, you can not use HTML at all, even pretending that it is a plain-text. It will be screwed badly on the plaintext-only e-mail clients anyway. Stas - Original Message - From: Brian McGarvie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 30,

Re: [PHP] PHP_AUTH_USER

2002-08-30 Thread Liam MacKenzie
I'm afraid you're going to have to be more specific than that my friend. - Original Message - From: Hendråwan Rinäldi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 30, 2002 7:43 PM Subject: [PHP] PHP_AUTH_USER anyone can help me what is the script for log out

[PHP] .scr Attachments

2002-08-30 Thread Todd Pasley
Hi all, As I'm sure you are all aware (but this email is incase you are not), files with the extension .scr are executable on all windows platforms. Just now from someone on the list I have received two emails with .scr attachments. If you receive an attachment from this list, please check

[PHP] Re: need help with a chat code problem

2002-08-30 Thread Erwin
as each one I want to delete will be the smallest ID number (as it grows with each message added to it). I think you mean the lowest ID in the table and I suppose you're looking for a MySQL query. As of MySQL version 4 (currently in development) you can use delete from tablename where id in

RE: [PHP] Re: Mail problem

2002-08-30 Thread Mark Colvin
I have some more information that may be relevant to my problem. I compared the phpinfo() from both servers and there is a difference. The sendmail_from variable in the php.ini on my server is set to [EMAIL PROTECTED] The same variable on my isp's ini file is set to 'no value'. Would this stop my

[PHP] Reg exp help

2002-08-30 Thread Victor Spång Arthursson
Hi! I need some help with a reg exp… I'm building a little viewer for my http access logs, and what i'ld like to do is to clean it from alla hits from my own ip… Take for example: 194.236.30.24 - - [30/Aug/2002:11:46:29 +0200] GET /bildgalleri/createjpg.php?url=/v044file=v044_27.jpg

[PHP] problem with include

2002-08-30 Thread skitum
Hi all, Look at this code: // one.php ? include(two.php); ? --- html code --- // end file one.php // two.php ? include(three.php); ? --- html code --- //end two.php well, when I see in my browser www.myweb.com/two.php this shows two.php plus the include file in it three.php, so this works

Re: [PHP] problem with include

2002-08-30 Thread John Wards
hmm. It should have nothing to do with cookies unless you are using cookies in the scripts. Try using require rather than include to see if that makes any difference Cheers John Wards SportNetwork.net p.s. your english is as good as mine and i am scottish.. - Original Message -

Re: [PHP] problem with include

2002-08-30 Thread skitum
The same problem with require - Original Message - From: John Wards [EMAIL PROTECTED] To: skitum [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, August 30, 2002 1:02 PM Subject: Re: [PHP] problem with include hmm. It should have nothing to do with cookies unless you are

[PHP] a and validator problem

2002-08-30 Thread Peter Turcan
Hi all. I have a tag: a href=index2.php?pg=2 CV/a when I want to validate page (W3C online validator) , validator prints: Line 37, column 50: a href=index2.php?pg=2PHPSESSID=195c0283f8 ... ^Error: unknown entity PHPSESSID How can I solve this? (amp

Re: [PHP] problem with include

2002-08-30 Thread John Wards
hmmbeyond my scope...but I did the following to test ?//file one.php echoone; include (two.php); ? ?//file two.php echotwo; include (three.php); ? ?//file three.php echothree; ? And it echoed onetwothree must be some setting on your system but what I don't knwo John - Original

[PHP] Re: Simple regexp

2002-08-30 Thread Anil Kumar K.
You can use the following pattern with preg_match: /([a-f0-9]+)((:[a-f0-9]+){7})/i I made an assumption that you are using the x:x:x:x:x:x:x:x address format. Anil On Wed, 28 Aug 2002, Adam Alkins wrote: Hi Folks, Seeking some guidance here. My regexp knowledge is pathetic. I

Re: [PHP] Re: Mail problem

2002-08-30 Thread Erwin
The sendmail_from variable in the php.ini on my server is set to [EMAIL PROTECTED] The same variable on my isp's ini file is set to 'no value'. Would this stop my emails from being sent and if so can I change this value from within my script or would it have to be directly amended in the

RE: [PHP] PHP_AUTH_USER

2002-08-30 Thread Matt Schroebel
From: Hendråwan Rinäldi [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 5:44 AM Subject: [PHP] PHP_AUTH_USER anyone can help me what is the script for log out WWW-authenticate You can't log out of http authentication. Close the browser is it. Not very secure, eh. Use a

Re: [PHP] PHP_AUTH_USER

2002-08-30 Thread Stas Maximov
You can't log out of http authentication. Close the browser is it. Not very secure, eh. Use a session based login method if you need logout function. Why not? Sending this to the client should do the job: header('WWW-Authenticate: Basic realm=My Realm'); header('HTTP/1.0 401

[PHP] 'save as'

2002-08-30 Thread mdew
Running GNU/Debian Sid. Im Running into problems, Apache cant see the .php file (it brings up the save-as dialog everytime) I have this line enabled (see below) still no success AddType application/x-httpd-php .php installed php4 4.2.2-2, php4-mysql 4.2.2-2, phpnuke 5.6-3, apache 1.3.26-1.1.

RE: [PHP] PHP_AUTH_USER

2002-08-30 Thread Matt Schroebel
From: Stas Maximov [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 8:02 AM To: Matt Schroebel Cc: PHP General Subject: Re: [PHP] PHP_AUTH_USER You can't log out of http authentication. Close the browser is it. Not very secure, eh. Use a session based login method if

[PHP] Re: Reg exp help

2002-08-30 Thread Erwin
Take for example: 194.236.30.24 - - [30/Aug/2002:11:46:29 +0200] GET /bildgalleri/createjpg.php?url=/v044file=v044_27.jpg HTTP/1.1 200 8874 217.215.84.222 - - [30/Aug/2002:11:46:39 +0200] POST /weblogg.php HTTP/1.1 200 3149488 [more loglines] Here I'ld like to remove all lines that

RE: [PHP] Re: Mail problem

2002-08-30 Thread Mark Colvin
Still not resolved. I checked my local php.ini and the sendmail_path variable is commented out. If I do a phpinfo() on the same server, sendmail_path has a value of /usr/sbin/sendmail -t -i ? I don't know where it pick up this value from but I can send emails from this server. The production

[PHP] autocomplete list box

2002-08-30 Thread Petre Agenbag
Hi I am wondering if it is possible to write/create/implement an autocomplete type list box, something that will basically work the same as when you have a normal textbox in a form and have autocomplete enabled in the browser, but not quite exactly, I want the textbox and the listbox to be

Re: [PHP] how to have a form keep values when user hits back button?

2002-08-30 Thread Brent Baisley
As others have probably told you, you can't rely on the back button and don't try to disable it, it's part of the user interface. The user really needs to live with the fact that if they leave the page, they will lose the data entered. However, there is a way to retain the data as they enter

Re: [PHP] PHP_AUTH_USER

2002-08-30 Thread Stas Maximov
Yes, Matt, you were right about tracking the authorized state with a session. I actually thought about same thing: keeping a variable somewhere which will help to decide whether to send those Authenticate headers or not - just didn't realize you meant the same thing. :) And a little excerpt from

Re: [PHP] Re: Mail problem

2002-08-30 Thread Erwin
Am I correct in assuming that the SMTP and sendmail_from variables are only relevant for webservers on windows hosts and all I need to be concerned with is sendmail_path? Yes, that is correct. Did you check for existence of /usr/sbin/sendmail? Sendmail often resides in /usr/lib/sendmail, so

RE: [PHP] Re: Mail problem

2002-08-30 Thread M . A . Bond
I actually had to set the SMTP setting to localhost on our solaris boxes to get this to work. I discovered this because we have a few older machines without php.ini files altogether, and the default is to have this set (the older machines worked). Thanks Mark Bond -Original Message-

RE: [PHP] Re: Mail problem

2002-08-30 Thread Mark Colvin
Erwin, sendmail on my local server does indeed reside in /usr/lib/sendmail although phpinfo shows sendmail_path = /usr/sbin/sendmail -t -i it still sends the mail? Why is this the case and would you suggest anything to enable me to get my mail working with my isp. I do not have direct access to

[PHP] Re: autocomplete list box

2002-08-30 Thread Erwin
I am wondering if it is possible to write/create/implement an autocomplete type list box, something that will basically work the same as when you have a normal textbox in a form and have autocomplete enabled in the browser, but not quite exactly, I want the textbox and the listbox to be

Re: [PHP] autocomplete list box

2002-08-30 Thread Jason Wong
On Friday 30 August 2002 20:54, Petre Agenbag wrote: Hi I am wondering if it is possible to write/create/implement an autocomplete type list box, something that will basically work the same as when you have a normal textbox in a form and have autocomplete enabled in the browser, but not

RE: [PHP] Re: Mail problem

2002-08-30 Thread Mark Colvin
I have this set on both boxes. Here are the settings - local box (which does send mail)isp box (does not send mail) sendmail_from melocalhost.com 'no value' sendmail_path /usr/sbin/sendmail -t -i/usr/sbin/sendmail -t -i SMTP

Re: [PHP] OT - .scr Attachments

2002-08-30 Thread Jason Wong
On Friday 30 August 2002 18:11, Todd Pasley wrote: As I'm sure you are all aware (but this email is incase you are not), files with the extension .scr are executable on all windows platforms. If people are daft enough to be using M$ software AND they're daft enough to execute unsolicited

[PHP] open_basedir

2002-08-30 Thread Jens Winberg
Hello! My ISP is using the open_basedir restriction which (I think) is stopping me from using the function fopen to read a document on a different server. I have been in contact with the ISP and they want to allow me to use the fopen function for my purposes, but they have this restriction so

Re: [PHP] a and validator problem

2002-08-30 Thread Jason Wong
On Friday 30 August 2002 17:28, Peter Turcan wrote: Hi all. I have a tag: a href=index2.php?pg=2 CV/a when I want to validate page (W3C online validator) , validator prints: Line 37, column 50: a href=index2.php?pg=2PHPSESSID=195c0283f8 ...

[PHP] About html

2002-08-30 Thread kale
Hy, I have one question about html. 1. I have a form with 8 textbox. How can I put the tab order? When I press tab I want to jump from first textbox to textbox number 4 not to number 2. Thanks for answer. kale -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] About html

2002-08-30 Thread Liam . Gibbs
I have one question about html. 1. I have a form with 8 textbox. How can I put the tab order? When I press tab I want to jump from first textbox to textbox number 4 not to number 2. Well, this isn't an HTML list, but I know there is a way. Check out www.htmlhelp.com. Otherwise, Bravenet has

RE: [PHP] About html

2002-08-30 Thread Mark Colvin
Use the tabindex - td width=100 valign=topinput name=telno type=text size=60 maxlength=60 value= tabindex=1//td -Original Message- From: kale [mailto:[EMAIL PROTECTED]] Sent: 30 August 2002 08:45 To: [EMAIL PROTECTED] Subject: [PHP] About html Hy, I have one question about html.

[PHP] Re: autocomplete list box

2002-08-30 Thread Alex Piaz
Hi! Go to http://javascript.internet.com and look into the forms section. You´ll find what you need. Regards Alex Petre Agenbag writes: Hi I am wondering if it is possible to write/create/implement an autocomplete type list box, something that will basically work the same as when

[PHP] changing the include path

2002-08-30 Thread Henry
Hello All, Is it possible to change the include path when a script is runing without having to change the php.ini file? TIA Henry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Writing Files

2002-08-30 Thread Georgie Casey
How do you write files so that theyre chmoded 777 by default. the folders theyre written to are 0777 but the files aren't. so i cant delete or modify the files through PHP, i have to first chmod them with FTP, which takes ages. -- Regards, Georgie Casey [EMAIL PROTECTED]

[PHP] Re: changing the include path

2002-08-30 Thread lallous
refer to: string ini_set ( string varname, string newvalue) Henry [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello All, Is it possible to change the include path when a script is runing without having to change the php.ini file? TIA Henry --

RE: [PHP] OT - .scr Attachments

2002-08-30 Thread Todd Pasley
Hi If people are daft enough to be using M$ software AND they're daft enough to execute unsolicited executables then they deserve whatever they get. Yep I agree, although, I would prefer if people didnt then be email me again with already hundreds of emails a day... I dont need this as well.

Re: [PHP] Writing Files

2002-08-30 Thread Jason Wong
On Friday 30 August 2002 20:53, Georgie Casey wrote: How do you write files so that theyre chmoded 777 by default. the folders theyre written to are 0777 but the files aren't. so i cant delete or modify the files through PHP, i have to first chmod them with FTP, which takes ages. umask() --

Re: [PHP] Writing Files

2002-08-30 Thread Robert Cummings
Georgie Casey wrote: How do you write files so that theyre chmoded 777 by default. the folders theyre written to are 0777 but the files aren't. so i cant delete or modify the files through PHP, i have to first chmod them with FTP, which takes ages. There are a number of things you may find

Re: [PHP] 'save as'

2002-08-30 Thread Chris Hewitt
mdew wrote: Running GNU/Debian Sid. Im Running into problems, Apache cant see the .php file (it brings up the save-as dialog everytime) I have this line enabled (see below) still no success AddType application/x-httpd-php .php And restarted Apache? Is there more than one httpd.conf or is it

[PHP] Help with writing multiple records to a table

2002-08-30 Thread Duffy Betterton
I have a form that asks customers which of 42 categories they are interested in. I have created three tables to handle the results. Everything writes to the pf_survey table with no problems and only the first checkbox selected writes to the cat_survey table. What am I missing? Is it something in

Re: [PHP] Re: Mail()....

2002-08-30 Thread DL Neil
Brian, Please be aware that many email clients will NOT read HTML. The human readers are then presented with raw HTML and get very ...?... upset about it! (that's why list postings are not supposed to be in HTML/rich text format) Regards, =dn It's a text-based newsletter... I have a

Re: [PHP] Where is my REMOTE_USER?

2002-08-30 Thread Frank
At 16:42 30/8/2002 +1200, David Robley wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Is this snippet from the docs possibly relevant? Chapter 17. HTTP authentication with PHP The HTTP Authentication hooks in PHP are only available when it is running as an Apache module and is

[PHP] Email formatting

2002-08-30 Thread Ron Dyck
This is a slightly off topic question. My apologies to any that this may aggravate. Is it safe to assume that email addresses are accepted by all servers case insensitive? So that if I have an email application accepting emails I can safely strtolower($email) the address and be sure that all

Re: [PHP] Email formatting

2002-08-30 Thread Tomasz Orzechowski
Ron Dyck wrote on Fri, Aug 30, 2002 at 01:28:34PM -0400: Is it safe to assume that email addresses are accepted by all servers case insensitive? accepted, yes, perhaps, but per rfc2821 says: The local-part of a mailbox MUST BE treated as case sensitive. Therefore, SMTP implementations MUST

[PHP] Server Setup Walkthrough?

2002-08-30 Thread Kris
Hi All, Relatively new to PHP and Apache. I've had some trouble setting up my own web server for learning on - I basically have no idea where to start in order to get them both working together. Does anyone have a link to a website (or the time to help me) that I could take a look at? I'd much

[PHP] eregi_replace() problems

2002-08-30 Thread Tony Harrison
Can anyone tell me why my emoticons arent appearing? Please? Note: $message is a variable set by a form. The field `pattern` is the string to search for, like :-), and `url` is the relative url to the emoticon. I just get the plain text, no replacement emoticon. Note: this bit is above the

[PHP] Regular expression question

2002-08-30 Thread Jeff Lewis
Is there a regular expression that will remove 1, L, I, O, 0 and the lowercase equivilants from a varialbe? I am not horribly well versed in regular expressions...so I'm basically asking someone to help :) Say I have a string like this jeD1GLal I want to remove any of the chracters that be

Re: [PHP] eregi_replace() problems

2002-08-30 Thread Kevin Stone
The parameters to the eregi_replace() are not passed by reference. You need to set a variable to capture the returning value. Read the manual.. http://www.php.net/manual/en/function.eregi-replace.php -Kevin - Original Message - From: Tony Harrison [EMAIL PROTECTED] To: [EMAIL

[PHP] Ridding myself of HTML tags

2002-08-30 Thread Liam . Gibbs
I've got a lil problem with HTML tags. Here's the description. My site accepts HTML files by upload. A lot of these files are written in MS Word and then saved as HTML files from that. MS Word likes to put a bunch of garbage at the beginning of the file. Now, when users upload their HTML files,

[PHP] Re: Server Setup Walkthrough?

2002-08-30 Thread Philip Hallstrom
Check the manual at www.php.net. There are installation instructions in it... On Sat, 31 Aug 2002, Kris wrote: Hi All, Relatively new to PHP and Apache. I've had some trouble setting up my own web server for learning on - I basically have no idea where to start in order to get them both

[PHP] Re: Regular expression question

2002-08-30 Thread Philip Hallstrom
$str = jeD1GLal; $str = ereg_replace([1LIO0lio], , $str); something like that... On Fri, 30 Aug 2002, Jeff Lewis wrote: Is there a regular expression that will remove 1, L, I, O, 0 and the lowercase equivilants from a varialbe? I am not horribly well versed in regular expressions...so I'm

[PHP] Simple one... Please look.

2002-08-30 Thread Shane
Greetings. Can someone please enlighten me on the best way to get information from a comma delimited file, to a variable? Example. A client updates a comma delimited list of names to a directory on a server, my script would need to read in the entire list and turn it into a variable. Once it

[PHP] Re: Simple one... Please look.

2002-08-30 Thread Philip Hallstrom
http://www.php.net/manual/en/function.file.php On Fri, 30 Aug 2002, Shane wrote: Greetings. Can someone please enlighten me on the best way to get information from a comma delimited file, to a variable? Example. A client updates a comma delimited list of names to a directory on a server,

Re: [PHP] Writing Files

2002-08-30 Thread Webmaster
i write these files in a for-next loop, so at the start of each loop, i've to put an unmask command? - Original Message - From: Jason Wong [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, August 30, 2002 4:11 PM Subject: Re: [PHP] Writing Files On Friday

RE: [PHP] Useragent and file [SOLN]

2002-08-30 Thread Todd Pasley
Hi I found an alternative to using file to get web content. using fsockopen you can specify a useragent as per rfc-something which handles it all very very nicely. Its also nicer that what I was using to post and is looking more likely to store cookies/sessions... but ill get to that later :)

Re: [PHP] Writing Files

2002-08-30 Thread Jason Wong
On Saturday 31 August 2002 02:16, Webmaster wrote: i write these files in a for-next loop, so at the start of each loop, i've to put an unmask command? If the manual is correct then the answer in no. Once per page would be enough. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk

[PHP] Mail/Confirmation Script delivery problems

2002-08-30 Thread Andre Dubuc
After resolving other script problems, a new one has surfaced. The 'Guest Registration/Confirmation' script works as expected. It inserts a random id number, then fowards it to the guest's email address, and awaits confirmation (by clicking on the Confirmation URL). Postfix says that the mail

[PHP] newbie question

2002-08-30 Thread Brian Shannon Windsor
How do I get PHP to automatically open another PHP page in a browser if a condition is met? I have a pull down HTML table that submits a form to a PHP script. That script then uses a little logic to figure out which web page to go to. I have 5 different pages, and each has different content.

[PHP] Resource ID??

2002-08-30 Thread JohnP
When trying to do this query: $rsum =mysql_query(SELECT SUM(rating) FROM ratings where threadid = $ratevar)or die (mysql_error()); This is the output: Resource id #15 or some other seemingly arbitrary Resource ID number? First of all what is a resource ID and second how do I get it to actually

Re: [PHP] Mail/Confirmation Script delivery problems

2002-08-30 Thread Jason Wong
On Saturday 31 August 2002 03:25, Andre Dubuc wrote: But checking the mailbox of '[EMAIL PROTECTED]' (and three others that I've sent it to) nothing shows up. Now, what's strange, it used to work perfecttly before I made minor changes to $message. I've scanned/debugged/scratched my head but

RE: [PHP] how to have a form keep values when user hits back button?

2002-08-30 Thread Dave at Sinewaves.net
A better, NON-CLIENT-SIDE way to do it, is you could have the page you're submitting to write the POST values to a session. So the top lines of your form handler page would be something like: ? session_start(); foreach($HTTP_POST_VARS as $key = $val) { if($val != '') {

Re: [PHP] Mail/Confirmation Script delivery problems

2002-08-30 Thread Andre Dubuc
On Friday 30 August 2002 03:38 pm, you wrote: On Saturday 31 August 2002 03:25, Andre Dubuc wrote: But checking the mailbox of '[EMAIL PROTECTED]' (and three others that I've sent it to) nothing shows up. Now, what's strange, it used to work perfecttly before I made minor changes to

Re: [PHP] newbie question

2002-08-30 Thread Jason Wong
On Saturday 31 August 2002 03:25, Brian Shannon Windsor wrote: Please do not be lazy and choose a proper descriptive text for your subject. Imagine the blandness and confusion and the utter uselessness if everybody used generic subjects such as Help, Quick question, This one is easy, What

Re: [PHP] newbie question

2002-08-30 Thread Kevin Stone
include($thefile..html); http://www.php.net/manual/en/function.include.php header(Location: .$thefile); http://www.php.net/manual/en/function.header.php -Kevin - Original Message - From: Brian Shannon Windsor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 30, 2002 1:25

Re: [PHP] Mail/Confirmation Script delivery problems

2002-08-30 Thread Jason Wong
On Saturday 31 August 2002 03:52, Andre Dubuc wrote: What 'minor' changes did you make to $message? Does rolling back those changes make it work again? I had just added another text sentence between blah, blah, blah' and 'https://'. And yes, I tried rollbacks to when it worked. Nope -

Re: [PHP] Mail/Confirmation Script delivery problems

2002-08-30 Thread Andre Dubuc
On Friday 30 August 2002 03:57 pm, you wrote: On Saturday 31 August 2002 03:52, Andre Dubuc wrote: What 'minor' changes did you make to $message? Does rolling back those changes make it work again? I had just added another text sentence between blah, blah, blah' and 'https://'.

Re: [PHP] Re: Mail problem

2002-08-30 Thread Manuel Lemos
Hello, On 08/30/2002 05:26 AM, Mark Colvin wrote: My development platform is linux 7.2 and php4.0.6. The production server is also linux (I think 7.2) but the php version 4.1.1. If it is not sending a message, maybe the mail() function is not enabled because configure could not find sendmail

Re: [PHP] Re: Mail problem

2002-08-30 Thread Manuel Lemos
Hello, On 08/30/2002 07:15 AM, Mark Colvin wrote: I have some more information that may be relevant to my problem. I compared the phpinfo() from both servers and there is a difference. The sendmail_from variable in the php.ini on my server is set to [EMAIL PROTECTED] The same variable on my

[PHP] Re: Mail()....

2002-08-30 Thread Manuel Lemos
Hello, On 08/30/2002 05:44 AM, Brian McGarvie wrote: Is there a way to set the font on a plaintext email? You may try setting some styles like enclosing text for *bold* or /italic/ but changing font in plain text is not possible. Another thing you may want to do is to send a message in HTML

RE: [PHP] newbie question

2002-08-30 Thread Daniel Masson
Just do this: Header(Location: $where_you_wanna_go\n\n); And make sure you do this before produce any HTML autput !! Hope this is helpful !! How do I get PHP to automatically open another PHP page in a browser if a condition is met? I have a pull down HTML table that submits a form to a PHP

[PHP] Arrays misbehaving!

2002-08-30 Thread Cameron Thorne
Can anyone explain why the following code operates the way it does in my comments? ?php $test = array ( 'a' = 'A', 'b' = 'B', 'c' = 'C'); if (array_key_exists(2, $test)) echo It works by key number!; // Does not work. if (array_key_exists('c', $test)) echo It works by key name!; // Works.

RE: [PHP] Using cURL

2002-08-30 Thread Jonathan Rosenberg
Can you telnet/SSH to the machine install CURL in your home directory? You shouldn't have to be root to do this. Or, are you trying to get CURL loaded into PHP? -- JR -Original Message- From: Henry [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 2:21 AM To: [EMAIL

[PHP] request what a user clicked

2002-08-30 Thread stu9820
what is php's request object? like in ASP - Request(variable) Jeff UWG Student [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Upgrade from 4.0.6 to 4.1.1

2002-08-30 Thread K Soares
To upgrade from 4.0.6 to 4.1.1, do I have to fix any code? I think session code has to change but is there anything else? Thanks K. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Arrays misbehaving!

2002-08-30 Thread Chris Wesley
On Fri, 30 Aug 2002, Cameron Thorne wrote: Can anyone explain why the following code operates the way it does in my comments? Sure. ?php $test = array ( 'a' = 'A', 'b' = 'B', 'c' = 'C'); An associative array, $test. if (array_key_exists(2, $test)) echo It works by key number!; //

Re: [PHP] Arrays misbehaving!

2002-08-30 Thread Cameron Thorne
That does help, yes. So basically there is no way to access associative arrays using numerical indices? I was hoping I could access by either name OR number, but apparently not. Thanks! -- Cameron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Upgrade from 4.0.6 to 4.1.1

2002-08-30 Thread CHAILLAN Nicolas
Hi, Note that its now 4.2.2 and all globals variables have changed. You must activate register global into your php.ini if you dont want to modify your scripts. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED]

[PHP] session encode and session decode question

2002-08-30 Thread Victor
I'm trying to get the one variable I stored insite a session, the variable's name is $username I am trying to do it like this, but I think it's wrong: $PHPSESSID = session_encode(); $username = session_decode(); It tells me I have wrong parameters for session decode. What am I supposed to

Re: [PHP] Resource ID??

2002-08-30 Thread DL Neil
John, This is the output: Resource id #15 or some other seemingly arbitrary Resource ID number? First of all what is a resource ID and second how do I get it to actually show what I am trying to get it to show! =When MySQL returns data to PHP, the information is put into a variable called a

  1   2   >