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
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
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
[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
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
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:
**
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 \
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
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:
*
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) <= $
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
**
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
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
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
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
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
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
***
-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
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
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
***
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
**
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
**
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
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
***
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
***
str_repeat ()
Tjoumaidis Tasos wrote:
**
This Message Was Virus Checked With : SAVI 3.61 September 2002 Last
Updated 15th November 2002
**
Hello t
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
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
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
> **
>
>
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
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
> *
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
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
> ***
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
> *
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
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
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
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
> ***
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
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
echo str_repeat("*", 50);
Don wrote:
> **
> This Message Was Virus Checked With : SAVI 3.58 May 2002
> Last Updated 14th June 2002
> **
>
> Hi,
>
> I'
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
>
11th June 2002
> **
>
>
> $x = preg_replace( "/([^\s&])&([^\s&])/", "$1&&$2", $x );
> should do the job.
> Michael
>
> Neil Freeman <[EMAIL PROTECTED]> schrieb:
>
>
>>Hi,
>>
&g
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
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
>
> 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
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]
-
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
> *
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
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
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
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
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
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
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
&
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
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
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
> &
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
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'
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
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
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
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
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
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
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
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
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()
&
) 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
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
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
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
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
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 :)
>
>
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
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
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
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
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
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
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
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
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
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
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:
##
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
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]
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"
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?
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
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
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
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
>
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
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
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
97 matches
Mail list logo