Re: [PHP] if inside an echo.

2007-07-31 Thread Neil Freeman
Or another way... for ($value = 0; $value <= 2000; $value += 100) { echo sprintf("%s", $value, (($min_rent==$value) ? " selected=\"selected\"" : NULL), $value); } Hulf wrote: > ** > This Email Has Been Virus Swept > ** > I am outputting a s

Re: [PHP] Underscores within echo statements

2004-09-07 Thread Neil Freeman
Marek Kilimajer wrote: *** This Email Has Been Virus Swept *** Neil Freeman wrote: Just a quick question. What is the purpose of the underscore character within the following echo statement? I had a quick look

[PHP] Underscores within echo statements

2004-09-07 Thread Neil Freeman
Just a quick question. What is the purpose of the underscore character within the following echo statement? I had a quick look in the manual and archives but couldn't find any reference to it. Thanks, Neil This communication is confidential to the intended recipient(s). If you are not that per

Re: [PHP] Using php_value in .htaccess files

2004-08-24 Thread Neil Freeman
[EMAIL PROTECTED] wrote: *** This Email Has Been Virus Swept *** Is there anything special one has to do in order to enable the use of the "php_value" directive in the context of an apache .htaccess file? I not

Re: [PHP] Help Loading MySQL Extension with PHP5/Apache1.3

2004-08-12 Thread Neil Freeman
John Holmes wrote: *** This Email Has Been Virus Swept *** Okay... I've done this before but can't get it working now. I've got PHP5 working correctly, but I'm trying to load the MySQL php_mysql.dll file. I'm

Re: [PHP] Control structure - easier way than repeating conditions in IF?

