From the PHP docs...
=
?php
session_register (count);
$count++;
?
Hello visitor, you have seen this page ?php echo $count; ? times.p;
?php
# the ?=SID? is necessary to preserve the session id
# in the case that the user has disabled cookies
?
To continue, A

I know I should not ask this question - but as I am not getting prompt
reply from mysql mailing list posting it here too - Just in case anybody
knows about it
I am trying to install the mySQL on our remote server thr putty (SSH).
Following are the set

On Thu, 25 Jul 2002, Justin French wrote:
what's the best way to log the bad email address' from a mail() loop?
From the manual:
mail() returns TRUE if the mail was successfully accepted for delivery,
FALSE otherwise.
Is the definition of accepted for delivery dependent on each server,

ok unix.h problem solved but now it's saying can't locate .libs/libZend.a
any ideas?
~thinks: sheesh no wonder more and more people just use windose for PHP
since it looking like its too bloody hard to install any where else lol~
-Original Message-
From: Peter [mailto:[EMAIL

session_name('sid');
session_start();
Do i have to use session_name('sid'); every time i use session_start(); or
can session_name be used once?
---
Philip J. Newman.
PhilipNZ.com Design Solutions
http://www.philipnz.com/
[EMAIL PROTECTED]
Mob: +64 (25) 6144012.
Tele: +64 (25) 6144012.

Just once when you first create the session.
Rick
This is the final test of a gentleman--his respect for those who can
be of no possible service to him. - William Lyon Phelps
From: Philip J. Newman [EMAIL PROTECTED]
Date: Thu, 25 Jul 2002 19:43:23 +1200
To: [EMAIL PROTECTED]
Subject: [PHP]

http://crushme.clients.philipnz.com/crushweb.php?startWeb=guest_booksid=63e
9864efec3df8d84455e9e7fdb39a2PHPSESSID=810e806280e1f6e26a3d04fea3242766
sid = the session, and when session_name('sid'); it adds
PHPSESSID=810e806280e1f6e26a3d04fea3242766 to the url?
whats up with that?
-

On Wed, 24 Jul 2002, Scott Fletcher wrote:
It work very nicely The whole process take 30 to 45 minutes for just
one server. I wonder how does someone did 12 computers in 10 minutes.
Cool!
cd /usr/src/local
tar -zxf php-4.2.2.tar.gz
cd php-4.2.2
../php-4.2.1/config.nice
make

On Tue, 23 Jul 2002, Richard Lynch wrote:
This is excluding support contracts for software you paid for -- Once you
pay Oracle enough money for Support Contracts, they have pretty good
support, from what I hear... :-)
They're attentive and responsive and about as knowledgeable as you could

Okay. Unless I failed a math course in high school (which is possible) I
think my formulas are sound. However I'm having issues with this code.
The Intended result: Take any image larger then 180x200 (WxH) and resize
it proportionally so it fits within 200x180.
What I'm getting, exactly

Okay, I somehow fixed it. But to make sure I am clear on this ImageSY Will
give the vertical height of an image and ImageSX will give the width?
Sorry to spam with such a stupid mistake...
Me.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:

Maybe it's a permission problem: if you read the installation procedure of
MySQL, you can find that some file system permission modifies are required
(you must modify the permissions of 2 or 3 file (or directories));
Have you chenged theese permission?
S.
Il 08:52, giovedì 25 luglio 2002,

$_GLOBAL['HTTP_REFERER']
Which I found myself by going to the manual, looking at the variables
section, looking under predefined variables, and having a bit of a dig
around :)
Be warned, HTTP_REFERER does NOT have to be set by the browser, so you
shouldn't rely on it AT ALL for mission critical

On Wed, 24 Jul 2002, Justin French wrote:
If your ISP doesn't allow you to use .htaccess files in this way, AND can't
provide you with a directory outside the document root for placing sensitive
files, then I'd recommend switching hosts, because they clearly don't have
an understanding of

