try these: ImageCopy*()
-Original Message-
From: Eric Pierce [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 2:57 PM
To: [EMAIL PROTECTED]
Subject: [PHP] inserting preexisting image inside dynamic image
Hi there...
Just wondering... when creating a dynamic image, is
there a w
no, no way to disable and no variable to say a refresh happened
one way to get around it is to submit to the page that does the update, then
get that page to do a header("location...") to another page. When the user
refreshes, they'll only refresh the last page, and not the updating page.
HTH
Mar
can you post some more of your code? I think, if it's not too big, the
entire while loops
Martin
-Original Message-
From: Bruce Levick [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 9:45 AM
To: [EMAIL PROTECTED]
Subject: [PHP] select * From
Hi,
Am just a newbie at this
Looks good to me, but as Peter said, see if you really are getting something
in ['img']
try print_r($row) or var_dump($row) to make sure
-Original Message-
From: Bruce Levick [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 10:01 AM
To: Martin Towell
Subject: RE: [P
you didn't send the code snippet for "Undefined index"
however, I think the reason you're getting these errors at home is because
you have a different error_reporting level.
HTH a bit
Martin
[snip]
//filled out info and clicked send.
Notice: Undefined index: license in c:\inetpub\wwwroo
>From this error
Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on line 0
It looks like you'll have to change php.ini to have session.save_path point
to a valid path. Maybe \temp\ ?
HTH
Martin
-Origina
the only other way I know is to use: $output = `$cmd`; (ie, backticks)
-Original Message-
From: Greg [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 1:27 PM
To: [EMAIL PROTECTED]
Subject: [PHP] php / unix functions
Hi-
Is there a built in way, besides using exec and system
Greg
"Andy Turegano" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Well, what do you want them to do?
>
>
> On Wed, 18 Dec 2002, Martin Towell wrote:
>
> > the only other way I know is to use: $output = `$cmd`; (ie, bac
try doing a phpinfo() , somewhere in there it'll tell you
Martin
-Original Message-
From: Jeff [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 2:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Where am I?
I'm using PHP 4.0.6. I am developing on Win98SE, and deployed on an Apach
_TRANSLATED"]
HTH
Martin
-Original Message-
From: Jeff [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 3:00 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Where am I?
No, I've been looking all day. I can get the information is I run the script
from the root, but what
na! didn't work :)
-Original Message-
From: Roger Lewis [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 4:59 PM
To: Php-General
Subject: [PHP] test
This is a test.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
delivered to:
>
> php-list,emc (The name was not found at the remote site. Check that the
> name has been entered correctly.)
>
> -Original Message-
> From: Martin Towell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 17, 2002 10:02 PM
> To: Php-Ge
argh! eval()
try this instead: $temp = ${"php_q3_$i"};
to get it directly from $HTTP_POST_VARS: $temp =
$HTTP_POST_VARS["php_q3_$i"];
simple
HTH
Martin
-Original Message-
From: Alexey Lysenkov [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 6:08 AM
To: [EMAIL PROTECTED]
Subje
Hi Martin
Post some code snippets and the resultant output for us to look at
Martin (To confuse things )
> -Original Message-
> From: martin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 1:43 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] getting green screen
>
>
> Hi,
> I'
if it's just the string after the ? then use $QUERY_STRING
can't remember which $_* variable it's under...
HTH
> -Original Message-
> From: Simon Angell [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 24, 2003 4:50 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] ? in URLS.
>
>
> Ok, i
check for leading/trailing spaces
if (trim($view) == "vendor")
HTH
Martin
-Original Message-
From: Peter Gumbrell [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 3:07 PM
To: Php-General
Subject: [PHP] problems with ==?
In the following code
$view = $HTTP_GET_VARS[view];
pri
I've been using this:
if (in_array($value, array("foo", "bar", "blah")))
{
// do something
}
but if you want to use a switch/case, I don't know any easier way.
HTH
Martin
> -Original Message-
> From: CF High [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 03, 2003 1:41 PM
> To: [EMAIL
when I copy/pasted directly from your email and tried to execute it, I can
an error on line 5 too
I noticed that there's a space at the end of line 5, I deleted it and it
worked fine.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 03, 2003 9
you'll have to exec() the code
$filename = "test.php";
$handle = fopen ($filename, "r");
$contents = fread ($handle, filesize ($filename));
fclose ($handle);
exec($contents);
see if that works
Martin
> -Original Message-
> From: Paul Cohen [mailto:[EMAIL PROTECTE
code snippets would be helpful
-Original Message-
From: Liam Gibbs [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 5:07 PM
To: php list
Subject: Re: [PHP] Dollar signs in values
> Escape them with a backslash:
>
> $text = "The amount is \$400.-";
All that does is print \$ in
($spacer % $number == 0)
Martin
-Original Message-
From: jwulff [mailto:[EMAIL PROTECTED]
Sent: Thursday, 3 July 2003 11:04 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Calculating if number is multiple of another number
How would I calculate if a $number is a multiple of $spacer?
--
PHP G
I've just been playing around with PHP5 beta for windows to get used to the
new way it does classes and constuctors, etc, and have found the
following...
I have a base class which has both a constructor and a destructor. I have a
second class that extends the first. I then instantiate the second c
Since I can't see the source for append_child(), I'll assume you're using
the $key as the index??
If so, try changing it to just a numeric index, ie, 0, 1, 2, etc.
HTH
Martin
-Original Message-
From: Matt Grimm [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 9 July 2003 10:38 AM
To: [EMAIL PR
change your error reporting level to E_ALL
You'll then get a warning|notice (can't remember which)
-Original Message-
From: mack paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 9 July 2003 11:10 AM
To: [EMAIL PROTECTED]
Subject: [PHP] how to force variables declaration??
hi to all.
i wo
If I remember correctly, it'd be
header("Content-Type: text/css");
HTH
Martin
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]
Sent: Thursday, 24 July 2003 12:42 PM
To: php
Subject: [PHP] do i need to output headers on parsed CSS files?
Hi all,
I'm forcing my style she
You could use two substr()s or an ereg_replace()
$result = substr($str, 0, 2) . substr($str, 5);
or
$result = ereg_replace("([0-9][0-9])990([0-9][0-9])", "\\1\\2",
$str);
Both are not tested, but should work
Martin
-Original Message-
From: Joe Harman [mailto:[EMAIL PROT
thnx - I'll see if this help..
-Original Message-
From: Joe Harman [mailto:[EMAIL PROTECTED]
Sent: Thursday, 7 August 2003 4:38 PM
To: 'Martin Towell'; [EMAIL PROTECTED]
Subject: RE: [PHP] error: cannot redeclare ()
Hi Martin... I am guessing you have a nested functio
August 2003 4:55 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Still can't pass variable through url
http://www.thingamajigger.com/index.php?year=$year&month=$month\";
>yeah this is the link";
?>
> -Original Message-
> From: John Manko [mailto:[EMAIL PROTE
Yep - I did with me previous email
And I guess I'll get one with this email too :/
-Original Message-
From: Joe Harman [mailto:[EMAIL PROTECTED]
Sent: Thursday, 7 August 2003 4:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] [EMAIL PROTECTED]
Hey is every one getting a returned message from
[
See if changing it to
page.php?year=$year&month=$month
works
The separator between the page and the query string is "?"
The separator between each key/value pair is just "&"
-Original Message-
From: Jack [mailto:[EMAIL PROTECTED]
Sent: Friday, 8 August 2003 4:30 PM
To: [EMAIL PRO
You could use a "hidden" image
Or use an external javascript file that's really the php file
HTH
Martin
-Original Message-
From: Creative Solutions New Media [mailto:[EMAIL PROTECTED]
Sent: Friday, 8 August 2003 1:51 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Calling to a page without having
I'm getting the following error:
PHP Fatal error: Cannot redeclare () (previously declared in
/path/to/file/functions.inc:19) in /path/to/file/functions.inc on line 0
Anyone have any ideas how a no-name function could be generated?
Line 19 contains:
function idb_exec_deadlock($sql,$count
What about (just a slight change...)?
$found = 0;
while ($mydata = mysql_fetch_object($news))
{
if ($mydata->StudentId == $StudentId)
{$found = 1; break;}
}
if ($found==1){do this}else{do that}
at least this way you
> [snip]
> $found = 0;
> while ($mydata = mysql_fetch_object($news))
> {
> if ($mydata->StudentId == $StudentId)
> {$found = 1; break;}
> }
>
> if ($found==1){do this}else{do that}
> [/snip]
>
> Why two if's? Isn't if the student
Hiya,
1. Turn off the address bar
or
2. Create a form with hidden elements, with method=post
open a window to a blank page, and name the window
submit the form to the newly, named, window
HTH
Martin
-Original Message-
From: murugesan [mailto:[EMAIL PROTECTED]
Sent: Tues
MAIL PROTECTED]
Sent: Tuesday, 19 August 2003 4:14 PM
To: Martin Towell; [EMAIL PROTECTED]
Subject: Re: [PHP] window.open("hai.php?id="one");
I have made the value hidden. How can I retrieve it in the next page in
php.
-murugesan
- Original Message -
From: "Martin Tow
The reason for the difference is due to the timezone bit (or whatever it's
called..)
Note the +1000 in this line
time = Thu, 21 Aug 2003 15:28:36 +1000
and the + in this line
time = Thu, 21 Aug 2003 05:28:42 +
so both are actually the same times (bar a few seconds..)
But
27;', '', $body,
$headers))
This is the contents of $headers
- START -
X-Mailer: SEE-IT's PHP email_class (c)2001
Mime-Version: 1.0
Subject: Saturday Lotto - 2003-08-02 - $19m
Sensitivity: normal
Importance: normal
X-Message-Flag:
Reply-By:
Expiry-Date:
To: Martin Towell <
I've been looking for an answer to this question for ages, but have failed.
Hopefully one of you guys can help.
I'm looking for a way of finding out what the linux server's country is set
to.
I notice there's setlocale(), but I want something more like getlocale(),
which there doesn't seen to be
So noone has any ideas at all ? Surely not ?
If my question's too vague, please let me know and I'll try to expand on
it...
-Original Message-----
From: Martin Towell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 4:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Getting linu
sprintf/printf("%7d", $num)
-Original Message-
From: Harry.de [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 10:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Zero Fill -> Number Format
How can I put out a Zero Fill for numbers
The result should be
$something=26;
echo $something;
try this
$address2 = str_replace("'", "''", $address)
-Original Message-
From: Daniel McCullough [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 1:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] strip single quotes
I'm trying to query the database using a string pulled out of the dat
oops, sorry - try this instead
sprintf/printf("%07d", $num)
-Original Message-
From: Boaz Yahav [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 8:23 AM
To: Martin Towell; Harry.de; [EMAIL PROTECTED]
Subject: RE: [PHP] Zero Fill -> Number Format
wouldn't thi
try this...
for ($i = 0; $i < count($charge); $i++)
{
$c = $charge[$i];
$s = $size[$i];
$sql = "UPDATE products_to_sizes SET surcharge = '$c'
WHERE product_id = '$products_id' AND size_id = '$s'";
mysql_query($sql) or die ("Couldn't update rows".MYSQL_ERROR());
print $sql.'';
}
-Origi
is this what you're after ?
flush();
wait(5); // I think wait() is in seconds
echo "blah";
-Original Message-
From: Sebastian [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:54 PM
To: php list
Subject: [PHP] echo
hello all,
is it possible to delay an echo say by 5 seconds
sorry - sleep(5);
-Original Message-
From: Sebastian [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 3:58 PM
To: Martin Towell; php list
Subject: Re: [PHP] echo
php has a wait function? I didn't know that... But i get:
Fatal error: Call to undefined function: wait()
I
have you got register_globals turn on or off ?
-Original Message-
From: J. P. [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 5:26 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Why this script doesn't work?
I'm using Apache 2.0.44 with Win XP and PHP version 4.3.1!
--
PHP General M
same question as before:
have you got register_globals turn on or off ?
-Original Message-
From: J. P. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 10:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP] sript doesn't work
Hello!
I am using Apache 2.0.44 and WinXP. I have PHP 4.3.1.
Whe
I think there's problems doing that when daylight savings starts/ends
Just something to keep in mind...
-Original Message-
From: Leo Spalteholz [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 4:32 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] date math question
On March 27, 2003 09:
I think you'll have to read the file manually (file() would prob be the best
bet) and manually find/delete the line and then rewrite the file.
Martin
-Original Message-
From: Matt Palermo [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 1:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] de
try changing
$numbers = array($numbers);
to
$numbers = explode(",", $numbers);
HTH
Martin
-Original Message-
From: Richard Kurth [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 2:42 PM
To: [EMAIL PROTECTED]
Subject: [PHP] using a for loop but it is not working how com
you can use exec() but be sure that the code you're executing is not
malicious first
-Original Message-
From: Suhas Pharkute [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 17 June 2003 9:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP] String containing PHP Code
Hello,
I have a php script w
oops - yeah, not exec() as in my previous email - sorry about that :/
-Original Message-
From: Steve Keller [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 17 June 2003 10:06 AM
To: Suhas Pharkute; [EMAIL PROTECTED]
Subject: Re: [PHP] String containing PHP Code
At 6/16/2003 05:45 PM, Suhas Phar
check your php.ini file to see if you have register_globals set to "on" or
"off" (probably "off")
You can either turn it "on" or use $_GET["name"]
-Original Message-
From: Robby Ku [mailto:[EMAIL PROTECTED]
Sent: Friday, 20 June 2003 4:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Can't pass
date("F", mktime(0, 0, 0, $mm, $dd, $));
http://au2.php.net/manual/en/function.date.php
http://au2.php.net/manual/en/function.mktime.php
-Original Message-
From: cavagnaro [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 25 June 2003 4:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Month name
Is the pdf module being loaded on the linux machine ?
What is the error message (if any) that's displayed at the "create handle"
bit ?
Martin
-Original Message-
From: Floyd Baker [mailto:[EMAIL PROTECTED]
Sent: Thursday, 26 June 2003 10:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP] pdf rout
what about (untested)?
$example_data = array();
foreach ($blah_array as $key=>$value)
{
$example_data[] = array($key, $value);
}
-Original Message-
From: John Wulff [mailto:[EMAIL PROTECTED]
Sent: Thursday, 26 June 2003 11:37 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Converting Array
I'
As Demitrious said, use mysql to do it.
But if you want to use php, just use substr(), since all the numbers are
there, there's no point converting to unix time, just to convert it back
again... unless you're going to do some maths of it
-Original Message-
From: Demitrious S. Kelly [mail
what about
if (strlen($result["FLRPLAN_3"]) > 0)
-Original Message-
From: markbm [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 2:02 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Problem with Not displaying HTML if data not found
I am trying to develop a page that, in certain pla
using header() should work if you don't output anything before it. If you
can restructure your code so that you can remove any output until after the
header(), then that'd be the way to go.
You said the meta refresh didn't work - did you get the syntax right? Since
I don't use it much, it's one o
cally, the
first time, without data in the field...it works fine and the is not
displayed, but when I add data back into the field, nothing changes...its
like it does not recognize that something is back in the field. I did a
commit on the db each time, and cleared the browser cache, etc.
Mark
I think the proper way of sending an ampersand is to use &
-Original Message-
From: Ricky [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 2:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Passing Special Characters In url
Hi,
I am having problems passing variables in a url specifica
I'm thinking that you need to remove the:
$contents = fread($filename, 100);
line. This is probably making the file pointer point to the end of the file.
-Original Message-
From: Jason Soza [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 4:17 PM
To: David Robley; [EMAIL PRO
Try this:
function do_mod_10($num)
{
// The Luhn formula works right to left, so reverse the number.
$num = strrev($num);
$total = 0;
for ($i = 0, $j = 1; $i < strlen($num); $i++, $j=3-$j)
{
$digit = $num[$i] * $j;
if ($digit > 9) $digit -= 9;
$total +=
use the auto_append or auto_prepend directives in the php.ini file
-Original Message-
From: Dave at Sinewaves.net [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 1:48 PM
To: PHPlist
Subject: [PHP] Banner Ad Serving...
Is there any way of automatically adding a certain bit of c
This should work
$object = new $classname;
Martin
-Original Message-
From: Michiel ten Hagen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 11:17 PM
To: 'Mathieu Dumoulin'
Cc: [EMAIL PROTECTED]
Subject: [PHP] RE: create object from variable class.
Thx for quick reply
you could use: printf("%02d", ++$Num);
or if you want to put it back into $Num, use the sprintf() version
-Original Message-
From: vins [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 10:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Numbers with leading zero...
Hi.
I've got this
You'll prob. need to use the (+) to join
like this
SELECT grp.grpdescrip, grp.grp, grp.createcust, grp.auth1, grp.auth2,
usergrp.userid, users.userdescrip
FROM grp, usergrp, users
WHERE grp.grp = usergrp.grp (+)
AND usergrp.userid=users.userid (+)
ORDER BY grp.grp
-Original Message-
From
try changing these two lines
$num_rows = mysql_num_rows($result);
$num_cols = 2;
to this
$num_cols = 2;
$num_rows = mysql_num_rows($result) / $num_cols;
this isn't the full solution, but will help you on your way...
HTH
Martin
-Original Message-
From: César Aracena [mailto:[EMAIL PRO
1. Take out the @ before fopen(), this may shed some light on your problem
2. What does "/home/blurredv/data/".$username."Contact.txt" expand out to
actually be?
3. Does the script have write access to the directory/file?
-Original Message-
From: Chris Carlson [mailto:[EMAIL PROTECTED]]
S
REGEX is short for "Regular Expressions"
It gives you a "smarter" way to manupulate strings.
The PHP manual has some good docs on reg.ex. - see section LXXXIV and LXXXVI
HTH
Martin
-Original Message-
From: Lord Loh. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 5:07 PM
To: [EM
You'll have to check that the results you get back from the database
actually contains something before you echo anything out.
Another way would be something like this
$numcols = 2;
$counter = 0;
while (($results = mysql_results(...)) !== false) // haven't used mysql,
so you'll have to fix t
I don't think you'll be able to o this directly with PHP, unless you know
the file format of an .xls file...
You might be able to use COM somehow (??)
Might be easier for the user to save the spreadsheet out as a CSV first
Martin
-Original Message-
From: Jason Caldwell [mailto:[EMAIL
Is this a direct copy from your code?
> echo $_GET['modo']." echo $_GET['color']." echo $_GET['size']." tags
see if that helps
Martin
-Original Message-
From: Saci [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 6:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP] passing variable via
The best way to become proficient in programming (or anything, come to that)
is with _lots_ of practice.
In the case of programming, looking at other ppl's code might help you find
new ways of thinking that you'll be able to use at a later stage.
Personally, I don't bog myself down in code from
Can you post/send the results of doing a print_r() on the first page (the
one that's serialising) and the results of the serialize()?
-Original Message-
From: DoL [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 2:21 PM
To: [EMAIL PROTECTED]
Subject: [PHP] passing arrays between
You'll need to find out how to convert from RGB to HSV
Then all you need to do is look at the hue and fiddle with that.
Sorry I can't be any more help than that, because I don't know what the
maths is to convert from one colour space to the other :( But this should
be a start
HTH
Martin
Split() chops up the string (param #2) according to param #1 (in this case,
space is the delimiter). Param #3 says, don't chop more than two bits. It
then returns an array
list() assigns $arr[0] to the first variable, $arr[1] to the second, etc.
HTH
Martin
-Original Message-
From: Manta
To add to this - you should place critical information (like passwords, etc)
outside the document root. That way, even if the server is mis-configured,
others wont be able to easily gain access to those files
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, A
One option is the Zend Encoder
Martin
-Original Message-
From: YC Nyon [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 2:59 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Protect PHP coding
Is there any method to encrypt PHP files.
Nyon
--
PHP General Mailing List (http://www.php
use C and fork()
php (AFAIK) can't do parallel programming
-Original Message-
From: NoWhErEMan [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 12:58 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Open 10 http connections in parallel
Hello,
I had to write a script to open 10 http co
you've got a ";" after the if
IF (!$accion); {
should be
IF (!$accion) {
-Original Message-
From: ::: Flavio Bastos Amiel::> [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 4:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP] anyone can help?
this is not functional and i dont k
set_time_limit()
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 12:05 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Resetting the timeout
On Monday 19 August 2002 10:06, Mike Mannakee wrote:
> Is there any way to set the timeout (max length of
You've got too many closing braces...
if ($temp == $temp2) {
$ierror = "Loginnamnet är redan upptaget!" . $ierror; } <--- Here's
one
} <--- Here's
the other
} else { print "error"; } <--- And a
third
oh, just realised, one of them needs to go below the "else" line, to end the
"while" loop
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 3:37 PM
To: 'Pafo'; [EMAIL PROTECTED]
Subject: RE: [PHP] php string
oops again, please ignore my last two posts :(
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 3:38 PM
To: 'Pafo'; [EMAIL PROTECTED]
Subject: RE: [PHP] php string match problem
oh, just realised, one of them needs to go below
try this:
-> $sqlcom="select count(codigo) as cnt from comments where codigo=$id";
$resultadocom = mysql_db_query ("database",$sqlcom);
$registocom = mysql_fetch_array($resultadocom);
-> $contador = $registocom["cnt"];
print("comentarios= $contador");
the lines marked with -> are t
str_repeat()
-Original Message-
From: Saci [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 1:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Replicate string or something similar
In ASP I use the expression myvar = string(254,"A")
to have a var filled with 254 characters 'A'
http://www.php.net/manual/en/function.usort.php
-Original Message-
From: Ben [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 11:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Sorting a multi-dimensional array
I have looked at array_multisort, asort, etc. NONE of them do what I n
replace "xxx" with the row number for your id field
when it gets to php, the index of $cbox will be the id from the database,
just use:
foreach ($cbox as $id=>$dummy)
to loop through the array
HTH
Martin
-Original Message-
From: Brian & Shannon Windsor [mailto:[EMAIL PROTECTED]]
Sen
just sum them up and divide by the count - making sure to deal with a count
of zero
-Original Message-
From: JohnP [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 10:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Average Number For Math Functions
Ok I looked at all the math functio
if you have each filename on a new line, then use file() to grab the
contents. It returns an array, each line is an element in the array. You can
then do what you want with the array
HTH
Martin
-Original Message-
From: stu9820 [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 1:0
t; > Ok so how do I sum up an entire column in my db?
> > For example if one row is : 1 , the next is 2, and the next is 1 - I
need
> to
> > have a total of 4 and the be able to divide by the num_rows
> >
> > The problem I ma having is the "inside" row addit
try this
ereg("^[a-zA-Z0-9:]*$",$string)
all your's is doing is looking for any char in $string that's a-z or A-Z or
0-9 or :
instead of all chars, from start to end, being them
-Original Message-
From: Adam Alkins [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 3:20 PM
To: PHP
Hi Martin
You can also do this
HTH
Martin :)
-Original Message-
From: Tom Rogers [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 11:24 AM
To: Martin Thoma
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] How to escape " in hidden field?
Hi,
Monday, September 2, 2002, 7:59:
Have you checked the $_POST (or $HTTP_POST_VAR) variable to make sure it IS
using GET?
Martin
-Original Message-
From: Jed Verity [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 3:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] IE won't post on Windows, but will on Mac
Hello,
it's best done in sql using "select count(*)"
but can be done in php by looping through the result set
-Original Message-
From: Chuck "PUP" Payne [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 10, 2002 2:58 PM
To: PHP General
Subject: [PHP] Count in PHP
I am wanting to do a count i
Try adding curly braces around the var name, like this:
for($i=0; $imailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 9:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Confusing array question ...
Hi, I have 1 primary array called $item containing 20 values each of whose
value is part of
If I remember correctly
__FILE__ contains the current file name of the script
__LINE__ contails the current line number in the script
__PATH__ contains the path to the current script
HTH
Martin
-Original Message-
From: Alex Shi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 20
function myFunction($name, $phone, $zip=""){
echo $name.$phone.$zip
}
is the corrent format, but if you call it like this:
myFunction("name", "phone", null);
then $zip will equal null, not ""
something like this might help
function myFunction($name, $phone, $zip=""){
if (!$zip)
1 - 100 of 701 matches
Mail list logo