2004-04-30 Thread Neil Freeman
Why not just use a switch?... switch ($x) { case $a: case $b: case $c: case $d: //do whatever you need break; default: //catch any other values here break; } Neil BOOT wrote: **

Re: [PHP] Switching First & Last Names in List

2004-03-16 Thread Neil Freeman
Take a look at explode() www.php.net/explode Neil Jeff Oien wrote: *** This Email Has Been Virus Swept *** If I have a list like this: Firstname1 LastName1 Firstname2 Lastname2 etc. I can split the names by \

Re: [PHP] $_GET, expressions and conditional statements

2004-03-11 Thread Neil Freeman
How about this - untested by the way: $order = "ASC"; if (isset($_GET["ORDER"])) { $value = $_GET["ORDER"]; if (($value == "ASC") || ($value == "DESC")) { $order = $value; } else if ($value == "RAND") { $order = "RAND

Re: [PHP] Re: Parse error ???

2004-03-04 Thread Neil Freeman
If I remember correctly the second parameter of move_uploaded_file() needs to be the full filename, ie path plus required filename. so... if(!move_uploaded_file($_FILES['myfile']['tmp_name'], ("/var/www/html/upload/" . $_FILES['myfile']['name']))) Neil Mike Mapsnac wrote: *

Re: [PHP] Unexpected ";"

2004-02-19 Thread Neil Freeman
You're missing a right bracket within the if statement. Paul Furman wrote: *** This Email Has Been Virus Swept *** I don't see what's wrong with this if statement: while ... and ... { if (($pic_num + 1) <= $

Re: [PHP] how to open a webpage

2004-01-12 Thread Neil Freeman
Or with PHP you could do: Header("Location:$launch"); die; Make sure that nothing is outputted before this is called though. The variable $launch should also be an absolute URL. Neil Richard Davey wrote: *** This Email Has Been Virus Swept **

Re: [PHP] PHP function for length of the array???

2004-01-06 Thread Neil Freeman
Or you can use sizeof() which is an alias for count() Scott Fletcher wrote: *** This Email Has Been Virus Swept *** Ah! Thanks!!! "Chris Hayes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] At 1

Re: [PHP] Php Windows server

2003-12-19 Thread Neil Freeman
You will need to ensure that the session save path is set to a valid directory: e.g. session.save_path = "C:/Temp" Neil E. Ricardo Santos wrote: *** This Email Has Been Virus Swept *** Somebody could say t

Re: [PHP] CHMOD...

2003-12-04 Thread Neil Freeman
How about: exec("chmod -R 755 /somedir/"); [EMAIL PROTECTED] wrote: *** This Email Has Been Virus Swept *** Is there anyway to use CHMOD: chmod ("/somedir/somefile", 0755); but have it set all files, folders

Re: [PHP] Re: Calculating difference between two timestamps

2003-11-27 Thread Neil Freeman
Perfect - thanks Bogdan Bogdan Stancescu wrote: *** This Email Has Been Virus Swept *** Neil Freeman wrote: Hi there, Does anyone have any suggestions as to how I can calculate whether one timestamp is

[PHP] Calculating difference between two timestamps

2003-11-27 Thread Neil Freeman
Hi there, Does anyone have any suggestions as to how I can calculate whether one timestamp is within one second of another timestamp. e.g. Timestamp 110:59:59 Timestamp 211:00:00 Essentially I need to create a function which'll take two parameters and return whether the two parameters

Re: [PHP] getallheaders() in PHP 4.2.3

2003-07-16 Thread Neil Freeman
I believe getallheaders() has been supported since v4.0.0 Ananth Kesari wrote: *** This Email Has Been Virus Swept *** Hi, For some reason, getallheaders() is not working with the NetWare port of PHP 4.2.3 ev

Re: [PHP] How do I replace browser history using Header()?

2003-06-14 Thread Neil Freeman
*** -Original Message- From: Neil Freeman [mailto:[EMAIL PROTECTED] Is there any way that I can do a PHP Header() statement that does the equivalent of JavaScript's window.self.location.replace("http://www.mysite.com/mypage.php";)? No. JavaScrip

[PHP] How do I replace browser history using Header()?

2003-06-14 Thread Neil Freeman
Hi, I am using Header("Location:http://www.mysite.com/mypage.php";); to do a browser redirect. This works fine. The problem though is that doing this adds a page to the browser's window.self.history() collection. Is there any way that I can do a PHP Header() statement that does the equivalent

Re: [PHP] header() and mozilla - HELP!

2003-06-14 Thread Neil Freeman
Ensure that you have a die; after the Header() line. Neil deno vichas wrote: *** This Message Was Virus Checked With : SAVI 3.70 June 2003 Last Updated/Checked 12th June 2003 ***

Re: [PHP] setlocale() changes?

2003-06-04 Thread Neil Freeman
Try removing the double quotes around LC_TIME Neil Mike At Spy wrote: *** This Message Was Virus Checked With : SAVI 3.69 May 2003 Last Updated/Checked 2nd June 2003 **

Re: [PHP] RE: [newbie] embed php in html file

2003-04-04 Thread Neil Freeman
Take a look at auto_prepend_file within php.ini Bobby Rahman wrote: *** This Message Was Virus Checked With : SAVI 3.66 February 2003 Last Updated 2nd April 2003 **

Re: [PHP] Newbie Questions

2003-01-21 Thread Neil Freeman
Have a look on devshed.com Bryan Cassidy wrote: Could someone point me to a VERY good doc for learning PHP for a NEWBIE!!! Something I can understand from the beginning to the end. YES I am willing to put my time into learning and reading docs as long as they are clear and made for what they say

Re: [PHP] $header = "Location:........" being ignored!

2003-01-21 Thread Neil Freeman
Looks like you're missing a closing bracket on the IF statement as well. Neil Shams wrote: ** This Message Was Virus Checked With : SAVI 3.61 September 2002 Last Updated 17th January 2003 ***

Re: [PHP] PHP Editors

2003-01-07 Thread Neil Freeman
Take a look at Maguma Studio Light (www.maguma.com) Neil Nilza Lafayette wrote: ** This Message Was Virus Checked With : SAVI 3.61 September 2002 Last Updated 2nd January 2003 ***

Re: [PHP] Display character 'x' times

2002-11-19 Thread Neil Freeman
str_repeat () Tjoumaidis Tasos wrote: ** This Message Was Virus Checked With : SAVI 3.61 September 2002 Last Updated 15th November 2002 ** Hello t

Re: [PHP] suggestions for a good php+mysql isp?

2002-08-20 Thread Neil Freeman
www.aletia.com db or not db wrote: > ** > This Message Was Virus Checked With : SAVI 3.60 May 2002 > Last Updated 16th August 2002 > ** > > They (futur

Re: [PHP] Extensions?

2002-08-13 Thread Neil Freeman
Try this instead... extension_dir = "C:/PHP/extensions/" and ensure that the GD section is present in phpinfo() output. Neil Php wrote: > ** > This Message Was Virus Checked With : SAVI 3.60 May 2002 > Last Updated 8th Au

Re: [PHP] .htaccess file

2002-08-01 Thread Neil Freeman
php_value register_globals "0" B i g D o g wrote: > ** > This Message Was Virus Checked With : SAVI 3.59 May 2002 > Last Updated 8th July 2002 > ** > >

[PHP] Coding PHP with register_globals off

2002-07-30 Thread Neil Freeman
Seeing as a question concerning register_globals seems to be posted every day - I thought this link might be useful to some: http://www.zend.com/zend/art/art-sweat4.php Neil -- -- www.curvedvision.com -- -- PHP General Mailing List (http://www.php.n

Re: [PHP] Newbie needs help

2002-07-24 Thread Neil Freeman
mysql_db_query has been depreciated since PHP 4.0.6 ctan wrote: > ** > This Message Was Virus Checked With : SAVI 3.59 May 2002 > Last Updated 8th July 2002 > *

Re: [PHP] Newbie's question about \n

2002-07-22 Thread Neil Freeman
nl2br() KK Lee wrote: > ** > This Message Was Virus Checked With : SAVI 3.59 May 2002 > Last Updated 8th July 2002 > ** > > Dear ALL, > > It seems tha

Re: [PHP] Development Tools

2002-07-10 Thread Neil Freeman
Maguma Studio Light is pretty good - www.maguma.com Mark McCulligh wrote: > ** > This Message Was Virus Checked With : SAVI 3.59 May 2002 > Last Updated 8th July 2002 > ***

Re: [PHP] Dos Paths

2002-07-10 Thread Neil Freeman
FYI - Works in Windows NT 4 SP 6a as well. [EMAIL PROTECTED] wrote: > ** > This Message Was Virus Checked With : SAVI 3.59 May 2002 > Last Updated 8th July 2002 > *

Re: [PHP] Now a Question for all you ARRAY Junkies

2002-07-10 Thread Neil Freeman
Have a look at sort() vins wrote: > ** > This Message Was Virus Checked With : SAVI 3.59 May 2002 > Last Updated 8th July 2002 > ** > > I have an array

Re: [PHP] function for size of array

2002-07-05 Thread Neil Freeman
LOL - nice one Jason :) Jason Wong wrote: > ** > This Message Was Virus Checked With : SAVI 3.59 May 2002 > Last Updated 3rd July 2002 > ** > > On Frid

Re: [PHP] Deleting a read-only file (Windows)

2002-06-26 Thread Neil Freeman
With : SAVI 3.58 May 2002 > Last Updated 14th June 2002 > ** > > On Wed, Jun 26, 2002 at 11:34:10AM +0100, Neil Freeman wrote: > >>I'm trying to delete a file using PHP's unlink() function (on

Re: [PHP] file_exists()

2002-06-26 Thread Neil Freeman
You're right - the example is wrong. Neil Anthony Ritter wrote: > ** > This Message Was Virus Checked With : SAVI 3.58 May 2002 > Last Updated 14th June 2002 > ***

Re: [PHP] Deleting a read-only file (Windows)

2002-06-26 Thread Neil Freeman
14th June 2002 > ** > > >>From: Neil Freeman <[EMAIL PROTECTED]> >> >>I'm trying to delete a file using PHP's unlink() function (on Windows). >>This works fine on writable files bu

[PHP] Deleting a read-only file (Windows)

2002-06-26 Thread Neil Freeman
Hi there, I'm trying to delete a file using PHP's unlink() function (on Windows). This works fine on writable files but fails when trying to delete read-only files. How can I delete read-only files? Is there a function available to change the permissions? Any help greatly appreciated. Neil

Re: [PHP] Is there a replicate function in PHP

2002-06-21 Thread Neil Freeman
echo str_repeat("*", 50); Don wrote: > ** > This Message Was Virus Checked With : SAVI 3.58 May 2002 > Last Updated 14th June 2002 > ** > > Hi, > > I'

Re: [PHP] Nested IF's (Is there a LIMIT ?)

2002-06-14 Thread Neil Freeman
Maguma Studio for PHP Light will do the job. Neil Daniel Negron/KBE wrote: > ** > This Message Was Virus Checked With : SAVI 3.58 May 2002 > Last Updated 11th June 2002 >

php-general@lists.php.net

2002-06-11 Thread Neil Freeman
11th June 2002 > ** > > > $x = preg_replace( "/([^\s&])&([^\s&])/", "$1&&$2", $x ); > should do the job. > Michael > > Neil Freeman <[EMAIL PROTECTED]> schrieb: > > >>Hi, >> &g

php-general@lists.php.net

2002-06-11 Thread Neil Freeman
Hi, For all you Unix gurus this should be run of the mill stuff but us Windows boys tend to get confused easily :) How can I easily match occurrences of text along the lines of R&B and replace it with R&&B ? The regular expression s/&/&&/g obviously replaces any occurrence of an ampersand wi

Re: [PHP] Using Sessions under Win98/Apache

2002-05-16 Thread Neil Freeman
nd suggestions. > -- > Ed Marczak > [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | Neil Freeman Design E

Re: [PHP] Retrieving name of error_log file

2002-05-02 Thread Neil Freeman
> > On Wed, 1 May 2002, Neil Freeman wrote: > > How do you obtain the value of 'error_log' (set within a .htaccess > > file). Is there a $HTTP_x_VARS array available which contains this > > information? > > Nope. You can use phpinfo() to see what most

[PHP] Retrieving name of error_log file

2002-05-01 Thread Neil Freeman
Hi, How do you obtain the value of 'error_log' (set within a .htaccess file). Is there a $HTTP_x_VARS array available which contains this information? Any help greatly appreciated. Cheers, Neil Email: [EMAIL PROTECTED] [EMAIL PROTECTED] -

Re: [PHP] If value is divisible by 2

2002-04-30 Thread Neil Freeman
if (($foo % 2) == 0) { echo "text"; } Neil Craig wrote: > > * > This Message Was Virus Checked With : SAVI 3.54 Feb 2002 > Last Updated 24th April 2002 > *

Re: [PHP] Counting number of value instances within an array

2002-04-26 Thread Neil Freeman
Sorry - don't worry. Found the function I require. FYI : array_count_values() Neil Freeman wrote: > * > This Message Was Virus Checked With : SAVI 3.54 Feb 2002 > Last Updated 2

[PHP] Counting number of value instances within an array

2002-04-26 Thread Neil Freeman
Hi guys, Is there a function I can use to count the number of instances of a value within an array. For example: $a[0] = "bob"; $a[1] = "bob"; $a[2] = "fred"; $a[3] = "james"; $a[4] = "bob"; $a[5] = "carl"; Searching for 'bob' would return 3. I've had a quick look through the array functions bu

Re: [PHP] include_once()

2002-03-19 Thread Neil Freeman
Have you remembered to set up PHP's include_path to point to the area where your scripts are located? Neil Mauricio Cuenca wrote: > Hello, > > I have a very long script with several functions in it. I wanted to split > the script into several files, so I created two sub-scripts and one main > s

Re: [PHP] Unicode TTF Font wingding's just don't cut it!

2002-02-19 Thread Neil Freeman
What symbols are you trying to use? Verdana is good enough for most unicode characters. hugh danaher wrote: > Help > Does anyone know where I can get a simple symbol font which is .ttf and "unicode" >compatible. Seems that my php graphic program is very sensitive to ttf problems. >It'll take

Re: [PHP] NULL Apache environment variables

2002-02-18 Thread Neil Freeman
Have a look at the function getenv().. eg: $ip = getenv ("REMOTE_ADDR"); // get the ip number of the user HTH Neil "Narvaez, Teresa" wrote: > Hello, > I'm running PHP version 4.1.1. When I invoke this function, phpinfo()?>, all variables are set. However, when I try to retr

Re: [PHP] Web Hosts and PHP 4.10 +

2002-02-08 Thread Neil Freeman
I have a feeling that www.aletia.com use 4.1.1 Don't quote me on that though :) Neil Edward Marczak wrote: > I know the subject of web hosts that support PHP comes up frequently - but > here's a twist: > > After going through the archives, and checking out many, many hosts, I > haven't found a

Re: [PHP] Unable to get ImageTTFText output

2002-02-05 Thread Neil Freeman
rish > -- > www.girishnath.co.uk > > - Original Message - > From: "Neil Freeman" <[EMAIL PROTECTED]> > To: "PHP General" <[EMAIL PROTECTED]> > Sent: Tuesday, February 05, 2002 2:59 PM > Subject: [PHP] Unable to get ImageTTFText output &

Re: [PHP] Unable to get ImageTTFText output

2002-02-05 Thread Neil Freeman
s/arial.ttf"; > > ImageTTFText($im, 20, 0, 3, 3, $text_colour, $fontfile, "My text"); > > Regards > > Girish > -- > www.girishnath.co.uk > > - Original Message - > From: "Neil Freeman" <[EMAIL PROTECTED]> > To: "PHP Ge

[PHP] Unable to get ImageTTFText output

2002-02-05 Thread Neil Freeman
Hi there, I am trying to use the ImageTTFText function to output some text onto an existing image. Problem being though that the text does not get outputted. I have placed the ttf file 'arial.ttf' within the same directory as my script. Here is a snippet of my code: Header("Content-Type: ima

Re: [PHP] How do I get htaccess files to take effect?

2002-02-04 Thread Neil Freeman
I've taken out the '=' sign and.we have success!!! Thanks a lot for your time Mark. Neil :) Mark Roedel wrote: > > -Original Message- > > From: Neil Freeman [mailto:[EMAIL PROTECTED]] > > Sent: Monday, February 04, 2002 10:36 AM > &

Re: [PHP] How do I get htaccess files to take effect?

2002-02-04 Thread Neil Freeman
7;simple' equates to unknown :) Any ideas??? Neil Mark Roedel wrote: > > -Original Message- > > From: Neil Freeman [mailto:[EMAIL PROTECTED]] > > Sent: Monday, February 04, 2002 4:45 AM > > To: PHP General > > Subject: [PHP] How do I get htaccess files to

[PHP] How do I get htaccess files to take effect?

2002-02-04 Thread Neil Freeman
Hi, This is my first time attempting to use htaccess files. I am running Apache 1.3.20 with PHP v4.0.6 installed as a module. Within Apache's httpd.conf file I have the following value set: AccessFileName apache.htaccess And within an 'Alias' directory I have a file entitled 'apache.htaccess'

Re: [PHP] PHP's include_path

2002-02-04 Thread Neil Freeman
Thanks for the syntax info Lars. Neil Lars Torben Wilson wrote: > On Mon, 2002-02-04 at 01:43, Neil Freeman wrote: > > Hi there, > > > > Am I correct in thinking that you can specify the PHP include_path line > > within an Apache .htaccess file? If so does anyone kno

Re: [PHP] PHP's include_path

2002-02-04 Thread Neil Freeman
Thanks for the quick reply Jason. This looks like it'll achieve what I want but I think that using a htaccess file is a better 'overall' method. Cheers, Neil Jason Wong wrote: > On Monday 04 February 2002 17:43, Neil Freeman wrote: > > Hi there, > > > > A

[PHP] How do I get htaccess files to take effect?

2002-02-04 Thread Neil Freeman
Hi, This is my first time attempting to use htaccess files. I am running Apache 1.3.20 with PHP v4.0.6 installed as a module. Within Apache's httpd.conf file I have the following value set: AccessFileName apache.htaccess And within an 'Alias' directory I have a file entitled 'apache.htaccess' w

[PHP] PHP's include_path

2002-02-04 Thread Neil Freeman
Hi there, Am I correct in thinking that you can specify the PHP include_path line within an Apache .htaccess file? If so does anyone know the correct syntax of doing this? If you cannot specifiy PHP's include_path line from within this file - how do you use different include paths for different

Re: [PHP] PHP4.0 & Apache with WinXP

2002-01-31 Thread Neil Freeman
I've successfully installed the latest versions of both Apache and PHP on my XP system with no problems. Neil Ben Clumeck wrote: > I am trying to install Apache and PHP4.0 on WinXP. Does anyone know of any > conflicts? > > Thanks, Ben > > -- > PHP General Mailing List (http://www.php.net/) > T

Re: [PHP] configuring php and apache

2002-01-29 Thread Neil Freeman
Oh yeah... extension_dir should also have a trailing '\' I believe. Neil liz lynch wrote: > hi all, > i have installed php and apache on my home computer..i am running xp home edition. > the problem is that the php and apache are not working together. what i have done so >far: > > 1. configure

Re: [PHP] configuring php and apache

2002-01-29 Thread Neil Freeman
What problems/errors are you getting? Place the following code into a .php file under htdocs: and then enter something like http://localhost/xxx.php into your browser. Neil liz lynch wrote: > hi all, > i have installed php and apache on my home computer..i am running xp home edition. > the

Re: [PHP] Mail Attachments

2002-01-24 Thread Neil Freeman
Take a look at the articles on: http://www.devshed.com/Server_Side/PHP HTH Neil Gordon Stewart wrote: > Dear List > > I have just compleated a PHP web frontend to the standard mail function in > PHP. I have got it to send and recieve email. > > Can I take this programming task further and al

Re: [PHP] Session deletion on window close?

2002-01-22 Thread Neil Freeman
OK I'll have a look around. Thanks for your time Nick. Nick Wilson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > * On 22-01-02 at 11:46 > * Neil Freeman said > > > OK I agree with you there :) But as I haven't called the session_destroy() &

Re: [PHP] Session deletion on window close?

2002-01-22 Thread Neil Freeman
) function ??? Nick Wilson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > * On 22-01-02 at 11:30 > * Neil Freeman said > > > Does anyone have any suggestions as to how I could achieve the > > following: > > a) Browser window closed by user cl

[PHP] Session deletion on window close?

2002-01-22 Thread Neil Freeman
Hi there, First off this may be more of a javascript question than PHP question but I was wondering if anyone else has attempted something similar (and it does involve the deletion of PHP sessions). Here's the scenario: I have a 'stand alone' website on our intranet which creates a PHP session u

Re: [PHP] Installing PHP4

2002-01-18 Thread Neil Freeman
Open up your server's config file, eg httpd.conf , and ensure that PHP's AddType line has the extension .php3 Should look something like this: AddType application/x-httpd-php .php .phtml .php3 HTH Neil Manu Verhaegen wrote: > Hi, > We have installed Apache 1.3.6 and PHP4 > If we use phpscri

Re: [PHP] string to array??

2002-01-17 Thread Neil Freeman
You just have to remember that a string is simply a character array :) Nick Wilson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > * On 17-01-02 at 12:57 > * Steve Edberg said > > > Actually, you can treat a string as an array without any further > > processing: > > > > $G

Re: [PHP] Is there Any way to call Non-Existent function in PHP

2002-01-16 Thread Neil Freeman
You can use function_exists() to check whether a function actually exists: eg: if (function_exists('imap_open')) { echo "IMAP functions are available.\n"; } else { echo "IMAP functions are not available.\n"; } HTH Neil "S. Murali Krishna" wrote: > Hai ALL > Is there any way to

Re: [PHP] Sizeof variable variable arrays

2002-01-11 Thread Neil Freeman
That's done the trick. More coffee for me I think :) Cheers Jason. Jason Wong wrote: > On Friday 11 January 2002 20:02, Neil Freeman wrote: > > Hi there guys, > > > > Who's awake today then? :) > > Someone isn't :) > >

[PHP] Sizeof variable variable arrays

2002-01-11 Thread Neil Freeman
Hi there guys, Who's awake today then? :) What I'm trying to do is create variable variable arrays and then fill these arrays with values. The problem I have though is that the values don't appear to be getting stored - as following the assignment I have outputted a 'sizeof' command which always

Re: [PHP] Error handling

2001-12-18 Thread Neil Freeman
What warnings are you receiving? Many can be avoided by doing various checks: e.g. if (!isset($some_variable)) ...some error code else ...all is well others which may be useful: function_exists() file_exists() HTH Neil Yoel Benitez Fonseca wrote: > Hi! > > There is in PHP some way

Re: [PHP] Version To Version

2001-12-07 Thread Neil Freeman
I'm using gd png in 4.0.6 with no problems (Windows). What problems are you having? Robert Covell wrote: > A question about different release versions of PHP. > > Why do things like png from gd 1.8 work in 4.0.4p1 and stops working in > 4.0.6? We had to go back to 4.0.4p1. I have seen similar

Re: [PHP] Is there a GUI for MySQL?

2001-12-07 Thread Neil Freeman
How about MySQL Front (www.mysqlfront.de). Couple of 'features' here and there but overall pretty good. Neil Hai Nguyen wrote: > Hi, > > I am a newbie at this. I was just wondering if there is a Graphical > User Interface for MySQL? > > Cheers, > > Hai Nguyen > > -- > PHP General Mailing List

Re: [PHP] preventing multiple submissions

2001-11-26 Thread Neil Freeman
Have a look at: http://www.faqts.com/knowledge_base/view.phtml/aid/863/fid/129 May be of some use. Neil Derek Mailer wrote: > I have a problem with a form on my website. > > it's part of a shopping cart application, whereby the form consists of a list of >products and the user enters the qua

Re: [PHP] php test page not working with apache 1.3.22

2001-11-09 Thread Neil Freeman
Probably not your problem but shouldn't your php line be as follows: ie without the space between Hi all, > > I've just finish upgrading my apache server to apache 1.3.22, > I have also compiled my php-4.0.6 with it. > > When I try to test it using > > saved as php, the browser tries to downlo

Re: [PHP] problem pattern matching a url with question mark

2001-10-24 Thread Neil Freeman
Why does your URL contain .asp? [EMAIL PROTECTED] wrote: > I found the following code currently used on our website to match a url > expression. Unfortunately, when I added a question mark, the webpage that > contained the url with the question mark just "hung" and would not load into > my brows

Re: [PHP] Re: calling javascript function from a form image

2001-09-24 Thread Neil Freeman
hand to show up over the image. change the tag to > > > > -- > > Chris Lee > [EMAIL PROTECTED] > > "Neil Freeman" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, > > > > I have a

[PHP] calling javascript function from a form image

2001-09-21 Thread Neil Freeman
Hi, I have a form which contains an: tags but I don't think a form will like this. Has anyone a solution? Here is my code # imagesubmit.htm function set_category() { alert("category set"); } alert(\"form submitted\");"; } else { echo "alert(\"not submitte

Re: [PHP] Detecting an image form submission via PHP

2001-09-21 Thread Neil Freeman
OK cheers, that method seems to work ok. Thanks, Neil Michael van Bracht wrote: > - Original Message - > From: "Neil Freeman" <[EMAIL PROTECTED]> > To: "PHP General" <[EMAIL PROTECTED]> > Sent: Friday, September 21, 2001 3:30 PM > Subjec

[PHP] Detecting an image form submission via PHP

2001-09-21 Thread Neil Freeman
Hi, When a form is submitted using a standard SUBMIT button it is possible to catch this via php using if ($submit) but how do you catch this if you are using an image for submitting instead of the button? Any help would be greatly appreciated. Here is a cut down version of my code: ##

[PHP] Generating variable names 'on the fly'

2001-09-20 Thread Neil Freeman
Hi there, How do I generate variable names 'on the fly'? I wish to have variable names along the lines of $genre_category_1, $genre_category_2, $genre_category_3 etc. Ideally it would be along the lines of this... ### $current_field_number = 1; $genre_number_fields = 7; whi

Re: [PHP] Problem installing GD on windows

2001-09-19 Thread Neil Freeman
d. > > Regards > > Girish > > - Original Message - > From: "Neil Freeman" ?[EMAIL PROTECTED]? > To: "Girish Nath" ?[EMAIL PROTECTED]? > Cc: "PHP General" ?[EMAIL PROTECTED]? > Sent: Wednesday, September 19, 2001 12:29 PM > Subject: Re: [PHP]

Re: [PHP] Problem installing GD on windows

2001-09-19 Thread Neil Freeman
to point to that sub-directory. > > for example : > extension_dir = D:\Apache\php4\extensions\ > > that should do it. > > regards > > girish > > - Original Message - > From: "Neil Freeman" <[EMAIL PROTECTED]> > To: "PHP General"

[PHP] Problem installing GD on windows

2001-09-19 Thread Neil Freeman
Hi there, I have downloaded the windows version of GD (php_gd.dll) as I wish to use it's various image functions. I have edited my PHP.INI file in C:\WINNT and uncommented the line: extension=php_gd.dll Where is a suitable location for this .dll file? And what should I set this PHP.INI line to?

Re: [PHP] PHP/Apache configuration for Win NT

2001-08-21 Thread Neil Freeman
You appear to have a typo in your httpd.conf: Action application/x-httpd-php /Php/php.exe should be as follows: (note the ") Action application/x-httpd-php "/Php/php.exe Hope that helps, Neil [EMAIL PROTECTED] wrote: > *** > This

[PHP] Apache alias to a specific .htm file

2001-08-17 Thread Neil Freeman
Hi there, In an ideal world I would like to be able to type http://localhost into my browser and for Apache server to throw up a specific .htm file on my hard drive. At the moment I have an Apache Alias set up as follows: Alias /ife "P:/My Projects/Storyboard" and you need to enter: http://loc

[PHP] Invoking PHP scripts from a redirect location

2001-08-17 Thread Neil Freeman
Hi, I am having trouble getting a redirected file's php section activating. Some info to help you understand: 1) Within Apache's httpd.conf file I have the following set: DocumentRoot "D:/Program Files/Apache Group/Apache/realdocs" RedirectMatch permanent ^/$ "P:/Main Projects/Test/index.php" S

Re: [PHP] Creating a javascript array from database data

2001-08-16 Thread Neil Freeman
screen, as with all prints and > echos it outputs it to html (in this case within a js function definition). > Try viewing the source produced. > > Tim > > -- > From: Neil Freeman [SMTP:[EMAIL PROTECTED]] > Sent: 15 August 2001 18:10 >

Re: [PHP] Creating a javascript array from database data (Off-List)

2001-08-16 Thread Neil Freeman
quot;; > else > /* ) [third time] */ > print ")\n"; > } > /* */ > echo "\n"; > } > > So if you can follow that (just walk all the way through > the loop for each of the three passes) you can see that > no part of the code (including the

Re: [PHP] Creating a javascript array from database data

2001-08-15 Thread Neil Freeman
i++; > if ($i < $number) > print ","; > else > print ")\n"; >} > echo "\n"; > } > > } > > Note: This is my quick *untested* fix done by modifying > your code as little as possible. I would suggest you u

[PHP] Creating a javascript array from database data

2001-08-15 Thread Neil Freeman
Hi there, Well after a few hours roaming around various websites I am at a loss. Here is what I am trying to do: 1) Access a MySQL database which contains 1 table 2) Read the records from this table 3) Store the values returned from this table into javascript array elements, ie, if I get the val