Re: [PHP] file_exists problems

2001-12-01 Thread Prolog
I've since tried that also. It too seems to return the same error. I'm curious if the file_exists can't use relative positionslike it has to be in the same folder or you have to use the whole line like c:\ I'm working on a box that isn't mine of the net...if that's the case I don't

Re[2]: [PHP] file_exists problems

2001-12-01 Thread faeton
Hello Prolog, If course it doesn't use relative positioning. You should do it like that file_exists(images/...) instead of (/images/...). That's all :) P I've since tried that also. It too seems to return the same error. I'm P curious if the file_exists can't use relative positionslike

[PHP] Question per install. Editing apxs (linux)

2001-12-01 Thread Joelmon2001
One source for raq 3 users like myself said to edit it for php and do this: Line 203: ($rc, @ARGV) = Getopts(qn:gco:I+D+L+l+S+W+iaA, @ARGV); This line should read as I have above. Normally its: ($rc, @ARGV) = Getopts(qn:gco:I+D+L+l+W+iaA, @ARGV); [in

[PHP] Preventing a form from being submitted twice

2001-12-01 Thread rdkurth
How can I prevent somebody from using the back button after they fill in a form and it takes them to a second page that checks there data using php code. I don't what them to be able to resubmit the info a second time with different information to be able to get the data that they are buying.

[PHP] [] !!!

2001-12-01 Thread

Re: [PHP] Preventing a form from being submitted twice

2001-12-01 Thread [ Swift eNetwork ]
Two Words: Session Management How can I prevent somebody from using the back button after they fill in a form and it takes them to a second page that checks there data using php code. I don't what them to be able to resubmit the info a second time with different information to be able to

[PHP] PHP credit validation

2001-12-01 Thread Daniel Guerrier
What credit service(s) can intergrate with PHP __ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re[2]: [PHP] Preventing a form from being submitted twice

2001-12-01 Thread rdkurth
could you give me a few more words to point me in the right direction Saturday, December 01, 2001, 1:41:49 AM, you wrote: Se Two Words: Session Management How can I prevent somebody from using the back button after they fill in a form and it takes them to a second page that checks there

RE: Re[2]: [PHP] Preventing a form from being submitted twice

2001-12-01 Thread Robert Samuel White
Well, that's kinda hard to do. You should start by looking at the session management functions of PHP. Then, track your sessions by creating a table in a database. Then, once you are doing that...you will have a session id associated with any individual using your website. Once that

[PHP] Stripping slashes from db-insert?

2001-12-01 Thread Daniel Alsén
Hi, i know this has been asked before - but: When i add entries to MySql (varchar and text) all and ' gets a slash in front of them. How do i get rid of these slashes? Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | +46 8 694 82 22

Re: [PHP] Stripping slashes from db-insert?

2001-12-01 Thread Shane Wright
Addslashes() is probably getting called twice on the data on the insert... if you have magic_gpc on, any inputted data already has the necessary escapes - so you shouldnt need to call it again... Hope that helped :) -- Shane On Saturday 01 Dec 2001 1:14 pm, Daniel Alsén wrote: Hi, i know

RE: [PHP] XML and PHP - dynamic hell

