It can'tbe done with PHP, cause it must be client side script, aka
Javascript:
"javascript: window.close();"
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ok I take it, it will be something like this:
$mail = new htmlMimeMail();
$mail->setHeader("Return-Path", $proxy_from);
$mail->setHeader("Reply-To", $proxy_from);
??
i'll give it a try and let u know if I came right!
Angelo Zanetti wrote:
hi guys.
I'm having a problem with mails I'm sendin
hi guys.
I'm having a problem with mails I'm sending out using htmlMimeMail
class. Some of the mail accounts mark the mails as trash/bulk/spam and
on some accounts the mail doesnt come through at all. Im assuming it has
something to do with the headers of the email.
In the htmlMimeMail class
Oliver Grätz wrote:
All attempts at shutting of access to the code is bound to fail. PHP is
an interpreted anguage. If the script on the other server can read your
code then the programmer of that script can also read your sourcecode.
So, what to do?
You could use some of the encoders. Using the
Just for the laugh: You could send a redirection to a page that causes
the browser to crash ;-) No client side scripting involved *g*.
OLLi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
And mysql is probably the fastest way. BUT use microtime and clock your
scripts to find out witch one is faster.
-Original Message-
From: Paul Goepfert [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 07, 2006 10:45 AM
To: Peter Lauri
Cc: php-general@lists.php.net
Subject: Re: [PHP] Is t
Paul Goepfert schrieb:
> Is there a more efficient way to do this using more PHP and less mysql?
Anything that helps you inside SQL to get your solution doing just one
statement should be faster than doing two queries with some PHP code
inbetween for "reasonable complicated" tasks. This is because
Paul,
In your purchase table, do you have the exact date when the equipment was
purchased? If that is the case, then you do not need the additional year
table, your original table already consist of that information.
/Peter
-Original Message-
From: Paul Goepfert [mailto:[EMAIL PROTECTED
All attempts at shutting of access to the code is bound to fail. PHP is
an interpreted anguage. If the script on the other server can read your
code then the programmer of that script can also read your sourcecode.
So, what to do?
You could use some of the encoders. Using these tools the other peo
using mysql is better then using php.
SELECT y_id, year FROM Year WHERE year <= year(curdate)
ORDER BY year desc;
Paul Goepfert wrote:
Hi all,
I have a table of years going from 1985 - 2008. These years represent
the purchase year. I have created a SQL statement that selects the
years that a
I am using this table to find out what year the person purchased their
equipment
On 2/6/06, Peter Lauri <[EMAIL PROTECTED]> wrote:
> I do not know if it is more efficient, but you can do this:
>
> $year = date("Y");
> $Query = sprintf("SELECT y_id, year FROM Year WHERE year <= %s ORDER BY year
> D
Greg Schnippel wrote:
Has anyone developed a really good defense against email injection attacks?
A bit late but this is a good guide:
http://securephp.damonkohler.com/index.php/Email_Injection
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
Hi,
Already search in the whole world, except here :D.
When i access to some pages on my web site i get this error
Fatal error: out of dynamic memory in yy_create_buffer() in Unknown on line 0
This maybe a memory problem, but it happens in pages that have just one
connection to db and get a f
Thanks to all..
Regards,
FA.
Brady Mitchell wrote:
Example
Page1.php
===
$name_pro = "VC++ V2.4"
print "
href='page2.php?page=&value=$name_pro'> $name_pro ";
Use urlencode (http://php.net/urlencode):
print " $name_pro
";
Chris wrote:
Hi,
Just because it supports the keyword 'limit' doesn't mean much.
mysql does:
select * from table limit x,y;
postgresql does:
select * from table limit y offset x;
different syntax.
Because it makes the thread harder to read.
Why is top posting bad?
Anywho, A) I said that "
I do not know if it is more efficient, but you can do this:
$year = date("Y");
$Query = sprintf("SELECT y_id, year FROM Year WHERE year <= %s ORDER BY year
DESC;", $year);
$Result = mysql_query($Query);
May I ask you what you are using this table for?
/Peter
-Original Message-
From: Pau
Hi,
Is there a /usr/sbin/sendmail file on the server? php looks for this
when it compiles, if it's not there then mail() won't work.
(check a phpinfo page as well and look for sendmail_path).
PHP wrote:
I also noticed there is no /usr/local/lib/php/Mail directory anymore,
should there be wit
Hi Roman,
This line is your problem.
$lines = preg_replace("/\n/", "", $lines);
You're replacing your newlines with tags.
Your explode won't find anything because it's looking for \n 's.
Labunski wrote:
Hello,
The problem is, that script outputs Last line from the file (and not first
lin
Hi,
Just because it supports the keyword 'limit' doesn't mean much.
mysql does:
select * from table limit x,y;
postgresql does:
select * from table limit y offset x;
different syntax.
John Nichel wrote:
James Kaufman wrote:
On Mon, Feb 06, 2006 at 05:08:59PM +0200, Andrei wrote:
You can
There's only one way to find out :)
David Yee wrote:
Thanks guys for clarifying the compression aspect. Using
mysql_unbuffered_query w/ multipe conenctions sounds nice and simple- though
would this method mean more disk access than multiple limit queries? As far
as speed goes I imagine if I loa
Thanks guys for clarifying the compression aspect. Using
mysql_unbuffered_query w/ multipe conenctions sounds nice and simple- though
would this method mean more disk access than multiple limit queries? As far
as speed goes I imagine if I load as big of a dataset as possible into
physical memory w
Hello all,
I've been poking around a little bit, and I haven't found a good link for
showing the performance differences between the two versions of PHP. Mostly
I was just curious what the numbers were. I've heard some conflicting
opinions on the matter, and wanted to clear it up with some fa
Hi all,
I have a table of years going from 1985 - 2008. These years represent
the purchase year. I have created a SQL statement that selects the
years that are available for purchase years. For example 2006 -1985.
Here is the SQL statement I created to produce that output.
SELECT y_id, year
Hi David,
From the comments on unbuffered_query:
However, when using different db connections, it all works ofcource ...
So create a second db connection and when you run the insert use that
instead:
$result2 = mysql_query("insert blah", $dbconnection_two);
client-compress will compress the
On Mon, 2006-02-06 at 19:39, David Yee wrote:
> I'm still not sure why the MYSQL_CLIENT_COMPRESS didn't seem to have an effect
That causes the data to be transfered from the MySQL server to the
client with compression. The results are still uncompressed on the
client.
Cheers,
Rob.
--
.--
Thanks guys- I think I'll have to do multiple queries using LIMIT as Geoff
suggested since apparently mysql_unbuffered_query() would lose the result
set of the "select * from" query once I run the insert query. I'm still not
sure why the MYSQL_CLIENT_COMPRESS didn't seem to have an effect, however
Fernando Anchorena wrote:
> I need a helping hand to solve this
>
> $name_pro = "VC++ V2.4"
> print " href='page2.php?page=&value=$name_pro'> $name_pro ";
1: Ampersands have special meaning in HTML and must be represented by
entities (for the same reason you have to escape $ signs wi
Hi David,
See http://www.php.net/mysql_unbuffered_query
It won't load the whole lot into memory before returning it to php.
David Yee wrote:
Hi all- is there a way have a large data result set from MySQL compressed?
E.g. I have a table with over a million rows of data that I want to do a
"sele
On 6 Feb 2006 at 16:03, David Yee wrote:
> Hi all- is there a way have a large data result set from MySQL compressed?
> E.g. I have a table with over a million rows of data that I want to do a
> "select * from " on and then take that result, do some field/data
> manpulation, and then insert row-by
Hi,
Tuesday, February 7, 2006, 9:01:18 AM, you wrote:
FA> I need a helping hand to solve this
FA> Example
FA> Page1.php
FA> ===
FA> $name_pro = "VC++ V2.4"
FA> print " href='page2.php?page=&value=$name_pro'> $name_pro ";
FA>
Hi all- is there a way have a large data result set from MySQL compressed?
E.g. I have a table with over a million rows of data that I want to do a
"select * from " on and then take that result, do some field/data
manpulation, and then insert row-by-row to another table. The problem is
the result
> Example
> Page1.php
> ===
> $name_pro = "VC++ V2.4"
> print " $name_pro ";
Use urlencode (http://php.net/urlencode):
print " $name_pro
";
Brady
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.
I need a helping hand to solve this
Example
Page1.php
===
$name_pro = "VC++ V2.4"
print " href='page2.php?page=&value=$name_pro'> $name_pro ";
===
Page2.php
=
To all:
Thanks for all your replies.
I realize and understand that php is server-side -- however, with
that said -- there ARE ways around some barriers such as using
javascript, which can be delivered via php. Granted not all users
have javascript installed, but for what I'm doing, I know my
Could someone tell me if I am doing this correctly? For some reason, my
mailer stops working after a few months. It doesn't get used all that
often so, I check it every few months to make sure it works. Here is the
script. I have this script working on another site hosted by the same
company althou
At 11:05 AM 2/6/2006, tedd wrote:
This might seem like a odd question, but in php I can leave a script
by "exit;" But, how can I also close the html page that contains the script?
I know that I can close the page many different ways via a user
actions, but how can I close it from within a cond
At 12:17 PM 2/6/2006, Paul Novitski wrote:
At 07:15 AM 2/5/2006, tedd wrote:
Does anyone know a way to generate a sound (bell, click, tone, peep,
buzz, word) from php?
Hi Tedd,
I was about to tell you that ringing a bell from PHP wasn't possible,
since PHP is executed on the server, but I s
I have a couple of questions about php and accessing mysql 4.1 via
the mysqli interface.
I get the following warning on a script:
Warning: mysqli::mysqli() [connections in
but this server is in development. I wanted to look at processes
(it's the same for show full processlist):
+
This list is like the Hotel California - you can check in, but you can never
leave.
muhahahaha.
>>> <[EMAIL PROTECTED]> 03-Feb-06 14:54:04 PM >>>
This is the 5th time... REMOVE ME
On Mon, 06 Feb 2006 14:20:26 -0500
"Chandler Zwolle" <[EMAIL PROTECTED]> wrote:
>
> stop i hate ur mailing list and i cant get off
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
Try one or more of the following:
1. The unsubscribe
On 6 Feb 2006, at 17:21, Daniel Bondurant wrote:
I am using php and readfile() to control the download of large
files; These files can be up to 1GB.There is nothing really
exciting or special about the script itself.
The problem I am running into is php is loading the entire file
into
>
> [snip]
> stop i hate ur mailing list and i cant get off
> [/snip]
>
> Hate is a pretty strong word there Skipper.
>
> See this?
>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> Click on the link and follow the instructions.
I'm sure someone who cannot use punctuation or proper
On Mon, Feb 06, 2006 at 02:05:55PM -0500, tedd wrote:
> Hi:
>
> This might seem like a odd question, but in php I can leave a script
> by "exit;" But, how can I also close the html page that contains the
> script?
>
> I know that I can close the page many different ways via a user
> actions, b
On 6 Feb 2006, at 19:20, Chandler Zwolle wrote:
stop i hate ur mailing list and i cant get off
Your sexual issues are of no interest to us.
Cheers,
Rich
--
http://www.corephp.co.uk
Zend Certified Engineer
PHP Development Services
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
On Mon, Feb 06, 2006 at 09:21:22AM -0800, Daniel Bondurant wrote:
> I am using php and readfile() to control the download of large files;
> These files can be up to 1GB.There is nothing really exciting or
> special about the script itself.
>
> The problem I am running into is php is loadin
>
> stop i hate ur mailing list and i cant get off
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
Why did you join? Notice the "To unsubscribe, visit:
http://www.php.net/unsub.php"; at the bottom of every message here. Thats a
c
On Feb 6, 2006, at 12:11 PM, James Kaufman wrote:
Answers that show SQL commands that apply to specific databases annoy
me. Not everyone uses MySQL. I've worked with several databases that
don't support a LIMIT command. At least mention the database engine
you are referencing.
Response like th
[snip]
stop i hate ur mailing list and i cant get off
[/snip]
Hate is a pretty strong word there Skipper.
See this?
To unsubscribe, visit: http://www.php.net/unsub.php
Click on the link and follow the instructions.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:
Chandler Zwolle wrote:
stop i hate ur mailing list and i cant get off
PEBKAC
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.ph
James Kaufman wrote:
On Mon, Feb 06, 2006 at 05:08:59PM +0200, Andrei wrote:
You can use SELECT fields FROM table WHERE condition LIMIT 15, -1 and it
will select all from 15...
Andy
William Stokes wrote:
Hello
I have a news page which is getting quite long now and I would like to
tedd wrote:
Hi:
This might seem like a odd question, but in php I can leave a script by
"exit;" But, how can I also close the html page that contains the script?
I know that I can close the page many different ways via a user actions,
but how can I close it from within a conditional php stat
stop i hate ur mailing list and i cant get off
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
This might seem like a odd question, but in php I can leave a script
by "exit;" But, how can I also close the html page that contains the
script?
I know that I can close the page many different ways via a user
actions, but how can I close it from within a conditional php
statement?
[/sn
>
> Hi:
>
> This might seem like a odd question, but in php I can leave a script
> by "exit;" But, how can I also close the html page that contains the
> script?
>
> I know that I can close the page many different ways via a user
> actions, but how can I close it from within a conditional php
Hello,
The problem is, that script outputs Last line from the file (and not first
line, as expected)!
4 hours spent seeking for mistake. Hopeless.
The script should read all the filenames in the directory,
then open each file to read first line from file and output this line.
if(!isset($_GET['i
On Mon, Feb 06, 2006 at 05:08:59PM +0200, Andrei wrote:
>
> You can use SELECT fields FROM table WHERE condition LIMIT 15, -1 and it
> will select all from 15...
>
> Andy
>
> William Stokes wrote:
> >Hello
> >
> >I have a news page which is getting quite long now and I would like to
> >s
I also noticed there is no /usr/local/lib/php/Mail
directory anymore, should there be with php5?
- Original Message -
From:
PHP
To: php
Sent: Monday, February 06, 2006 10:35
AM
Subject: [PHP] mail problem
Hi,
I upgraded to apache 2.2 and php5, now all my
Hi:
This might seem like a odd question, but in php I can leave a script
by "exit;" But, how can I also close the html page that contains the
script?
I know that I can close the page many different ways via a user
actions, but how can I close it from within a conditional php
statement?
Th
Hi,
I upgraded to apache 2.2 and php5, now all my
mail() functions return false.
But there is nothing in the logs as to why it
failed.
sendmail is in the path.
Has something else changed that won't let mail()
run?
Thanks.
No virus found in this outgoing message.
Checked by AVG Fre
Before I came to my company, they created a Redhat server for our web server.
Of course they let the redhat installer install PHP. It all works great but now
I need to compile a module into php. Is this possible to do without causing
havok? Bascially we really can't have more downtime that it wo
Hi Jochem,
well, thanks for the code... it's working perfect, but it seams a
little bit slow as it's using while... doesn't?
Now, abusing of you, how can I unset a variable the same recursive
way? :D Maybe like this?
/
***
I am new to this list so forgive me if this has already been
addressed. What I would like to do is keep a library of php scripts
on my site. I would like customer sites to call the functions in my
library, but have their server do the work. I would like to keep
the proprietary code off of the
At 08:34 AM 2/6/2006, Christopher Taylor wrote:
I only changed the file extension as an experiment. I understand
that the changing of the file extension does nothing for security,
but it does allow the functions residing on my site to be read and
executed on the client's server.
Chris,
PHP
Hello everybody.
I'm trying to use the Advanced PHP Debugger (APD), but it generates no
output. Actually, It does generate a file, but with no content.
What's going on?
1.- I installed the APD by running `pear install APD` with no problem.
2.- Setup my php.ini file the same way as described i
I am using php and readfile() to control the download of large files;
These files can be up to 1GB.There is nothing really exciting or
special about the script itself.
The problem I am running into is php is loading the entire file into
apache's memory as the file is being read - this s
You should talk to your provider. PayPal does not leave anything
legible on my html page, just an encrypted string. Once you end up on
PayPal's secure page, the email address is visible. I use a special
account, just for that purpose.
I'm afraid your provider dictates your solution...
Gerry
On 2
Hi,
I know this message is probably going to flood my inbox with agency
crap and 'offshore' development ads, but hopefully something good
will come of it:
If you are based in the UK and provide freelance PHP development, and
**have some availability** then please send me an email with a c
Greg Schnippel wrote:
Has anyone developed a really good defense against email injection attacks?
I've implemented a complex algorithm to help prevent this problem. Every
form I have has a text field with a random name surrounded by the
text... "If you are human please enter 'human' (with
> On 2/6/06, Jim Moseby wrote:
> Is it time to abandon using mail() for all user contributed data?
Sort of. Don't write any user input to the headers.
Send the data to a default address, don't include anything in the
subject or the headers from the input and you'll avoid the problems.
--
Kind
Jochem Maas wrote:
search for 'php encoder' and use one (some cost money).
I believe that the php encoder keeps the syntax but changes the variable
names to make it less readable. I am not sure if this is enough.
changing an file extension from 'php' to 'inc' does nothing to protect your
code
tedd wrote:
Hi gang:
Does anyone know a way to generate a sound (bell, click, tone, peep,
buzz, word) from php?
tedd
Not client side, only serverside.
Clientside you have some options like html WAV files and javascript
probably.
The browser dont supports audio output (i dont know any bro
Christopher Taylor wrote:
I am new to this list so forgive me if this has already been addressed.
What I would like to do is keep a library of php scripts on my site. I
would like customer sites to call the functions in my library, but have
their server do the work. I would like to keep the p
At 07:15 AM 2/5/2006, tedd wrote:
Does anyone know a way to generate a sound (bell, click, tone, peep,
buzz, word) from php?
Hi Tedd,
I was about to tell you that ringing a bell from PHP wasn't possible,
since PHP is executed on the server, but I searched for
http://php.net/bell and found th
Why dont you just break the code. Before anything goes through replace
colons with dashes, dashes with underscores, etc. Stuff that will not mess
up readability but would prevent it from being parsed by the mail function.
On 2/6/06, Jim Moseby <[EMAIL PROTECTED]> wrote:
>
> > - The most foolpro
Bruno B B Magalhães wrote:
Hi guys..
thanks for the echo, Bruno-o-o-o-o-o-o :-)
not having had an answer inside of half an hour is no reason
to don't double post your question - please be patient.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
Bruno B B Magalhães wrote:
Hi guys..
well I have a little "problem", I succeeded on retrieving a value by
it's key, but I want a clean and faster method... Let me explain:
I have the following function which I use to set variables in my
framework like (configs, requests, etc)...
/**
Greg Schnippel wrote:
Has anyone developed a really good defense against email injection attacks?
I'm waging a prolonged campaign against these luser hordes on a number
of non-profit sites I help maintain. I've tried to secure all of the
feedback forms using the function below that I cobbled to
I am new to this list so forgive me if this has already been addressed.
What I would like to do is keep a library of php scripts on my site. I
would like customer sites to call the functions in my library, but have
their server do the work. I would like to keep the proprietary code off
of the
Hi guys..
well I have a little "problem", I succeeded on retrieving a value by
it's key, but I want a clean and faster method... Let me explain:
I have the following function which I use to set variables in my
framework like (configs, requests, etc)...
/**
> - The most foolproof solution I can think of would be to continue
> logging the successful entries to a database and _not_ send the email.
> That way even if they get through, no emails get sent. The form would
> log the feedback and send an email to the admin that a comment is
> available for v
Has anyone developed a really good defense against email injection attacks?
I'm waging a prolonged campaign against these luser hordes on a number
of non-profit sites I help maintain. I've tried to secure all of the
feedback forms using the function below that I cobbled together from
various php s
Hi guys..
well I have a little "problem", I succeeded on retrieving a value by
it's key, but I want a clean and faster method... Let me explain:
I have the following function which I use to set variables in my
framework like (configs, requests, etc)...
/**
It always helps to have a different point of view to look at code sometimes.
Else you'll go bonkers looking for that stupid semi-colon! :)
On 2/6/06 2:18 AM, "Paul Goepfert" <[EMAIL PROTECTED]> wrote:
> Thanks everyone for your help. I should have seen the semi-colon at
> the end of the while
You can use SELECT fields FROM table WHERE condition LIMIT 15, -1 and it
will select all from 15...
Andy
William Stokes wrote:
Hello
I have a news page which is getting quite long now and I would like to split
the news to two pages. Now I have one SQL query for all the rows and I t
William Stokes wrote:
> One page one there's headline and short summary and the second page should
> be "archive" with only the headline so all remaining rows can be printed
> to one page.
>
> Something like: "SELECT * FROM `x_news` LIMIT 0 , 15" but how to do the
> archive page SELECT * FROM `
I have a news page which is getting quite long now and I would like
to split
the news to two pages. Now I have one SQL query for all the rows
and I think
I could use LIMIT to limit the results but how to limit the results
for
example to 15 rows for page one and from 16 to the last on second
Hello
I have a news page which is getting quite long now and I would like to split
the news to two pages. Now I have one SQL query for all the rows and I think
I could use LIMIT to limit the results but how to limit the results for
example to 15 rows for page one and from 16 to the last on seco
I think(hope :)) I got it right:
table products
prod_id is primary key
table prices
price_id is primary key
prod_id is foreign key
table categories_has_products (since one product can be in more then one
category, I have this table with only two columns: cat_id and prod_id, to
link tabl
Or just append it...
Example:
$var = "";
$result = mysql_query(³SELECT filename, page_title FROM table²);
while ($row = mysql_fetch_assoc($result))
{
$var .= "{$row[page_title¹]}";
}
echo $var;
Arno
DotContent
www.dotcontent.net
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 05, 2006 2:47 PM
To: [EMAIL PROTECTED]
Cc: PHP-General
Subject: Re: [PHP] Reverse Engineering of Smarty
On Sun, 2006-02-05 at 01:12, Sumeet wrote:
> Rory Browne wrote:
> > If you don't have backups,
On Mon, 06 Feb 2006 07:14:21 -0600
Pastor Steve <[EMAIL PROTECTED]> wrote:
>
> Greetings,
>
> I am attempting to put the results of a ³while² loop into a variable.
>
>
> Example:
>
> $result = mysql_query(³SELECT filename, page_title FROM table²);
> while ($row = mysql_fetch_assoc($result))
>
Put it in an array?
-Original Message-
From: Pastor Steve [mailto:[EMAIL PROTECTED]
Sent: Monday, February 06, 2006 8:14 PM
To: PHP eMail List
Subject: [PHP] Results In Variable
Greetings,
I am attempting to put the results of a ³while² loop into a variable.
Example:
$result = mysql_
Marco Kaiser wrote:
Hi,
i tested it with php 5.1.3-dev snap and it works correctly for me.
btw. $return = $notdefined_variable; is a bad style for coding and this
happens in your situation in a undefined behavior.
If you think this is a bug please go to http://bugs.php.net and report them
there
Greetings,
I am attempting to put the results of a ³while² loop into a variable.
Example:
$result = mysql_query(³SELECT filename, page_title FROM table²);
while ($row = mysql_fetch_assoc($result))
{
$var = ³{$row[page_title¹]}²;
echo ³$var²;
Cheers!
"Richard Davey" <[EMAIL PROTECTED]> kirjoitti
viestissä:[EMAIL PROTECTED]
>
> On 6 Feb 2006, at 12:18, William Stokes wrote:
>
>> How can I test whether a string is 1 or 2 digits long?
>
> Cast it to an int (or float if required) and strlen() it.
>
> Cheers,
>
> Rich
> --
> http://www.cor
On 6 Feb 2006, at 12:18, William Stokes wrote:
How can I test whether a string is 1 or 2 digits long?
Cast it to an int (or float if required) and strlen() it.
Cheers,
Rich
--
http://www.corephp.co.uk
Zend Certified Engineer
PHP Development Services
--
PHP General Mailing List (http://www.
William Stokes wrote:
Hello,
How can I test whether a string is 1 or 2 digits long?
Thanks
-Will
strlen() -_-
RTFM
www.php.net/strlen
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
Hello,
How can I test whether a string is 1 or 2 digits long?
Thanks
-Will
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Andrew Clarke wrote:
I'm having some problems using PHP5 on Windows 2000 Server, running IIS 5.
When trying to access a document from a "xmldoc()" function the system
responds with the following,
*Fatal error*: Call to undefined function xmldoc() in *"XML Document"* on
line *Number*
**
How do I
I'm having some problems using PHP5 on Windows 2000 Server, running IIS 5.
When trying to access a document from a "xmldoc()" function the system
responds with the following,
*Fatal error*: Call to undefined function xmldoc() in *"XML Document"* on
line *Number*
**
How do I fix this problem? Is t
1 - 100 of 108 matches
Mail list logo