Or you could do this to make the page only
accessable to you.
http://www.mysite.com/cronpage.php?secretpassword=
iud88383
-Original Message-
From: John Holmes
[mailto:[EMAIL PROTECTED]]
Sent: June 4, 2002 4:45 AM
To: 'Edgard Berendsen'; [EMAIL PROTECTED]
Subject: RE: [PHP] Cronjob secu
I'm guessing you could just add as many variables
you want to collect at the end of the counter.php
script. Does that help?
http://www.my.com/counter.php?site=0011&PHPSE
SSID=lkjasfoia99sd9asfdsaf9">
-Original Message-
From: Martin Smetak
[mailto:[EMAIL PROTECTED]]
Sent: June 5, 2002
try this link
http://www.devshed.com/Server_Side/PHP/Commerce
-Original Message-
From: savaidis [mailto:[EMAIL PROTECTED]]
Sent: June 7, 2002 11:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] e-commerce example
I'm looking for e-commerce example (PHP+MySQL) so
I don't start from zero
and
Here are some tutorials:
http://www.devshed.com/Server_Side/PHP/
http://www.phpbuilder.com/
http://www.phpdeveloper.org/tutorial.php
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: June 12, 2002 4:06 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] tutorials
im no
Hi David
I am using adodb for my database abstraction http://php.weblogs.com/adodb
I got it up and running in no time. Just go through this manual
http://php.weblogs.com/ADOdb_manual or this tutorial
http://php.weblogs.com/adodb_tutorial.
It has a RecordCount since some database don't return t
Here's a bunch of slide shows
http://conf.php.net/
-Original Message-
From: John Holmes [mailto:[EMAIL PROTECTED]]
Sent: June 22, 2002 2:36 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Anyone have slides for an Intro to PHP Class?
Does anyone have a presentation that I could use for an in
Take a look at this page, it uses flush to stagger the results as php
processes it. pretty cool
http://www.massassi.com/bTemplate/benchmarks/benchmark_var_assign.php?i=50
-Original Message-
From: Uma Shankari T. [mailto:[EMAIL PROTECTED]]
Sent: June 23, 2002 11:14 PM
To: PHP
Subject:
The guy behind the popular free php accelerator
(http://www.php-accelerator.co.uk) is doing an encoder
(http://www.php-encoder.com). It's not launched yet so you'll have to wait
a bit.
-Original Message-
From: Craig Williams [mailto:[EMAIL PROTECTED]]
Sent: June 24, 2002 7:39 PM
To: [
I recommend http://smarty.php.net for seperating presentation from logic.
It's one of the best template systems currently. It worked out of the box
for me but it took me like the long weekend to figure out some of the config
folders. It does your standard variable substitution {$bgcolor} but wha
There are a ton of template systems. Look here for performance benchmarks:
http://www.phpinsider.com/benchmarks_phemplate
Unfortunately pattemplate isn't tested so I don't know how it rates.
-Original Message-
From: John Holmes [mailto:[EMAIL PROTECTED]]
Sent: June 25, 2002 12:02 PM
T
Sent: June 27, 2002 12:39 AM
To: 'SP'; 'Jean-Christian Imbeault'; [EMAIL PROTECTED]
Subject: RE: [PHP] Seperating presentation from logic
> There are a ton of template systems. Look here for performance
> benchmarks:
> http://www.phpinsider.com/benchmarks_phemplate
&
Anytime I use arrays I use what John suggested but add around
it. If you do that then the array becomes very clear.
echo "", print_r($_SESSION), "";
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: June 27, 2002 12:44 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Mo
I can only talk about smarty but the designers can use as little or as much
of the features in the template. For example:
Typing {$app_version} in an ordinary html file could display "Greatest
Application version 3.3". If your programmer changes the value to "Greatest
Application version 4.0",
OO is slower then procedural. You can test that out yourself or look at
this article where the guy did a very basic test. Maybe they will fix the
speed problem by the time php5 comes around.
http://www.phpbeginner.com/columns/demitrious/objects/8
-Original Message-
From: Kondwani Spik
PROTECTED]]
Sent: June 27, 2002 1:34 PM
To: SP; Kondwani Spike Mkandawire; [EMAIL PROTECTED]
Subject: Re: [PHP] Re: PHP and OOP
I've tested thecode and there is what i've got
Proceduraltook 1.24408602715 seconds
OOtook 1.24240803719 seconds
Here is the code. Test it by yourself
t
Perhaps we could agree on a standard response when someone asks about doing
javascript in php. Then when someone asks that question, the first one to
send out that canned response wins 1 php credit. John and Jason would be
php millionaires by the year out I think.
-Original Message-
F
Hi I am trying to check if a word contains only capital letters. For some
reason it's not working. The below example is checking the word "weird" to
see if it's all capital letters but it's saying it's matches. I've tried
checking for only lower case letters with "WEIRD" and it's not working th
Thanks Miguel it works now!
$str = "abcA";
if (preg_match('/^[a-z]*$/', $str))
echo "The string '$str' contains only lower-case letters.";
-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: July 4, 2002 2:29 AM
To: SP
I thought it was a good site. I was reading up on the security bugs found
and now I know what not to do.
-Original Message-
From: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]]
Sent: July 4, 2002 2:41 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: PHP: Script Security: Best coding pra
- icq: 4935386 - msn: see email
One program for aim/icq/yahoo/msn/irc - http://www.trillian.cc/
"Sp" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi I am trying to check if a word contains only capital letters. For some
> reason i
eep track of it outside of the function in a global variable.
> -Original Message-
> From: SP [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, April 14, 2002 8:28 PM
> To: David Robley; [EMAIL PROTECTED]
> Subject: RE: [PHP] Re: Need row number from database select
>
>
> I see w
er of
digits you assign per level. Also why are you using a hex?
-Original Message-
From: Aj Lavin [mailto:[EMAIL PROTECTED]]
Sent: April 15, 2002 3:24 PM
To: SP
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Need row number from database select
On Sun, Apr 14, 2002 at 09:27:50PM -040
Bucknum [mailto:[EMAIL PROTECTED]]
Sent: April 15, 2002 10:29 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [PHP] Re: Need row number from database select
Keep track of it outside of the function in a global variable.
> -Original Message-----
> From: SP [mailto:[EMAIL PROTECTED]
There must be people on this list that have ported their web apps from
different databases and could share their experiences.
mysql <-> postesql
mysql <-> ms sql server
ms sql server <-> oracle
-Original Message-
From: John Lim [mailto:[EMAIL PROTECTED]]
Sent: April 17,
EMAIL PROTECTED]]
Sent: April 18, 2002 9:37 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Sp
Subject: Re: [PHP-DB] Re: [PHP] Re: Cross DB application
Hello,
Sp wrote:
>
> Can someone with database expertise who has used metabase and adodb cut
> through this rhetoric and give an objective
I am trying to validate an user's input. I can get the ereg function to
work if I just type in the pattern I'm searching for but my problem is I
want to build the pattern through a variable first and then use that
variable in the ereg function.
For example, I want to check an input that's only t
reg($regexp,$user_input))
return $user_input;
else
return $default;
}
?>
That should take care of everything except the square brackets - not sure
how to go about getting them (escaping them didn't seem to work).
HTH
Danny.
- Original Message -
From:
PROTECTED]]
Sent: April 20, 2002 8:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: [PHP-DB] Re: [PHP] Re: Cross DB application
On Thu, 18 Apr 2002 16:05:13 +0200, Manuel Lemos wrote:
> Hello,
>
> Sp wrote:
>>
>> Hi Manuel, I still don't see a problem in others telli
I am trying to validate my input with ereg but I get the error "Warning:
REG_BADBR" when I try over 255 characters. Is there anyway around this?
Works
=
if(eregi('^[A-Za-z]{1,255}$', "test sentence"))
echo "valid input";
Doesn't Work
if(eregi('^[A-Za-z]{1,256}$', "test senten
ject: [PHP] Re: ereg size limit???
Hi,
"Sp" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am trying to validate my input with ereg but I get the error "Warning:
> REG_BADBR" when I try over 255 characters. Is ther
Hi Drouet, I've been asking about this too and here's what I've been working
on. It checks for letters, numbers, puncuation, and max and min length. I
was told any of the puncation was safe as long as you addslashes before you
put it into the database.
function check_input($user_input, $min=0,
Have you tried doing phpinfo() and seeing what values are coming up?
-Original Message-
From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
Sent: April 22, 2002 5:59 PM
To: Erik Price
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Empty $_SESSION and $_POST ??
On Monday 22 April 2002 05:34 pm, you
How about storing it in a database like you said with variable and value but
when you change a value then you write over your config.inc.php file with a
new one. So you get to change the value easily in a database and by using a
file you make your app faster without any database access everytime.
easier to just do a select on the database to
display the values and then if you make a change then just make a change in
the database and overwrite the old file.
-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: April 26, 2002 4:24 PM
To: SP
Cc: [EMAIL PROTECTED]
Subject
Whatever it says the guy took a lot of time to write it out lol
-Original Message-
From: John Holmes [mailto:[EMAIL PROTECTED]]
Sent: April 28, 2002 3:46 AM
To: 'Peter'; [EMAIL PROTECTED]
Subject: RE: [PHP] class PHP
Can someone translate this to English?
> -Original Message-
>
Indexes are good but the only thing you have to look out for is not over using it. So
don't index all your fields because it will make your database a lot bigger and add
more
time when inserting and updating.
-Original Message-
From: Dan Hardiker [mailto:[EMAIL PROTECTED]]
Sent: May 2,
Yeah this isn't specifically about php but most people use databases so I think this is
relevant. I like it when we have discussions like these instead of someone posting up
a
bunch of code and asking to find a missing ' or }.
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTE
True.
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: May 2, 2002 3:26 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PRIMARY KEY vs. INDEX
On Friday 03 May 2002 03:17, SP wrote:
> Yeah this isn't specifically about php but most people use databases so I
Does anyone think caching should be built into php for it to edge out the competition?
(like what smarty is doing)
I mean a static page will always serve up faster then a dynamic one. Also even if you
are
getting 100 pages/sec on your database, you could cache it for 5 seconds and you save
500
Obviously most coders are in the middle ground.
They are not writing "the killer app of all time"
but is of significant value. I don't know what
people on here are charging but I can't add $2880
a year to my overhead for the zend encoder. Plus
add $1875 per cpu for the zend accelerator for
each
So I should buy a commerical product from zend to
protect my code but since my code will be reversed
engineered anyways then what's the point of buying
from zend?
-Original Message-
From: David Freeman
[mailto:[EMAIL PROTECTED]]
Sent: May 9, 2002 10:16 PM
To: [EMAIL PROTECTED]
Subject:
I would suggest just sending them an email with a
link like this and telling them to click on it to
confirm their membership.
http://www.mysite.com/confirm.php?uniqueid=2i3k238
s9sd0s99d
The confirm.php page would look up the uniqueid
and try to find it in your database. If it's
there then that
Just make sure the url fits on one line in the
email which mine doesn't.
-Original Message-
From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
Sent: May 12, 2002 5:06 PM
To: SP
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] E-mail Confirmation script?
Thanks,
Now why didn't that ever o
I haven't looked so don't know how they did it but
you can look at the source for www.oscommerce.com
to see how it was done or someone more familar
with the project could enlighten us.
Here's their demo site, you can see the "Customers
who bought ..." at the bottom
http://www.oscommerce.com/catal
Everyone is arguing that these encoders can be
cracked. Does anyone know of one, have you done
it yourself? How long did it take? I mean I'm
not going to leave my door unlocked cuz someone
can pick it open.
-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: May 13, 2
able to police the use of your
code, to a degree that
piracy is going to cost you more than your time is
worth, you should be
looking for a new set of clients.
miguel
On Mon, 13 May 2002, SP wrote:
> Everyone is arguing that these encoders can be
> cracked. Does anyone know of one, hav
from the functions
with the greatest number of calls to PHP built-in
functions and work
outward from there. 1 minute or so per 25 lines of
working code.
Honestly, it's not a big deal.
miguel
On Mon, 13 May 2002, SP wrote:
> As an example, someone provided this link on the
> PHP Obfus
Well if his normal page is 100k and he can cut the
size down to 50k with gzip then instead of having
a monthly transfer of 100 GB for example, he would
only be paying for 50 GB. Seems like it's useful
for extremely large sites.
-Original Message-
From: John Holmes
[mailto:[EMAIL PROTEC
Hi Navid
Don't you have to serialize it to put it in
sessions?
-Original Message-
From: Navid Y. [mailto:[EMAIL PROTECTED]]
Sent: May 18, 2002 2:26 PM
To: [EMAIL PROTECTED]
Subject: [PHP] passing ARRAYs through GET strings
Hello :)
Can anyone suggest of another way, an easier way,
t
ser
goes to by doing this:
$myarray = unserialize($_SESSION['myarray']);
-Original Message-
From: Navid Y. [mailto:[EMAIL PROTECTED]]
Sent: May 18, 2002 2:52 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] passing ARRAYs through GET
strings
Thanks SP and Richard,
Well, I teste
a regular variable through. Thanks
for your help and
patience :)
-Original Message-----
From: SP [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 18, 2002 2:27 PM
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: [PHP] passing ARRAYs through GET
strings
Okay let me clarify, if I had an array
sessions.
> Sessions themselves are serialized
automatically, you don¹t need to
> worry about that.
>
> Rick
>
> "We do not have to visit a mad house to find
disordered minds; our
> planet is the mental institution of the
universe." - Unknown
>
>> From: "
Thanks Rick, that's what I thinking. Thought I
was missing something.
-Original Message-
From: Richard Baskett [mailto:[EMAIL PROTECTED]]
Sent: May 18, 2002 4:49 PM
To: SP; PHP General
Subject: Re: [PHP] passing ARRAYs through GET
strings
Well you can serialize an array usin
Here's a nice article all about dates
http://www.phpbuilder.com/columns/akent2610.ph
p3
On page 6 of that article it shows a function for
adding years, months, days ... to a date.
function DateAdd ($interval, $number, $date)
{
$date_time_array = getdate($date);
$hours = $date_time_array[
Wow this is a pretty cool function. I was playing
with it and you can add like +30 days + 99 seconds
together and it works.
-Original Message-
From: Tom Rogers [mailto:[EMAIL PROTECTED]]
Sent: May 19, 2002 1:07 AM
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: [PHP] Augmenting an
I am using gmdate to get the GMT timezone and it's
working but how does it know what timezone my
server is to make the time adjustment?
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date:
I am using gmdate to get the GMT timezone and it's
working but how does it know what timezone my
server is to make the time adjustment? Where's
the setting for this?
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Dat
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am trying to convert date/times to different
timezones using putenv but I am having problems
using the right TZ names. I am trying the zones I
found here
http://fuck.org/~ryan/squirrel/timezone/timezones.
php but it seems the only ones that work are
EST5EDT, CST6CDT, MST7MDT, PST8PDT and GMT.
astern and
mountain time for now.
also, do you know if i store all my dates as GMT
then when i convert to different timezones using
putenv, will this take into account the daylight
savings?
-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: May 20, 2002 1:27 PM
To: SP
Hi Baba
I've been trying to get as much info on this as
possible and you are right it is quite messy.
Thanks for that link, I'm going to take a look at
your code.
-Original Message-
From: Baba Buehler [mailto:[EMAIL PROTECTED]]
Sent: May 21, 2002 5:37 AM
To: [EMAIL PROTECTED]
Subject:
ysql
Table with all the timezones
and offsets. there are duplicate offsets but since
people know their TZ as
different things depending where they live. I can
do a dump if people would
like
Chris Riordan
http://www.hal-9000.net
- Original Message -
From: "SP" <[EMAIL P
Did you see gmdate()?
http://www.php.net/manual/en/function.gmdate.php
-Original Message-
From: Jens Lehmann
[mailto:[EMAIL PROTECTED]]
Sent: May 24, 2002 2:52 PM
To: [EMAIL PROTECTED]
Subject: [PHP] gmtime?
Any reasons why there's no gmtime()-function in
PHP? I'd like to hear your
thou
Baba told me about his time zone class in pear
just recently.
http://pear.php.net/package-info.php?pacid=57
-Original Message-
From: John Hughes [mailto:[EMAIL PROTECTED]]
Sent: May 24, 2002 4:45 PM
To: Miguel Cruz; [EMAIL PROTECTED]
Subject: Re: [PHP] adjusting time() to correct for
I'm not an expert but that doesn't sound like it's
possible. I mean if you could upload files and
chmod them on a remote server you would have some
serious security issues. The only thing I can
think of is you could upload files to your remote
datebase.
-Original Message-
From: r [mai
mailto:[EMAIL PROTECTED]]
Sent: May 25, 2002 10:03 PM
To: SP
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP script
Hey there,
Guess you too are a newbie,
anyway, have been doing what you think is
impossible for years using perl
and servlets without any problems,
And I know its possible with PHP too, since
You can make up your own tags by just adding more
things to be parsed.
EXAMPLE:
$text = "Look at [b]this[/b] website ...";
echo $text;
custom_tags($text);
echo $text;
function custom_tags($text)
{
/* converts special tags into the html counterpart
* [b]text[/b] - bold text
* [i]text[/i] - ita
It worked for me, what error are you getting?
In the other.html, did you have this?
-Original Message-
From: mp [mailto:[EMAIL PROTECTED]]
Sent: May 26, 2002 3:05 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP and JavaScript
Hi, php-general,
I make this kind of
Vbulletin does this for their search. Anyone know
how they do it?
http://www.vbulletin.com/forum/search.php
-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: May 28, 2002 2:36 PM
To: Jeff Bearer; Php-General (E-mail)
Subject: Re: [PHP] Intermediate "Searching..."
Here's an article you might want to read
http://phplens.com/lens/php-book/optimizing-debugg
ing-php.php
-Original Message-
From: Ed Gorski [mailto:[EMAIL PROTECTED]]
Sent: May 28, 2002 9:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Efficient PHP
Anyone know any good links on
papers/artic
Everyone gets an arbitrary 100 points "ranking" to start with. Everyone can
vote for or against a proposal. If you vote for a proposal and it gets
approved by the majority then you get more points. If you vote against a
proposal and it gets approved then you lose points. The more points you
ha
If this is my database result from a select then I need to know that Bob is
the 1st result, Mike is the 2nd result and John is the 3rd result ...
Name Address
===
Bob 121 King St.
Mike 99 Main St.
John 8433 Albert St.
Does mysql keep track of this? I know I
s each time in your loop as an associative array.
mysql_fetch_array(result, MYSQL_ASSOC)
will do the trick.
"Sp" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> If this is my database result from a select then I need to know that
I see what you are trying to do David but that was what I tried first but it
doesn't work because the function calls itself depending if it's not a
parent so the alternating colors become all messed up depending on the
structure of my folders. That's why I was hoping to get the number for each
of
acheiving this?
TIA,
SP Computing
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
regard's
wahyu sp
malang
indonesia
Akses Internet TELKOMNet-Instan beri Diskon s.d. 50 % khusus untuk wilayah Jawa Timur.
Informasi selengkapnya di www.telkomnetinstan.com atau hub 0800-1-INSTAN (4
76 matches
Mail list logo