[PHP-DB] Re: using href=abc.php/?day=......

2003-10-21 Thread Gabriel Peugnet
It's just the syntax: 1. Don't use the / after .php: a href=abc.php?day= 2. Don't use echo inside the string: a href='abc.php?day=$start_day'/a 3. Check the use of double and single quotes. If you use: echo a href='abc.php?day=$start_day'abc/a; maybe you will get the link you want.

[PHP-DB] Re: disable History

2003-10-17 Thread Gabriel Peugnet
Check the Header() function in the manual: // Tels to the browser the page has caducated and forces to reload.. header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); // Avoids cahce. It seams it's what you want. header(Cache-Control: no-cache, must-revalidate); Gabriel. Open-Mind [EMAIL PROTECTED]

Re: [PHP-DB] Help with file upload

2003-10-16 Thread Gabriel Peugnet
For the message: Warning: move_uploaded_file(./ayservenet.jpg): failed to open stream: Permission denied in /home/ayserve/public_html/fu/fuprocess.php on line 6 you have to change the permissions of the file folder where you are copying the file. If you created it via FTP then you can't use

[PHP-DB] Re: Help with file upload

2003-10-16 Thread Gabriel Peugnet
I made a mistake in my last message: The lines that say: ftp_chdir( $site , $folder ); ftp_site( $site , chmod $mode $folder ); should say: ftp_chdir( $site , $folderbase );// this is the one that was wrong ftp_site( $site ,

[PHP-DB] more about permissions

2003-10-16 Thread Gabriel Peugnet
Have in mind that some permissions can be changed only via FTP but some other can only be changed useing chmod(). If you want more security you should set the permission in the moment of the upload and change it again after it. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe,

[PHP-DB] Another way.

2003-10-16 Thread Gabriel Peugnet
You can also pass the variable via POST to the script where the function is. It remains a local variable. Or you can set it as global like Chris says. And another way is puting it in a cookie. Adam Symonds [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] Hi, I am starting to us

[PHP-DB] About security.

2003-10-16 Thread Gabriel Peugnet
In your code, where you have: if (is_uploaded_file($_FILES['ufile1']['name'])) { copy($_FILES['ufile1']['name'], .); ... you should check the extension of the file been uploaded you should'n accept files with php, cgi, asp, etc., extensions neither an index file if you do, some user

[PHP-DB] Sorry, About security is for this discution.

2003-10-16 Thread Gabriel Peugnet
The message About security is for Help with file upload. I placed the message outside. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Can't conect with mysql_connect(), please help.

2003-10-14 Thread Gabriel Peugnet
I'm starting to use MySQL, well, trying to, and I get the next message: Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) The manual says that mysql_connect() can be called without arguments. That's what I'm doing. What's wrong?

Re: [PHP-DB] Can't conect with mysql_connect(), please help.

2003-10-14 Thread Gabriel Peugnet
phpinfo() says: MySQL Support enabled MYSQL_SOCKET /var/lib/mysql/mysql.sock but in fact the file /var/lib/mysql/mysql.sock doesn't exists. So I understand that the first step is to check the configuration of MySQL, is it? Dan Brunner [EMAIL PROTECTED] escribió

Re: [PHP-DB] Can't conect with mysql_connect(), please help.

2003-10-14 Thread Gabriel Peugnet
:[EMAIL PROTECTED] You must start your mysql server : do it: /etc/init.d/mysqld start and when you read the line mysql start [OK] your problem will be fix ;) Regards Nilson Gabriel Peugnet dijo: phpinfo() says: MySQL Support enabled

[PHP-DB] Re: Parse Errors...

2003-10-12 Thread Gabriel Peugnet
Some times parse errors aren't in the line the interpreter says. Looking at the code you sent I don't see the error but if your original code is in a biger file try looking if the brackets {} or parenthesis of all the code are balanced. Scott V Nipp [EMAIL PROTECTED] escribió en el mensaje

[PHP-DB] Re: Parse Errors...

2003-10-12 Thread Gabriel Peugnet
I just sent you an email that was rejected. Recipient address: [EMAIL PROTECTED] Reason: Server rejected MAIL FROM address. Diagnostic code: smtp;550 5.0.0 Access Denied for prodigy.net.mx So here is the message: For sending numbers with format I prefer the number_format() function. Instead

[PHP-DB] Re: set password on a page

2003-09-21 Thread Gabriel Peugnet
Use setCookie() function. It places a global variable on the client that your programs can verify after. See the manual for the use of the function. Here is an example: // Example of file chkacces.php. ?php $pass = $_POST['password'];// It receives the password from a FORM with POST

[PHP-DB] Re: best upload method

2003-09-21 Thread Gabriel Peugnet
I use file upload, it's faster than ftp because the ftp conection and login process takes a few seconds. You have to see that the permissions in each method are diferent. Some times you cannot delete a file copied with ftp useing the unlink() function unless you change the chmod. If you used the

[PHP-DB] Re: set password on a page

2003-09-21 Thread Gabriel Peugnet
In my last replay I told you to find the manual in the wrong place. The right place is www.php.net Sagerat [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] How do I set up password on a page so that only restricted people can open it? -- PHP Database Mailing List

[PHP-DB] Re: tutorial

2003-09-21 Thread Gabriel Peugnet
Go to www.php.net, in the section Documentation you'll find manuals in several languages. Novianto Dwiatmojo [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] Hi everyone i'm a newbie in php, mysql and linux but i want to learn about it can you guys help me or give me referal