[PHP] want a binary PHP for SCO OpenServer 5.0.5

2004-12-19 Thread shimuqiheb
I want to a binary php,used in SCO 5.0.5 ,Who can help me.

[PHP] Re: Storing binary data within a php script.

2004-12-19 Thread Jamie
Thanks Jed, Im just trying your method. If i have any problems ill reply to this post Jamie Jed Smith [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This is done in a few examples using base64_encode() and base64_decode(). A particular OpenGL example I can recall encoded a small

[PHP] Re: PHP 5 MySql 4.1 issue - can't connect to mysql.sock

2004-12-19 Thread user
Barley wrote: If I run the script from a shell prompt as root, it outputs Yes. If I run as any other user, it outputs No. It also gives this error: Warning: mysqli_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) Check permissions on /var/lib/mysql.

[PHP] Re: sanitizing/security

2004-12-19 Thread Matthew Weier O'Phinney
* Sebastian [EMAIL PROTECTED]: just a question, what is the best way to sanitize your scripts when you're using $_GET or $_REQUEST in a query? eg, i usually just do: if(is_numeric($_REQUEST['id'])) { mysql_query(SELECT id FROM table WHERE id=.intval($_REQUEST['id']).); } what about

[PHP] Current Member Check

2004-12-19 Thread Brad Ciszewski
Hi everyone, I am having some issues with this script. I am making a form which registers a user. However, i want to check that the email address isnt already registered in the database. Below is the syntax which i used. Please help me figure out what I did wrong. *connects to database* $email =

[PHP] Re: Current Member Check

2004-12-19 Thread Brad Ciszewski
i appologize i forgot to add the rest: if($checkEmail != 0){ echo(centerfont color=\#99\The email address has already been registerd with an account./font/center); include(../includes/footer.php); exit; } Thanx! Brad Ciszewski www.BradTechnologies.com Web Services Brad Ciszewski [EMAIL

Re: [PHP] Current Member Check

2004-12-19 Thread Chris Shiflett
--- Brad Ciszewski [EMAIL PROTECTED] wrote: Please help me figure out what I did wrong. *connects to database* $email = $_POST[email]; $checkEmail = mysql_query(SELECT * FROM memberInformation WHERE email = '$email'); Please read this:

Re: [PHP] Current Member Check

2004-12-19 Thread Jason Wong
On Monday 20 December 2004 03:54, Chris Shiflett wrote: --- Brad Ciszewski [EMAIL PROTECTED] wrote: Please help me figure out what I did wrong. *connects to database* $email = $_POST[email]; $checkEmail = mysql_query(SELECT * FROM memberInformation WHERE

[PHP] Performance of magic_quotes_gpc ??

2004-12-19 Thread Michael Gale
Hello, I am working on a ticket tracking system and using htmlentities and htmlspecialchars on text that gets inserted into the database. code I have: --snip-- if ((isset($_POST['tentry_body'])) AND strlen($_POST['tentry_body']) 5) { $query .= tentry_body = ' .

Re: [PHP] Performance of magic_quotes_gpc ??

2004-12-19 Thread Robert Cummings
On Sun, 2004-12-19 at 18:31, Michael Gale wrote: Hello, I am working on a ticket tracking system and using htmlentities and htmlspecialchars on text that gets inserted into the database. code I have: --snip-- if ((isset($_POST['tentry_body'])) AND strlen($_POST['tentry_body'])

[PHP] I really need help...

2004-12-19 Thread JoShQuNe \(TR\)
I really need help to solve this problem. Help me to solve, please do not say to ask someone else. My problem is i have .txt file size of 3-5 kb with long rows. I have a mysql table and a column type of longtext, name html. What I have to do is: I have to open .txt and read inside and insert

[PHP] Re: Performance of magic_quotes_gpc ??

2004-12-19 Thread Jed Smith
They do not do the same thing. mysql_escape_string() is what you're after, if you're inserting data from user input into an SQL statement, regardless! Jed -- _ (_)___Jed Smith, Code Monkey | / __| [EMAIL PROTECTED] | [EMAIL PROTECTED] | \__ \ +1 541 606-4145 _/ |___/

Re: [PHP] Performance of magic_quotes_gpc ??

2004-12-19 Thread Jordi Canals
Hi, a couple of comments: --snip-- htmlentities(htmlspecialchars($_POST['tentry_body'])) . '; --snip-- Why are you using both htmlentities and htmlspecialchars? Think that html only converts some entities while htmlentities converts all ... so, for your purposes, apliying only one could do

Re: [PHP] Performance of magic_quotes_gpc ??

2004-12-19 Thread Michael Gale
Hello, Thanks for all of the responses ... I am going to use mysql_real_escape_string. Michael. Jordi Canals wrote: Hi, a couple of comments: --snip-- htmlentities(htmlspecialchars($_POST['tentry_body'])) . '; --snip-- Why are you using both htmlentities and htmlspecialchars? Think that html

[PHP] Uncompressing files on server

2004-12-19 Thread Josh
I have some PHP files from a content management system. I uploaded the compressed files to the server, but how do I un-compress them now? I am using Filezilla. Can it be done, or do I have to uncompress the file on my computer and then upload? thanks -- PHP General Mailing List