Re: [PHP] Please explain...

2002-03-19 Thread Alex Vargas
Because you are telling the parser to compare a numeric variable against something called foo which (in your context) has to be numerical too. Since foo has not been given any value, the parser defaults it to 0. So foo = 0. So is true that foo=$x=0. Alex. - Original Message - From: Jan

[PHP] How to run a script leaving screen output of previous script

2002-03-03 Thread Alex Vargas
Hi. I want to run a php script without leaving the php that calls that script. Let's say I have a script called mypage.php which displays html. There is a link to link.php, which makes some database maintenance and has no output. I want to be able to run link.php from mypage.php, but don't want

Re: [PHP] mysql

2002-01-30 Thread Alex Vargas
Maybe a dumb question, but are you sure you have the fields id, songname and artist in a table named rage in a database named rage? The times I got that error was because a non-existent field or a non-existent table. Otherwise, everything looks ok. Alex. - Original Message - From:

Re: [PHP] browser back button - Page has Expired.. problem

2002-01-28 Thread Alex Vargas
Just add this header header (Cache-Control: public); Alex. - Original Message - From: Lee P Reilly [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Monday, January 28, 2002 11:26 PM Subject: [PHP] browser back button - Page has Expired.. problem Hi, I wonder if anyone can

Re: [PHP] Got a problem I cant figure out

2002-01-27 Thread Alex Vargas
That error is always a missing } somewhere... :) Alex. - Original Message - From: Ben Turner [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 28, 2002 5:55 AM Subject: [PHP] Got a problem I cant figure out Parse error: parse error in

[PHP] Modify someone else's session register

2001-12-27 Thread Alex Vargas
Hi. Let's suppose I have 3 users in my site, each of them generating their respective session variables. Assuming I have a session variable named $variable, I'll end up in the server with 3 values: $variable_1, $variable_2 and $variable_3. My question is: is there a way I can change let's say

Re: [PHP] Not PHP but MYSQL

2001-12-27 Thread Alex Vargas
create table table_name ( id int not null auto_increment, primary key (id) ) auto_increment = 1001 - Original Message - From: Steve Maroney [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 28, 2001 6:59 AM Subject: [PHP] Not PHP but MYSQL Sorry for the OT, but im

[PHP] Jpeg to Wbmp algorithm

2001-12-22 Thread Alex Vargas
Hi. I need to convert jpegs to wbmp. Unfortunately, the PHP build available in my server wasn't compiled with the GD library, so I have no access to JPEG2WBMP(). Is the source code of this function available somewhere? Or does anyone know about a PHP class to make this task? At least an

Re: [PHP] Sendemail appends domain to mail function

2001-12-21 Thread Alex Vargas
That's because XYZ company isn't a valid email address and sendmail fixes the address with the name of the server. If you'd put [EMAIL PROTECTED], you'd see that address unchanged. Alex. - Original Message - From: Peter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 21,

[PHP] How to convert OEM to ANSI character set

2001-12-20 Thread Alex Vargas
I have a PHP script that receives a CSV text file and inserts it into a MySQL database. My problem is that this CSV file is made using the OEM character set and I need it with the ANSI character set. The closest thing I've found is the convert_cyr_string() function, but there isn't a code

[PHP] Supressing PHPSESID from url

2001-12-14 Thread Alex Vargas
Hi, I am making a wap application and I am using PHP's session handler. I pass different values between scripts and I end up with an url which seems to be too long: nextscript.php?var1=somethingvar2=elsePHPSESID=5345345345...whatever As I have found out, some wap browsers simply crash if the