Sorry for the late reply but maybe you should take a look at the function
range.
from the manual:
foreach(range('a', 'z') as $letter) {
echo $letter;
}
Jerry
-Original Message-
From: Daniel Harik [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 24, 2001 7:01 PM
To: [EMAIL PROTECTED
I would have done it a different way, but it would look something like that
this code has not been tested and is guaranteed to have bugs :) but it just
to get you started on a different approach.
$ultletra = '';
$row = '';
while($resultado =
mysql_query($query) or die(mysql_error($link_identifier));
die stops the script.
Or if you want a more subtile way you can try this
$result_identifier=@mysql_query($query);
if (!$result_identifier)
{
// Do some nice error handeling
}
Jerry Verhoef
-Original Message-
From: Dav
What is a code beautifier?
-Original Message-
From: George Nicolae [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 1:47 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php code beautifier
do you know if exist a php code beautifier for win32? pls tell me the
address.
--
Best re
No
Maybe you should consider database option or flat files to give info from
one user to the another?
Jerry Verhoef
-Original Message-
From: Alex Vargas [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 3:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Modify someone else's session
this is an option but it will surely break easily.
I am not completly sure, but i think that sessions variables are write to
the "session handler" at the end of the script. (maybe one of guru's can
clarify this?)
But if this is true consider this:
user 1: is running a script/requesting a page
Don't think that a option like this exists.
But maybe you should consider using
include_once or
require_once
Also before you define the function use the function_exist("") and if the
function already exists don't redecleare it.
Jerry Verhoef
-Original Message-
From: Henning Sprang [
Pseudo code:
check if pid file exists
yes -> DIE
no -> write pid file
At end of script
delete pid file
Jerry Verhoef
-Original Message-
From: Nicolas Guilhot [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 3:32 PM
To: Php General MailingList
Subject: [PHP] Only one instance
Did you forget the tags?
Jerry
-Original Message-
From: Martin Schichl [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 02, 2002 9:57 AM
To: Edwin Boersma; [EMAIL PROTECTED]
Subject: Re: [PHP] Select box won't display in Netscape 4.xx
Dear Edwin!
Yes, I have had this problem befo
Take a look at
exec()
passthru()
system()
Keep in mind that the webserver usally runs as User nobody or an equivilant
of that. So this user should have rights to run the program.
Kind Regards,
Jerry Verhoef
> -Original Message-
> From: Liam MacKenzie [mailto:[EMAIL PROTECTED]]
> Sent:
Not
MD5 is a hash code not an encryption!
Jerry Verhoef
> -Original Message-
> From: Jose [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 10:51 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How can I decrypt a password I previously coded with
> md5()?
>
>
>
> I'm mak
Take a look at the mcrypt libary http://www.php.net/manual/en/ref.mcrypt.php
Jerry Verhoef
> -Original Message-
> From: Jose [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 11:10 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] How can I decrypt a password I previously
>
I think I speak for everone:
HUH
Maybe some more info? A piece of code? Some clear infomation on what is
going wrong and when does this happen? And what action is happening two
times?
kind regards,
Jerry Verhoef
> -Original Message-
> From: M-H-d [mailto:[EMAIL PROTECTED]]
> Sent
t which makes the
request (the script with the form)
Jerry Verhoef
> -Original Message-
> From: Miftakhul Huda [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 12:45 PM
> To: Jerry Verhoef (UGBI)
> Subject: Re: [PHP] POST 2X
>
>
> I grab this from my Ap
Take a look at split, explode
> -Original Message-
> From: brendan conroy [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 1:10 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Novice question - Please Help
>
>
> Hi,
>thanks for reading this. Ive looked at every php site an
> -Original Message-
> From: Erik Price [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 3:30 PM
> To: PHP
> Subject: [PHP] session data vs cookie data
>
>
> I have read elsewhere that depending on Cookie data for site
> authentication is false economy, because Cookie da
When that happens a user has to relogin. No data will be lost.
Jerry
> -Original Message-
> From: Michael Kimsal [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 3:53 PM
> To: Jerry Verhoef
> Cc: PHP
> Subject: Re: [PHP] session data vs cookie data
>
>
> Jerry Verhoef wro
That is a feature of internet explorer. You can disable this in one of the
config screens. I believe it is the print dialog window.
Kind Regards,
Jerry
> -Original Message-
> From: Rambo Amadeus [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 11:31 PM
> To: [EMAIL PROTECTED
First structure only
second data only
Don't forget to check the check box for complete inserts and extended
inserts
reload in new db.
create the DB
upload the 1 file
and then the second file
Done
> -Original Message-
> From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]]
> Sent: Friday
Or even better put them outside your www root.
> -Original Message-
> From: Erik Price [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 01, 2002 4:19 PM
> To: qartis
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Making your include files invisible (header() in if
> loop)
>
>
>
> On T
http://www.php.net/manual/en/function.php-uname.php
Take a look at the example there
> -Original Message-
> From: Ivo Stoykov [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 04, 2002 2:45 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] whic OS is under?
>
>
> Hi group:
>
> Is there a
Your are on the right track.
Using the Header function is the way to do it.
But I guess you forget to take a look at the manual page. There are all
questions that you ask answered :)
So take a look http://www.php.net/manual/en/function.header.php .
in short:
RFC: http://www.w3.org/Protocol
http://www.php.net/manual/en/function.array-count-values.php
Jerry
I feel like a manual...
> -Original Message-
> From: Rainer [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 05, 2002 2:51 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How do I find double values in an associative a
RTFM
http://www.mysql.com/doc/D/a/Date_and_time_functions.html
select date_format(,"%r") from
or
select time_format(,"%r") from
Look in the manual for more options... MUCH MORE :)
Anyone know the difference between
%h: 01-12 hour notation
and
%I: 01-12 hour notation
?
Kind regards,
Heheh... Nice problem :)
But the approach I would take (ALERT PERSONAL OPINION)
step one:
Check in which row an item order by row desc (C first L last) is located
(ROW C,F,I,L in your Xcel sheet)
step two:
Loop in list of row. And let him always start at the first row!
step three:
Three options!
$glacer[0]="test";
$category[0]="glacer";
echo ${$category[0]}[0];
echo returns test. That is what you wanted to do??
> -Original Message-
> From: Aric Caley [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 07, 2002 4:46 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Seams not
http://php.resourceindex.com/detail/00896.html
GOOGLE is the ultimate programmers tool.
And i used this some time ago... :)
> -Original Message-
> From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 08, 2002 9:23 AM
> To: php-list
> Subject: [PHP] mime emails
>
unusual??
Don't know ... but i never ever saw a request like this on the list before,
if that is what you mean.
But the ppl on this list are mostly developers and most of them including
me. We don't buy we make :) (at least we try to :)
I understand your frustration.
But what you could do:
1 tr
This is what we call a BUG
Report it on http://bugs.php.net
thx
> -Original Message-
> From: * R&zE: [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 08, 2002 1:44 PM
> To: PHP General Mailinglist
> Subject: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!
>
>
> Hi folks,
>
>
Use
$aFile=file();
//$aFile[0] contains the unwanted line
echo $aFile[1]; // displays line 2
echo $aFile[n]; // displays line n where n is an positieve interger and not
greater then the number of lines in the file
http://www.php.net/manual/en/function.file.php
HTH
Jerry
> -Original Mes
Friday, February 08, 2002 4:22 PM
> To: Jerry Verhoef (UGBI)
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] Stripping the first line of a file
>
>
> Thank you! Works. I have a few more questions! I am working on
> converting a program from perl to PHP as it is the new
>
printf NEW ("%-193.193s");
printf ("%-193.193s",);
HTH
> -Original Message-
> From: Jerry Verhoef (UGBI) [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 08, 2002 4:35 PM
> To: 'Scott'; Jerry Verhoef (UGBI)
> Cc: [EMAIL PROTECTED]
LOL
And i just thought it looked like spam Sorry my mistake >:)
> -Original Message-
> From: JSheble [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 08, 2002 5:09 PM
> To: php list
> Subject: Re: [PHP] check this new site
>
>
>
> looks like every other SLashdot, PHP-Nuke o
this should work
$contents = str_replace("", "", $contents);
btw. a welformed xml documented uses a space between "1.0" and ?>
> -Original Message-
> From: Martin Towell [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 10, 2002 11:07 PM
> To: 'Steven Jarvis'; [EMAIL PROTECTED]
> Subj
You could also use the function getimagesize this will tell what kind of
image it is, and if it is not an image it will return false.
GD LIB is NOT needed for getimagesize.
Kind Regards,
Jerry Verhoef
-Original Message-
From: Daniel Grace [mailto:[EMAIL PROTECTED]]
Sent: Monday, Decembe
Maybe you should take a look at serialize and unserialize?
http://nl.php.net/manual/nl/function.serialize.php
http://nl.php.net/manual/nl/function.unserialize.php
With serialize you translate a variable to a string. With unserialize you
translate it back to the original variable
Jerry Verhoef
You forgot the printf method
printf("Some text %s\n",$myhash['mykey']);
Jerry
-Original Message-
From: jimtronic [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 5:59 PM
To: TD - Sales International Holland B.V.
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Arrays/Hashes
I've n
The maximum allowed of characters in a domain name is 3 (www) + 64
(domainname) + 3 (tld) = 70 chars. So if you try to limit it within the 70
chars you should be safe.
Jerry
-Original Message-
From: Chris Lee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 6:10 PM
To: [EMAIL
LAST_INSERT_ID() only works in a select.
This should be the correct syntax, but MySQL 3.xx.xx doesnot support
SubQueries. I believe that MySQL 4 does or will in the near future.
SELECT * FROM table WHERE aid=(SELECT LAST_INSERT_ID())
Jerry Verhoef
-Original Message-
From: Chris Lee [mai
work in emails?
Don't think thats necessarily true - what about news.bbc.co.uk or
games.yahoo.com.
Neither of them fits into the spec you described there...
Richy
-Original Message-
From: Jerry Verhoef (UGBI) [SMTP:[EMAIL PROTECTED]]
Sent: 19 December 2001 08:41
To: '
There is a setting in de php.ini called "memory_limit".
Remember it is in bytes!
Jerry
-Original Message-
From: Nicolas Guilhot [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 4:09 PM
To: Php General MailingList
Subject: [PHP] Limit script memory usage !!
Hi all,
I need to
Maybe you should take a look at XSL
http://www.w3schools.com/xsl/
http://www.w3.org/Style/XSL/
-Original Message-
From: php dood [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 2:04 AM
To: [EMAIL PROTECTED]
Subject: [PHP] arrays
I'm trying to figure out how to parse an xml d
I am sorry to say. But it is bullshit wot you are saying.
I am quite sure that a 256 bit encryption can cracked (brute force way) by
the big players (US, MS, etc) within a reasonable time say 2 or 3 months!
And yes you can buy computers or clusters for 100.000 $. And they are 100
more like
Line 10 is?
$sid (login($user, $pass)); <--- missing =
-Original Message-
From: Necro [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 1:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Login Script
Lo all,
I am trying to get the following script to work..
http://localhost/hq.php
Ermmm are we forgetting the sprintf function? That is doing exactly what you
are trying (and succedding) to accomplish
if ($delete && $id)
$sql=sprintf("delete from tbl where id = %d",$id);
Personally I also use a small extra security
if ($delete && $check==md5( . $delete))
$sql
45 matches
Mail list logo