on 25/07/02 5:37 PM, Miguel Cruz ([EMAIL PROTECTED]) wrote:
In almost every case, mail() will return true, regardless of how bogus the
destination email address is.
mail() just dumps it into the mail queue. There's a lot that goes on
between there and delivery, and mail() doesn't wait

on 25/07/02 5:43 PM, Philip J. Newman ([EMAIL PROTECTED]) wrote:
session_name('sid');
session_start();
Do i have to use session_name('sid'); every time i use session_start(); or
can session_name be used once?
*sigh*
How about testing it on two pages?
Or better still, LOOK IN THE

On Wed, 24 Jul 2002, Briggsy wrote:
Altn-N have a product called relayfax which is used with e-mail. You could
use forms to send an email and have realyfax fax it
www.altn.com They have awesome support for their mailserver MDaemon so I
would say realyfax would be equally as good
Also,

Ok PHP was working fine on this NT2000 box and now its totally smegged.
Every PHP page gives the error:
-2147467259 (0x80004005)
Then IIS restarts itself, i've tried reinstalling with the latest version
(4.2.2) of PHP, rebooted, no joy, then reinstalled IIS rebooted thenthen it
constantly asked

I have a datetime field in one of my mysql tables...when displaying
some
of
my records I want to display the date in the aforementioned datetime
field,
but if the date is today I want to display today instead. If the
date
is
yesterday I want it to display that so I how do I compare

In article [EMAIL PROTECTED], [EMAIL PROTECTED]
says...
ok unix.h problem solved but now it's saying can't locate .libs/libZend.a
any ideas?
~thinks: sheesh no wonder more and more people just use windose for PHP
since it looking like its too bloody hard to install any where

On 25 Jul 2002 at 2:04, GOLD, MATTHEW wrote:
thank you very much for your quick response.
How do I run mysql_fetch_row before the while loop? I don't want two
loops, because I just want this variable to print out once.
I tried this, but it didn't work:
$query = Select blah1, blah2,

Hello,
I wonder how much I can include files?
does it matter if the size sum of the source code included are above 1MB ?
thanks,
elias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

ok change to cgi, seems to be alot more stable now.
Francis [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Ok PHP was working fine on this NT2000 box and now its totally smegged.
Every PHP page gives the error:
-2147467259 (0x80004005)
Then IIS restarts

Hello everybody,
I hope u can help me with this. I'll be very grateful!
This file retrieves a list of files from a folder on the server and then
has to diplay a list of them. When selecting one of them in the list, it
should display a preview (i.e. its contents) in the same file. I think i

On Thursday 25 July 2002 18:41, lallous wrote:
Hello,
I wonder how much I can include files?
does it matter if the size sum of the source code included are above 1MB ?
Instead of testing the mailing list, why not try the above for yourself?
--
Jason Wong - Gremlins Associates -

Hello,
1. you must have a frame system with two frames: frame1 called fileslist,
fametwo called: preview
when you build the files list do like this:
?
while (list(, $filename) = each($filesarray))
{
echo lia href=javascript:display('$filename')$filename/a;
}
?
then declare a javascript

Hi
I'm trying to do some parsing of mail headers and since not all
headers follow the pattern:
X-Header-A: A string
X-Header-B: Another string that is longer
X-Header-C: And this string is very very long compared
But may very well look like this:
X-Header-A: A string
X-Header-B: Another

I'm trying to apply XSL to XML stored in a MySQL database with PHP. How do I
go about doing this? I've tried following the example on php.net but I seem
to run into a lot of trouble. Here's how the code looks like (BTW aml is XML
stored in the argument Table):
if (! empty($searchword ))

Hello Oliver,
Thursday, July 25, 2002, 1:42:05 PM, you wrote:
OW Alexander Kuznetsov schrieb:
i think u should set write permissions to directory
where u r trying to copy file
OW Thank you for answering.
OW But how do I set write permisisons? With a .htaccess file?
OW Oliver
i think the