2001-12-01 Thread Matthew Loff
Did you try adding: header(Content-Type: text/xml); To the top? -Original Message- From: Chris [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 01, 2001 12:34 AM To: [EMAIL PROTECTED] Subject: [PHP] XML and PHP - dynamic hell I'm having one page output XML for other sites to

Re: [PHP] XML and PHP - dynamic hell

2001-12-01 Thread Chris
It didn't help :( - Original Message - From: Matthew Loff [EMAIL PROTECTED] To: 'Chris' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, December 01, 2001 10:03 AM Subject: RE: [PHP] XML and PHP - dynamic hell Did you try adding: header(Content-Type: text/xml); To the top?

[PHP] Re: file_exists problems

2001-12-01 Thread Fred
file_exists takes a string argument. /images/$filename is not a string. try images/ . $filename instead. Fred Prolog [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I had a script that was running beautiful that simply called up a database and displayed the

[PHP] Re: LOAD DATA INFILE help

2001-12-01 Thread Fred
It makes a huge difference if the order of fields is different in your text file than it is in your mysql table. For instance, if your mysql table has id before passcode (assuming id is an autoincrement field), then every time you try to load data from this file it grabs the passcode (which is

Re: [PHP] Getting the filesize of an image?

2001-12-01 Thread Matt McClanahan
On Sat, Dec 01, 2001 at 09:55:47AM +0200, faeton wrote: Hello Matt, filesize() works only on local filesystems. If you want the size of a remote file, you'll have to download it; HTTP doesn't provide a way to query a remote file's size. FTP does, if you have FTP access. Matt -- PHP

php-general Digest 1 Dec 2001 21:02:02 -0000 Issue 1027

2001-12-01 Thread php-general-digest-help
php-general Digest 1 Dec 2001 21:02:02 - Issue 1027 Topics (messages 76300 through 76322): Re: file_exists problems 76300 by: faeton 76305 by: Prolog 76306 by: faeton 76320 by: Fred Re: call_user_func problem 76301 by: faeton 76310 by: Papp

Re[2]: [PHP] Getting the filesize of an image?

2001-12-01 Thread faeton
Hello Matt, Of course it does not, but as i've already said file() with strlen() can be used. :) MM If you want the size of a remote file, you'll have to download it; HTTP MM doesn't provide a way to query a remote file's size. FTP does, if you have MM FTP access.

Re: [PHP] Getting the filesize of an image?

2001-12-01 Thread Matt McClanahan
On Sat, Dec 01, 2001 at 11:05:51PM +0200, faeton wrote: Hello Matt, Of course it does not, but as i've already said file() with strlen() can be used. :) MM If you want the size of a remote file, you'll have to download it; HTTP MM doesn't provide a way to query a remote file's size.

Re[2]: [PHP] Getting the filesize of an image?

2001-12-01 Thread faeton
Hello Matt, So does that problem have a solution? MM Not on binary files. For an image that's 4494 bytes, file/join/strlen gives MM me 3512. And since file() on a remote file is downloading it anyway, you MM might as well do it right: MM $fp = fopen('http://example.com/image.jpg','r'); MM

[PHP] SAPI

2001-12-01 Thread Obasi Adande George
I have been trying to get apache2 to load the php4 module for a while now, but after consulting the bug report page, i was directed to seek assistance from you all. Is there any further files I may need to have this program p and running. Thank You For Your Assistance in this matter Obasi

[PHP] Cause of:`T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR'

2001-12-01 Thread Jason G.
Hello all, I have ran across this error a number of times, and for those of you who are or will pulling out your hair, read on. When you get a: Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in your_script.php on line 2149 Check to see if you have

[PHP] how to get multiple checkbox values in a results page?

2001-12-01 Thread Ivan Carey
Hello, I have a form with multiple checkboxes. Their names are the same ie all are befname and their values are dynamically filled from a data base. When I check multiple boxes I expect that an array of the values with the array named befname is sent to the results page. In my example the form

[PHP] Re: how to get multiple checkbox values in a results page?

2001-12-01 Thread Philip Hallstrom
Rename your form name to befname[] Then you'll get them all... this is in the manual somewhere if you need more info on it... don't remember exactly where. -philip On Sun, 2 Dec 2001, Ivan Carey wrote: Hello, I have a form with multiple checkboxes. Their names are the same ie all are

[PHP] Re: Strange problem...

2001-12-01 Thread Edgardo Rossetto
Hola Daniel: Te escribo en castellano ya que veo que el inglés no es tu idioma natural. Creo que el error se produce al concatenar las variables, acordate que para indicar que las variables con cadenas tenés que encerrarlas entre , yo lo definiría así: $user_birthdate =

[PHP] Re: SAPI

2001-12-01 Thread Fred
What is not working? Are you getting an error message? Fred Obasi Adande George [EMAIL PROTECTED] wrote in message 000801c17ab6$5d77bf90$b6d45ed1@tbird">news:000801c17ab6$5d77bf90$b6d45ed1@tbird... I have been trying to get apache2 to load the php4 module for a while now, but after consulting

[PHP] Re: Cause of:`T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR'

2001-12-01 Thread Fred
A couple of more pointers: Check the line right before the parse error for missing }) or ; Always close your curley braces right after you open them and then insert your code lines between the braces. {} This will prevent you from forgetting to close your braces. Never write a single script

[PHP] Updating parts of files without rewriting them

2001-12-01 Thread Jeff Lewis
I have a file that contains settings and there are a lot of comments in there and a lot of variables. An excerpt of the file looks like below. My question is, is it possible to change only certain variables? For example, I want to set just the db variables, is it possible for me to input the

[PHP] Re: Updating parts of files without rewriting them

2001-12-01 Thread Fred
You cannot make changes to a file without writing the entire contents of the file to disk. On the other hand, you do not need to manually re-create the entire contents. Simple read the file into a variable and use regular expressions to replace the old lines with new ones and then write the

[PHP] Few quick questions on php 4.1

2001-12-01 Thread Joelmon2001
I saw a download for it a few days ago but I am curious to know: A.) how stable is it B.) Is there offically a known 'make' one must have on linux to install it? 3.7.7 ok? (Freetype I found out 3.7.8 or higher according to a developer of freetype) C.) what are the new features and when is it

[PHP] HTTP_SESSION_VARS != Work

2001-12-01 Thread Andrew Forgue
Hello, Slight Problem: -- This piece of code: session_start(); unset($testvar); session_register(testvar); $HTTP_SESSION_VARS[testvar] = testval; print Global: $testvar | Track_var: . $HTTP_SESSION_VARS[testvar] . .br; $testvar = testglobalassign; print Global: $testvar | Track_var:

[PHP] Re: HTTP_SESSION_VARS != Work

2001-12-01 Thread Fred
It looks like it is working as expected. You must note two things. First, session variables are updated to new values only when you explicitly call session_register or when the script ends. When you call session_register, the session variable will have the value that the global variable had at

[PHP] Re: Testing Alert: Significant changes to DOM-XML

2001-12-01 Thread Markus Fischer
[This mail goes out to php-dev, php-qa and php-general and has its Reply-To: set to php-dev!] Hi Zak, thanks for the mail, I was thinking about writing such a mail myself but was to tired I guess. Yep, the CVS note to the latest ext/domxml changes state it clearly:

Re: [PHP] call_user_func problem

2001-12-01 Thread Papp Gyozo
| That means that you should create a .htaccess file containing that: | | php_value allow_call_time_pass_reference 1 | | That should work :) But as the errormessage mentioned it may not supported in future version. I think if you declare your function arguments to be passed by variables