Justin Patrin sagde:
Ulrik S. Kofod wrote:
Why are you using eval? Eval is slow and is a hack... Just do:
$y = $$x;
if(isset($y))
{
echo p$x:$y/p;
}
}
True ! I just tested it with both eval and $$, and $$ seems to be about 3 to 4 times
faster
Lester Caine sagde:
R'Twick Niceorgaw wrote:
Is this some kind of virus? anybody else receiving it?
I have received 3 mails from this address through the list today all with a .bmp
attachment
It has passed clam av + fprot on linux as well as norton on windows but still
want to double
Well,
I must admit Im gotten abit to familiar with the use of MySQL lately,
though it might be abit overkill - but what the heck. The database is
there to be used and we shouldnt worry to much. For those really
worrying there are several file based sql alternatives out there.
Ok, I would use and
Um how so?
On Wed, 16 Jun 2004 04:18:27 +, Curt Zirzow
[EMAIL PROTECTED] wrote:
* Thus wrote Michael Lauzon ([EMAIL PROTECTED]):
I am just testing, so that I can create a filter.
btw, you're going about it wrong.
Filters will just contribute spaming to the list.
Curt
--
--
Hi
I'm interested in locating something straight forward to teach to our
programming students...
Am appreciating the discussion so far...
Trevor Nesbit
MBS BSc BCom CA PGDipBusAdmin
Degree Leader for Bachelor of ICT
Programme Leader for Graduate Diploma in eCommerce
School of Computing -
On 15 June 2004 00:07, Michael Benbow wrote:
Thanks Mike,
I have read up a lot on permutation but I'm not completely sure that
this will solve my problem. From what I can gather
permutation takes a
sample (i.e. ABC) and tells you how many different ways it
can arrange
the letters, with
Very hard (impossible) to control user activities by php-scripting. You are
talking about client-side actions while php is only server-side. You should
check for javascript client-side coding help.
Franciccio
Curt Zirzow [EMAIL PROTECTED] ha scritto nel messaggio
news:[EMAIL PROTECTED]
* Thus
Hello!
This is a newbie question ;) - i want to upgrade php and apache and
therefore i have to configure them - unfortunatly i forgot the
configuration of the current installation - how can i get the
./configure prefixes of my current php/apache version?
- Johannes
--
PHP General Mailing List
Hello!
This is a newbie question ;) - i want to upgrade php and apache and
therefore i have to configure them - unfortunatly i forgot the
configuration of the current installation - how can i get the
./configure prefixes of my current php/apache version?
- Johannes
--
PHP General Mailing List
Johannes Reichardt wrote --- napísal::
Hello!
This is a newbie question ;) - i want to upgrade php and apache and
therefore i have to configure them - unfortunatly i forgot the
configuration of the current installation - how can i get the
./configure prefixes of my current php/apache version?
Paul Liebrand wrote --- napsal::
Curt,
Thanks for the reply.
I am going to go ahead and change all my session variables to use the
methods you described. Because I am using the session_register method, could
this be the cause of my problem? That it works 90% of the time, but a couple
times
Hi list,
on RedHat with PHP 4.3.6 the following code produces 'test' - I'm expecting
'test2':
class test {
function printClass() {
echo __CLASS__;
}
}
class test2 extends test {
}
test2::printClass();
I would like to get/echo the name of the class calling the method - in my
Johannes Reichardt wrote --- napísal::
Thanks a lot - do you know how to do that with apache 1.3xxx by any chance?
What is that?
- Johannes
Johannes Reichardt wrote --- napísal::
Hello!
This is a newbie question ;) - i want to upgrade php and apache and
therefore i have to configure them -
?php
if(count($_POST) 0){
process form
...
header('Location: '.$_SERVER['PHP_SELF']);
die;
}
?
html
...
your form here
...
/html
Eoghan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
hi,
im posting a form to itself... and im wondering if there is any
Hi,
How can i send email in php usig the smtp server? I'm looking for a tutorial or a good
script.
Thanks
Phpu [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
How can i send email in php usig the smtp server? I'm looking for a
tutorial or a good script.
Take a look at PEAR's Mail package:
http://pear.php.net/package/Mail
Regards, Torsten Roehr
--
PHP General Mailing List
At 12:43 16-6-04, you wrote:
Hi,
How can i send email in php usig the smtp server? I'm looking for a
tutorial or a good script.
for what it's worth, i use the class from phpguru.org
and try a google on [helo smtp php mail], loads of hits
--
PHP General Mailing List (http://www.php.net/)
To
I use phpMailer
http://phpmailer.sourceforge.net/
makes mailing a doddle
pete
Phpu wrote:
Hi,
How can i send email in php usig the smtp server? I'm looking for a tutorial or a good
script.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Wed, 16 Jun 2004 11:49:31 +0200, Torsten Roehr [EMAIL PROTECTED] wrote:
Hi list,
on RedHat with PHP 4.3.6 the following code produces 'test' - I'm expecting
'test2':
class test {
function printClass() {
echo __CLASS__;
}
}
class test2 extends test {
}
Johannes Reichardt wrote:
Hello!
This is a newbie question ;) - i want to upgrade php and apache and
therefore i have to configure them - unfortunatly i forgot the
configuration of the current installation - how can i get the
./configure prefixes of my current php/apache version?
look in the
What is the best way to only do an update if it going to update only one
row?
I want to protect my code so that it won't accidentally update more than
one row.
I can do a select first but there must be an easier way. :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
What is the best way to only do an update if it going to update only one
row?
I want to protect my code so that it won't accidentally update more than
one row.
I can do a select first but there must be an easier way. :-)
[/snip]
Do the update with conditions (this is a SQL question)
Bob Lockie wrote:
What is the best way to only do an update if it going to update only one
row?
I want to protect my code so that it won't accidentally update more than
one row.
I can do a select first but there must be an easier way. :-)
UPDATE thisDB.thisTable SET thisTable.thisColumn =
Robin Vickery [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Wed, 16 Jun 2004 11:49:31 +0200, Torsten Roehr [EMAIL PROTECTED]
wrote:
Hi list,
on RedHat with PHP 4.3.6 the following code produces 'test' - I'm
expecting
'test2':
class test {
function printClass() {
Hi,
Where can i find the methods list of module COM ?
Ex : $Odject = new COM(WinNT://domain);
Thanks !
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 16 Jun 2004 09:40:52 -0400, Bob Lockie [EMAIL PROTECTED] wrote:
What is the best way to only do an update if it going to update only one
row?
You don't say what database you're using.
The general way is to use a unique key in the WHERE clause.
UPDATE tablename SET foo=1 WHERE
I'm writing a *very* simple search form for my db and was interested in
hearing some recommendations on what to check for with the user's input
for the search.
However, I guess more specifically my question is if anyone had any
advice as to other things I should check since it's a search form.
What is the best way to only do an update if it going to update only one
row?
You don't say what database you're using.
The general way is to use a unique key in the WHERE clause.
UPDATE tablename SET foo=1 WHERE id=123
MySQL also lets you use a LIMIT clause that will either limit the
number
On Tuesday 15 June 2004 14:14, [EMAIL PROTECTED] wrote:
Hi,
I have variables called Cookie1 to Cookie35.
I would like to print the values of Cookie1 to Cookie35 using for loop.
Could anybody correct the below code to print the variables.
==
for($i=1;$i34;$i++)
On Tuesday 15 June 2004 05:47, cory wrote:
alas, when i upload a file, nothing arrives in the specified folder. All
permissions are set to full access.
Get the example in the manual to work then modify it to your needs.
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source
Nguyen, Long P (Mission Systems) wrote:
this is an entry in the php.ini file:
error_reporting = E_ALL ~E_NOTICE
where on the machine are the error logged to?
Below that will be a line like this...
display_errors = On
If you setting is Off, change it to 'On', and restart your webserver.
Also,
On Monday 14 June 2004 22:21, Phil Ewington - 43 Plc wrote:
Is your commandline php executable compiled --with-mysql ?
My PHP installation (4.3.6) was configured with: with-mysql=shared
Does
/path/to/php -i | less
confirm this?
--
Jason Wong - Gremlins Associates - www.gremlins.biz
ok - I checked and it's set to:
display_errors = On
so going back to your original question - yes error set to display on, but I don't
think I am seeing errors - where are the error logs?
Thank you
-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June
On Wed, 16 Jun 2004 08:33:46 -0700, Nguyen, Long P (Mission Systems)
[EMAIL PROTECTED] wrote:
so going back to your original question - yes error set to display on, but I don't
think I am seeing errors - where are the error logs?
Depends on what web server software you're using. Mine are in
On Wed, 16 Jun 2004 10:34:21 -0400, Gabe [EMAIL PROTECTED] wrote:
I'm writing a *very* simple search form for my db and was interested in
hearing some recommendations on what to check for with the user's input
for the search.
However, I guess more specifically my question is if anyone had
On Wed, 16 Jun 2004 00:13:50 -0700, Kevin Clark [EMAIL PROTECTED] wrote:
Um how so?
He probably means it's improper netiquette to send a test message to
such a large list as php-general. One could just wait for a message,
as they usually come only moments apart. Sending a test message can
Greg Donald wrote:
On Wed, 16 Jun 2004 00:13:50 -0700, Kevin Clark [EMAIL PROTECTED] wrote:
Um how so?
He probably means it's improper netiquette to send a test message to
such a large list as php-general. One could just wait for a message,
as they usually come only moments apart. Sending a
Hello,
I'm pulling a date in the datetime format via a MySQL query. Using PHP I
would like to check if that date is prior to today's date. Can someone
please help with this quick question.
Thanks,
Ryan
If your table has a primary key, or auto increment field works well and is
quick.
What is the best way to only do an update if it going to update only one
row?
I want to protect my code so that it won't accidentally update more than
one row.
I can do a select first but there must be an
Ryan Schefke [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,
I'm pulling a date in the datetime format via a MySQL query. Using PHP
I
would like to check if that date is prior to today's date. Can someone
please help with this quick question.
You could convert it to a
Hi All,
Answering my own question here, maybe this will help others out:
I found a nifty function below that will return seconds from Unix epoch to a
mysql value in the datetime format. I'll just compare this to the php
function time(). Let me know if anyone has a better solution.
?
apache - and I would think that mine would also be /var/log/apache but that path does
not exist - was this created automatically when apache was installed?
-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 12:00 PM
To: Nguyen, Long P (Mission
Quoting Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]:
apache - and I would think that mine would also be /var/log/apache but that
path does not exist - was this created automatically when apache was
installed?
probably its /var/log/httpd ?
-R'twick
--
This is a signature
LIMIT 1
Bob Lockie [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
What is the best way to only do an update if it going to update only one
row?
I want to protect my code so that it won't accidentally update more than
one row.
I can do a select first but there must be an easier
I wondering how browsers handle the following html-codes:
link rel=stylesheet src=style.php /
and
script type=text/javascript src=code.php/script
are there any browser that will choke in it because the files don't have the
appropriate (.css and .js) extension?
--
PHP General Mailing List
Found it, thanks. The errors are:
[Wed Jun 16 13:49:12 2004] [error] [client 158.114.144.121] File does not exist:
/var/www/html/, referer: http://158.114.148.90/index.php3
[Wed Jun 16 13:49:14 2004] [error] [client 158.114.144.121] File does not exist:
/var/www/html/, referer:
Hello,
On 06/16/2004 07:43 AM, Phpu wrote:
Hi,
How can i send email in php usig the smtp server? I'm looking for a tutorial or a good
script.
You may want to try this class that lets you send messages via a custom
SMTP server if you really have to:
http://www.phpclasses.org/mimemessage
--
Gerben mailto:[EMAIL PROTECTED]
on Wednesday, June 16, 2004 10:38 AM said:
I wondering how browsers handle the following html-codes:
link rel=stylesheet src=style.php /
and
script type=text/javascript src=code.php/script
are there any browser that will choke in it because the files
[Wed Jun 16 13:49:12 2004] [error] [client 158.114.144.121] File does not exist:
/var/www/html/, referer: http://158.114.148.90/index.php3
[Wed Jun 16 13:49:14 2004] [error] [client 158.114.144.121] File does not exist:
/var/www/html/, referer: http://158.114.148.90/index.php3
[Wed Jun 16
Quoting Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]:
Found it, thanks. The errors are:
[Wed Jun 16 13:49:12 2004] [error] [client 158.114.144.121] File does not
exist: /var/www/html/, referer: http://158.114.148.90/index.php3
/var/www/html/
check your httpd.conf file and see if
I wondering how browsers handle the following html-codes:
link rel=stylesheet src=style.php /
and
script type=text/javascript src=code.php/script
are there any browser that will choke in it because the files don't have the
appropriate (.css and .js) extension?
What matters is the
I have a text file (log file) that I want to be able to read the last 30 or
40 lines of. I've created the code below, but since this file is so large
(currently 8 MB) it won't work. The code works on smaller files, but not
this one. Can someone look at this below and tell me where I went wrong?
[snip]
I've created the code below, but since this file is so large
(currently 8 MB) it won't work.
[/snip]
I would guess you are running into your php memory_limit.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Doesn't look like it..
DocumentRoot /var/www/html
-Original Message-
From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 1:10 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] index.php not loading up
Quoting Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]:
I don't think there is a standard for the extensions of these files. In
fact, this page: http://www.w3c.org/TR/CSS1#basic-concepts
uses a url of http://style.com/cool; as an example of an external style sheet.
Also, I use a .php file as a javascript include on my site. The script is
included on
I have an issue where I have a value in a link like this:
http://www.something.com/templates/nav.php?page=about
But when the link is clicked on, the value of page is empty. Is this a
globals issue of some sort?
Thanks,
-Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Mike R [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have an issue where I have a value in a link like this:
http://www.something.com/templates/nav.php?page=about
But when the link is clicked on, the value of page is empty. Is this a
globals issue of some sort?
Try accessing
Both $_GET['page'] and print_r($_REQUEST) come up empty! No results at all.
:\
-Mike
-Original Message-
From: Torsten Roehr [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 3:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Value in URL issue
Mike R [EMAIL PROTECTED]
[EMAIL PROTECTED] (Mike R) wrote in
news:[EMAIL PROTECTED]:
I have an issue where I have a value in a link like this:
http://www.something.com/templates/nav.php?page=about
But when the link is clicked on, the value of page is empty. Is this a
globals issue of some sort?
Thanks,
$_SERVER['QUERY_STRING'] should get anything after the ? in your url.
- Original Message -
From: Mike R [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 1:45 PM
Subject: [PHP] Value in URL issue
I have an issue where I have a value in a link like this:
Greg Donald wrote:
On Wed, 16 Jun 2004 10:34:21 -0400, Gabe [EMAIL PROTECTED] wrote:
I'm writing a *very* simple search form for my db and was interested in
hearing some recommendations on what to check for with the user's input
for the search.
However, I guess more specifically my question is if
[EMAIL PROTECTED] (Scott Miller) wrote in
news:[EMAIL PROTECTED]:
I have a text file (log file) that I want to be able to read the last
30 or 40 lines of. I've created the code below, but since this file
is so large (currently 8 MB) it won't work. The code works on smaller
files, but not
I only get 'NULL' when I do that. Sort of interesting.
-Mike
-Original Message-
From: Matt Grimm [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 4:10 PM
To: Mike R
Subject: Re: [PHP] Re: Value in URL issue
Try this at the top of nav.php (before any other code):
Nothing gets printed out with this. :\
-Mike
-Original Message-
From: Gabino Travassos [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 4:04 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Value in URL issue
$_SERVER['QUERY_STRING'] should get anything after the ? in
Ulrik S. Kofod wrote:
Justin Patrin sagde:
Ulrik S. Kofod wrote:
Why are you using eval? Eval is slow and is a hack... Just do:
$y = $$x;
if(isset($y))
{
echo p$x:$y/p;
}
}
True ! I just tested it with both eval and $$, and $$ seems to be about 3 to 4
times
Matthieu Loudes wrote --- napsal::
Hi,
Where can i find the methods list of module COM ?
Ex : $Odject = new COM(WinNT://domain);
Thanks !
Matt
http://msdn.microsoft.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Maybe you should post all the relevant code.
- Original Message -
From: Mike R [EMAIL PROTECTED]
To: Gabino Travassos [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 2:36 PM
Subject: RE: [PHP] Value in URL issue
Nothing gets printed out with this. :\
-Mike
Used all but 'Generic PHP Framework' and everything was quite fine and
worked out just as i expected. But i was still missing some features
which made me build my own small library to fit into my Framework.
-- red
Rick Fletcher wrote:
Has anyone done any PHP unit testing? I've been looking around
Allmost forgot about this one:
http://www.phppatterns.com/index.php/article/articleview/33/1/2/
very well written ( phpPatterns() ) covers some other nice topics
as well, allways worth a read.
-- red
Red Wingate wrote:
Used all but 'Generic PHP Framework' and everything was quite fine and
worked
On Wed, 16 Jun 2004 16:10:10 -0400, Gabe [EMAIL PROTECTED] wrote:
Hi Greg, I was looking at your function and I was wondering if you could
explain how the slashes function works exactly. It looks like it is
recursive, but I don't understand why you would need to do that.
It handles regular
Or maybe execution time limit.
[snip]
I've created the code below, but since this file is so large
(currently 8 MB) it won't work.
[/snip]
I would guess you are running into your php memory_limit.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Forwarded to the list...
- Pôvodná správa -
Predmet: RE: [PHP] list methods of class COM ?
Dátum: Wed, 16 Jun 2004 17:06:25 -0400
Od: Gryffyn, Trevor [EMAIL PROTECTED]
Pre: Marek Kilimajer [EMAIL PROTECTED]
I'm not familiar with using COM(WinNT://domain) but I've done quite a
bit with COM
I have a script that calls a function called conbox. This function creates
the HTML to a content box and you also pass a file to be included into the
content area of the box.
The function echos out some of the HTML, then does a simple include(), and
then echos out the rest of the HTML.
I'm
Hi All,
I've built my own shopping cart and use a library supplied by USAePay. The
library is accessed via an include statement in my code. Because of theirs
a desire to keep this library outside of my public web file directory
USAePay recommended using:
include
Stephen Craton wrote:
I have a script that calls a function called conbox. This function creates
the HTML to a content box and you also pass a file to be included into the
content area of the box.
The function echos out some of the HTML, then does a simple include(), and
then echos out the rest
Warning: main(): open_basedir restriction in effect.
File(/usr/local/lib/php/usaepay.php) is not within the allowed path(s):
(/home/httpd/vhosts/tgwedding.com/httpdocs:/tmp) in
/home/httpd/vhosts/tgwedding.com/httpdocs/tgwedding/payment7.php on line 11
How can I resolve this?
Search the PHP
Thank you for the suggestion, worked like a charm. I was using GLOBALS
earlier in the script because of the same issue, just wasn't thinking about
it for these variables. :-)
Thanks,
Stephen Craton
http://www.melchior.us
-Original Message-
From: Justin Patrin [mailto:[EMAIL PROTECTED]
* Thus wrote Scott Miller ([EMAIL PROTECTED]):
I have a text file (log file) that I want to be able to read the last 30 or
40 lines of. I've created the code below, but since this file is so large
(currently 8 MB) it won't work. The code works on smaller files, but not
this one. Can someone
hmm.. the third different topic in this thread..
* Thus wrote Mike R ([EMAIL PROTECTED]):
I have an issue where I have a value in a link like this:
http://www.something.com/templates/nav.php?page=about
But when the link is clicked on, the value of page is empty. Is this a
globals issue
* Thus wrote Gabino Travassos ([EMAIL PROTECTED]):
Maybe you should post all the relevant code.
Please dont.
If a simple script like so:
?php vardump($_GET);
that is access via:
http://server/simplescript.php?avar=avalue
Is printing null, then something else is wrong.
Curt
--
First, let
* Thus wrote Ryan Schefke ([EMAIL PROTECTED]):
I've built my own shopping cart and use a library supplied by USAePay. The
library is accessed via an include statement in my code. Because of theirs
a desire to keep this library outside of my public web file directory
USAePay recommended
* Thus wrote Ulrik S. Kofod ([EMAIL PROTECTED]):
but I think it is easier to read the program when using eval as it is more eye
catching than just an extra $ that is easily missed.
quote
If eval() is the answer, you're almost certainly asking the
wrong question. -- Rasmus Lerdorf, BDFL of PHP
Ryan Schefke wrote --- napísal::
Hi All,
I've built my own shopping cart and use a library supplied by USAePay. The
library is accessed via an include statement in my code. Because of theirs
a desire to keep this library outside of my public web file directory
USAePay recommended using:
Hi, I have been working to create a program that takes a user-uploaded
background image, a little alpha blending, some data, and a pinch of
fairy dust, and outputs a nice image. I have had trouble with the image
displaying properly in Internet Explorer. An example:
That's sort of a known issue with our oh so standards compliant
favourite browser...
Search google for
ie png transparency
and though shall be enlighted.
Richard
-Original Message-
Hi, I have been working to create a program that takes a user-uploaded
background image, a little
HI there,
I am wondering if it is possible to generate a pdf page with pdflib based on a
existing pdf document. For example using an invoice template and filling in the
values with php.
Thank you for any hint,
Merlin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
86 matches
Mail list logo