Is it possible to make the browser wait say, 5 seconds before redirection by
outputting headers? I know you can do it with meta tags but not how by
outputting headers
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:

On Thursday, July 25, 2002, at 01:02 PM, JJ Harrison wrote:
Is it possible to make the browser wait say, 5 seconds before
redirection by
outputting headers? I know you can do it with meta tags but not how by
outputting headers
http://www.php.net/manual/en/function.sleep.php
R.
--
PHP

Hi,
I need to use extension_loaded() to try and detect which database interface(s) are
installed on some servers. Nowhere have I been able to find a
list of the internal extension names that is the string required as the function
argument. I know I can see those in my build of PHP using
%

try:
function_exists('mysql_query') - if TRUE then MySql is supported, etc...
Peter [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I need to use extension_loaded() to try and detect which database
interface(s) are installed on some servers. Nowhere

Hello,
Can I get the starting position of my string occurence when using any
regexps searching functions in PHP ?
for example:
$mem='this is a test';
preg_match('/test/', ...) should return me somehow: 10
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:

On Thursday 25 July 2002 20:40, lallous wrote:
Hello,
Can I get the starting position of my string occurence when using any
regexps searching functions in PHP ?
for example:
$mem='this is a test';
preg_match('/test/', ...) should return me somehow: 10
No.
If search string does not

Can I get the starting position of my string occurence when using any
regexps searching functions in PHP ?
for example:
$mem='this is a test';
preg_match('/test/', ...) should return me somehow: 10
Does it have to be a regular expression you are searching for? If not,
you can use

In article [EMAIL PROTECTED], [EMAIL PROTECTED]
says...
Hello,
Can I get the starting position of my string occurence when using any
regexps searching functions in PHP ?
for example:
$mem='this is a test';
preg_match('/test/', ...) should return me somehow: 10
Thanks
strpos might

Ctan wrote:
I'm trying to apply XSL to XML stored in a MySQL database with PHP. How do I
go about doing this? I've tried following the example on php.net but I seem
to run into a lot of trouble. Here's how the code looks like (BTW aml is XML
stored in the argument Table):
if (!

Yes, I'm aware of the strpos() or any other non-regexp string functions...
but it is either I use regexp to match a certain pattern or I'll have to
write a char-by-char parser to emulate regexp searching and yet get the
position of the occurence!
Thank you all anyway.
//Elias
Alexander

..do you have access to http://www.php.net? Nothing personal Newman, but
RTFM. Most of the answers, if not all are there. Also, did you know that
http://www.vaahq.com is down? Just thought I'd let you know since it is in
your portfolio.
Oh, and that whole tird-person Newman thingboring and

insert into table(imagefield) values(load_file('/path/to/image.jpg'))
i remember that worked for me.
//elias
Rija [EMAIL PROTECTED] wrote in message
001501c231f5$72337a40$3d00a8c0@workelp3">news:001501c231f5$72337a40$3d00a8c0@workelp3...
I want to store image data into mysql table using BLOB

Hi, Thanks for the reply, but somehow I got it to work yesterday.
Someone else in this list pointed out the same problem and file a bug
report. They say it's fixed in CVS.
http://bugs.php.net/?id=18522edit=2
Reuben D. Budiardja
On Wed, 2002-07-24 at 19:49, David Robley wrote:
In article

on 25/07/02 11:05 PM, lallous ([EMAIL PROTECTED]) wrote:
Yes, I'm aware of the strpos() or any other non-regexp string functions...
but it is either I use regexp to match a certain pattern or I'll have to
write a char-by-char parser to emulate regexp searching and yet get the
position of

Depends on what system you are running, let us know and we can better
answer the question.
On Thu, 25 Jul 2002, Paul O'Neil wrote:
I have a php script I would like run like a cron job every so many minutes.
How is this done?
--
PHP General Mailing List (http://www.php.net/)
To

On second thought, do you just want the script to run and sleep or
actually schedule it as a job? You could just use sleep().
set_time_out(0);
while ($i = 0){
your code
sleep(60);
}
We use this at my company for a file parsing program, it runs, sleeps 15
minutes and repeats.

I looked at some old posts and I found #!/usr/local/bin/php -q should be
included at the top of the script but I don't think I have permission on the
system I'm on.
-Original Message-
From: Scott [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 6:25 AM
To: Paul O'Neil
Cc: [EMAIL

In order to run the script from the command line you need the cgi or
executable version of PHP. You can have both on the machine, Apache uses
mod_php and you use the cgi version for your scripts on the machine.
On Thu, 25 Jul 2002, Negrea Mihai wrote:
and what happens if you restart

Yes, I've done it before too...but I saw some other libraries(in other
programming langs) that has such features...
Justin French [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
on 25/07/02 11:05 PM, lallous ([EMAIL PROTECTED]) wrote:
Yes, I'm aware of the

You can do that or just run the command:
/usr/local/bin/php -q name_of_script.php
If you want to call the script directly by name instead of calling php
like that you will need to make to executable and add the # line at the
top.
On Thu, 25 Jul 2002, Paul O'Neil wrote:
I looked at some old

Hello again,
I got the fetch_array problems fixed. I was using the actual server name,
when I switched back to localhost everything worked!!
Now I have a question about how to make cookies work on a Windows machine.
This is what I have these parameters set to but it's not working. Do I

Hello Matthew,
Thursday, July 25, 2002, 5:06:09 PM, you wrote:
MB Hello again,
MB I got the fetch_array problems fixed. I was using the actual server name,
MB when I switched back to localhost everything worked!!
MB Now I have a question about how to make cookies work on a Windows machine.

My question is, if I have a user on my web site, and they leave and come
back does their session still exist? the file in the /tmp folder exists
until it is deleted by the OS? If the user comes back will they get
assigned the same session they had before? I know the questions are
pretty newbish

How about this:
$text = this is test;
preg_match can return the first match in an optional array I'll call
$matches
http://www.php.net/manual/en/function.preg-match.php
preg_match('/test/', $text, $matches);
strpos returns the numeric position of the first occurrence

I've signed up, and I suppose I would qualify for the Washington, DC area, though that
is not strictly the locale I have setup :o)
As it's new, I'm sure many will be signing up in the coming weeks. Personally, I can
hardly wait to sit around and chat with other PHP developers. Sign up now if

John,
You made one comment which is caught my attention:
that's a no go :( Or is there a way of storing common query results?
If the results to a commonly called query are the same for a time period,
than why don't you right a routine that just stores the results into a new
database that

Hi Matt,
The user's browser will retain the session cookie as long as it is open
unless session.cookie_lifetime is set to something other than zero in the
php.ini or you can also set it in your script like this:
// set session cookie to expire in 30 minutes.

Hi,
I've been searching around for ways to convert pdf to html. I haven't
had much luck.
I have a client that has a bunch of pdf's stored in a mysql table.
They don't want their users to have to download the pdf file, they want
the pdf to be displayed in the web browser all the time. Google

The XML would be something like this...
?xml version=1.0 encoding=UTF-8?
ARG
SCHEMESET
SCHEME
NAMEArgument from Position to Know/NAME
FORM
PREMISEa is in a position to know whether A is true/PREMISE
PREMISEa asserts that A is true/PREMISE
CONCLUSIONA

Hello all,
I know that this has probably been discussed before and that you will
tell me to go through all the back messages on the list but I really
don't have time to do that because I am on a really tight schedule, but
I was wondering if anyone could give me some pointers on how to pull
some

I have a column in my table named firstname with twenty records in it. How
can i use php to pull out individual records (say for ex. record 16)? Also,
how could i pull out all records upto number 15? Thanks in advance.
_
Send

Create a column like.person_id with the auto_incr flag set. Every
record will be given a unique id starting at 1 and incrementing by 1 each
time. Then you can query based on person_id field to get an individual
record
-Original Message-
From: Tyler Durdin [mailto:[EMAIL PROTECTED]]

I seem to have a problem getting the page to display beyond the limit if a
page, i.e. if the limit if 10 rows in a page I'll only get the 1st ten rows
and then a link to further rows but when I chick on them they give me
nothing. Here's the code:
$searchword = $_POST['searchword'];
print Your

Maybe something like:
eregi('([a-z]*)( *)(\(*)([a-z]+)( *)(\)*)([a-z]*)',$string,$matches);
echo $matches[4];
Op donderdag 25 juli 2002 17:13, schreef Mike:
Hello all,
I know that this has probably been discussed before and that you will
tell me to go through all the back messages on the list

You would need to use SQL to identify which columns and rows you need to retrieve,
then use various MySQL PHP functions to gather the information.
For your two queries, they would appear thus, respectively:
SELECT firstname FROM tablename WHERE id=16
and
SELECT firstname FROM tablename ORDER

Basically, someone is looking to get a database driven site built,
and Ive never written code for money before.
Im looking for advice, as to how the experienced coders in here charge
for their work.
Do you charge by the page, script or by the hour (that would be nice).
Thanks for any input you

Ok, It works and everything, but I just was wondering:
$data = ereg_replace('(.*(\(|\[)|(\)|\]).*)', '', ${$data});
--^ ^
what does this do exactly, I see that you are replacing all the
characters [] and () but what is the ${$data} for?
Also

Charge by which ever will get you the most money.
tyler
On Thu, 25 Jul 2002 11:46:38 -0400
Gerard Samuel [EMAIL PROTECTED] wrote:
Basically, someone is looking to get a database driven site built,
and Ive never written code for money before.
Im looking for advice, as to how the experienced

resists the urge to debate ethics
Why didn't you just say, Charge by whichever will screw the client the worst.?
Jesus.
Martin
Tyler Longren [EMAIL PROTECTED] 07/25/02 11:44AM
Charge by which ever will get you the most money.
tyler
On Thu, 25 Jul 2002 11:46:38 -0400
Gerard Samuel [EMAIL

Thank you very much, David--you understood the problem exactly and your
solution worked perfectly!
I'd like to add a comment about mysql_data_seek to the php manual entry on
mysql_fetch_row, because I would think that this might be a common
problem...
Matt
- Original Message -
From:

I have never charge by the page simply because I don't want to be
limited in my design. Also, I don't want them saying I've added unneeded
pages to up the price.
I don't know how you would charge by the script since you should be
using object oriented code. Wouldn't this be similar to charging

Why even bother charging money if you aren't out to make as much as you
can? That's just my point of view.
tyler
On Thu, 25 Jul 2002 11:59:28 -0400
Martin Clifford [EMAIL PROTECTED] wrote:
resists the urge to debate ethics
Why didn't you just say, Charge by whichever will screw the client

On 25 Jul 2002 at 11:46, Gerard Samuel wrote:
Basically, someone is looking to get a database driven site built,
and Ive never written code for money before.
Im looking for advice, as to how the experienced coders in here charge
for their work. Do you charge by the page, script or by the

In today's depressed IT market, what are the prevailing hourly rates for a
very experienced PHP/MySQL developer? I desire to use this information as a
guage of what I am currently charging.
Paul
-Original Message-
From: Peter J. Schoenster [mailto:[EMAIL PROTECTED]]
Sent: Thursday,

I have never charge by the page simply because I don't want to be
limited in my design. Also, I don't want them saying I've added unneeded
pages to up the price.
or have customers nitpicking about removing pages to cut costs...
I don't know how you would charge by the script since you should be