[PHP] Re: Re-inserting newlines

2005-06-23 Thread JB05UK
This is the correct way to make a safe mysql query, see if it makes a difference, taken from:- http://php.net/manual/en/function.mysql-real-escape-string.php ?php // Quote variable to make safe function quote_smart($value) { // Stripslashes if (get_magic_quotes_gpc()) { $value =

[PHP] Re: MYSQLI, Class not found?

2005-06-21 Thread JB05UK
Try placing the following into a .php file, ?php // Connecting, selecting database // enter below your database host, user and pass $link = mysql_connect('mysql_host', 'mysql_user', 'mysql_password') or die('Could not connect: ' . mysql_error()); echo 'Connected successfully'; //

[PHP] Re: GD library images not displaying

2005-06-21 Thread JB05UK
Found this in the PHP manual, To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd. GD library requires libpng and

Re: [PHP] Re: So many returned mail notices!

2005-06-21 Thread JB05UK
Chris W. Parker wrote: JamesBenson mailto:[EMAIL PROTECTED] on Tuesday, June 21, 2005 8:41 AM said: You could unsuscribe, open your news client and enter news.php.net No. you can then browse at your own leasure, it does actually say a warning msg at the bottom of this page,

[PHP] Re: SFTP problems

2005-06-20 Thread JB05UK
Read the php man, it says to use the 'b' flag for binary files, infact it says to use it most the time anyway, if im not mistaken. Lowell Allen wrote: I need to use SFTP to send text files and binary files from one server to another, but I'm unable to use fopen on the remote server, and if I

[PHP] Re: retreiving postal/zip codes with PHP

2005-06-14 Thread JB05UK
ive used royal mail before for my ebay sales, they give so many lookups per day for free, not enough for a website to use, im not sure any other service would be accurate or free but let us know if you do find any which are because I need something like this also. I. Gray wrote: Hi. I was

[PHP] Re: headers and session

2005-06-06 Thread JB05UK
You have two calls to header? The first should be changed to:- session_cache_limiter('private'); http://php.net/manual/en/function.session-cache-limiter.php Alessandro Rosa wrote: Hi to all, I got a problem while storing session variables. ?php session_start(); header( Cache-control:

Re: [PHP] PHP and Zend

2005-06-06 Thread JB05UK
Ok thanks Richard Lynch wrote: On Sun, June 5, 2005 12:08 am, JamesBenson said: This program makes use of the Zend Scripting Language Engine: Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Zend Extension Manager v1.0.7, Copyright (c) 2003-2005, by Zend Technologies with

[PHP] Re: headers and session (2)

2005-06-06 Thread JB05UK
Ahhh, for storing session passwords...if you really need to store a password in the session then try using md5, like so... $psw = md5($_POST['txtPassword']); Then to verify a users password just do the same and compare to the stored md5 value in your database. But, its a very bad idea

Re: [PHP] linux php editor

2005-06-06 Thread JB05UK
Clive Zagno wrote: what I really want is a app that can do that predictive text thing, you know when it start showing me the possible php syntax as Im typing it in. Two reasons for this is it help with debugging as I get the syntax correct the first time and secondly I think its cool.

[PHP] Re: protect file access outside webroot

2005-06-06 Thread JB05UK
Bosky, Dave wrote: Currently I upload them the htsdata directory, is this the best location? Any location outside your webroot is fine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: What Works Works Validator

2005-06-02 Thread JB05UK
A small example, using the code below all older browser who cant understand CSS will ignore it because its within a comment block... style type=text/css !-- @import url(MyStyleSheet.css); -- /style -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: what is -- $this variable - $this other variable -- means?

2005-06-02 Thread JB05UK
http://php.net/manual/en/language.oop.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php forum and (almost certainly 0T) client editor

2005-06-02 Thread JB05UK
Hello, I can answer your second question... Frames can be used to achieve the effect of two seperate windows, one can refresh while the other stays as-is. For a client editor... Some javascript to add tags on the client side would be fairly simple to create, just create some custom tags for

[PHP] Re: Can't Get PHP to work

2005-06-02 Thread JB05UK
You need to insert these two lines to your Apache httpd.conf configuration file to set up the PHP module for Apache 2.0: Example 6-6. PHP and Apache 2.0 as Module # For PHP 5 do something like this: LoadModule php5_module c:/php/php5apache2.dll AddType application/x-httpd-php .php #