Bob
A. Example path
session.save_path = c:\http\cgi\session
Basically a directory under the root of your webserver
B. session_start() must be before any other commands in your script such as HTML.
So Line 1:
bob...
when using the sesion_start(), it needs to be the 1st thing on the page...
--
--
i don't recall if there has to be anything within the php.ini file set to
enable sessions...
the reason you're getting the error msg, is that your page has essentially
already "sen
While I realize this is elementary to most of you, I am just getting started
with php, moving from coldfusion :)
I am currently reading through the chapter on sessions and running into a
little issue that after making many changes to my php.ini file, I continue
to get the following errors while run
hi...
after further reading/screams... it appears that only php-5.0.0 supports the
"mysqli" interface. however, there appear to be numerous issues/problems
with getting this up/running.
my setup.
i have rh8.0 linux, with php-5.0.0 source.
i'm trying to build from souce, to do the configure/make/
Hello,
On 07/18/2004 01:40 AM, Cd Baby wrote:
I see all these articles and tutorials about reading and parsing XML files.
But what about creating and writing XML files with PHP5?
Is the DOM the only way?
It seems like such a bloated overkill.
I just want to make simple little XML files like this:
Y
On Sun, 2004-07-18 at 00:40, CD Baby wrote:
> I see all these articles and tutorials about reading and parsing XML files.
>
> But what about creating and writing XML files with PHP5?
>
> Is the DOM the only way?
> It seems like such a bloated overkill.
> I just want to make simple little XML file
I see all these articles and tutorials about reading and parsing XML files.
But what about creating and writing XML files with PHP5?
Is the DOM the only way?
It seems like such a bloated overkill.
I just want to make simple little XML files like this:
Pink Floyd
Dark Side of the Moon
I know this is a bit early to ask, but I thought I'd ask it anyway.
Does anyone have an rpm spec file for php 5 yet?
If I don't get any responses to this question, I'll build on and sent it to the
list.
Have a great night!
-Brent
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
phpNuke is also popular.
> -Original Message-
> You could always use a wiki. ;-) I've found tikiwiki to be very well
> suited to such things.
>
> On Sat, 17 Jul 2004 17:44:29 -0500, [php]Walter <[EMAIL PROTECTED]>
> wrote:
> > Anyone know a blog (I think) that will let me create documenta
On Sunday 18 July 2004 01:42, Curt Zirzow wrote:
> I dont know what is more evil.. backports or Microsoft :)
No contest, M$, hands down.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications De
Hello,
On 07/17/2004 03:11 AM, Curt Zirzow wrote:
remove carriage returns to prevent embedded email directives
In an other thread, I readed that sentence. I'm interested to find more
information about that. I have some mail forms and want to make them as
secure and possible, but do not know about
C.F. Scheidecker Antunes wrote:
Hello all,
Is there a more efficient way to compare 2 TXT files other than
reading line by line ?
What I was doing was reading line by line and compare both files, if
one line is different the loops are interrupted and the function
returns true.
Any ideas?
how a
That sounds pretty efficient to me if all you want is whether they're
different. If you actually want to know how different, you could use
something like levenshtein() to compare the contents of the files as
strings.
http://www.php.net/manual/en/function.levenshtein.php
Or, for a more full solutio
Php wrote:
> And you can also used a php variable to detect multiple submit:
Even better would be using a token which you give to the user when the form
is displayed. That way they can't accidentally submit the form on first
entry to the site (and believe me, this can happen, because Konqueror
oc
On Sat, Jul 17, 2004 at 07:07:44PM -0600, C.F. Scheidecker Antunes wrote:
>
> Is there a more efficient way to compare 2 TXT files other than reading
> line by line ?
>
> What I was doing was reading line by line and compare both files, if one
> line is different the loops are interrupted and t
Curt Zirzow wrote:
> A simple workaround is testing OS:
>
> if (windows)
> // use realpath method
> } else {
> $absolute = $path{0} == '/';
> }
I don't know what the "realpath" method is since every one I've been given
that involves realpath so far doesn't work.
But here's what I'm doing now
Hello all,
Is there a more efficient way to compare 2 TXT files other than reading
line by line ?
What I was doing was reading line by line and compare both files, if one
line is different the loops are interrupted and the function returns true.
Any ideas?
Thanks in advance.
--
PHP General Mail
You could always use a wiki. ;-) I've found tikiwiki to be very well
suited to such things.
On Sat, 17 Jul 2004 17:44:29 -0500, [php]Walter <[EMAIL PROTECTED]> wrote:
> Anyone know a blog (I think) that will let me create documentation and let
> users add their comments to the tail of it, just lik
Anyone know a blog (I think) that will let me create documentation and let
users add their comments to the tail of it, just like php.net can do??
Thanks
Walter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Curt Zirzow wrote:
* Thus wrote gohaku:
Hi everyone,
I have been experimenting with defining functions as constants.
Below is what I am using to test "Function Constants":
define(DBLOGIN,dblogin(LOGIN,PASS,DB));
This is simply not allowed.
see:
http://php.net/define
damn... I had just rewritte
* Thus wrote gohaku:
> Hi everyone,
> I have been experimenting with defining functions as constants.
> Below is what I am using to test "Function Constants":
>
>
> define(LOGIN,"user");
> define(PASS,"pass");
> define(DB,"mysql");
>
> define(DBLOGIN,dblogin(LOGIN,PASS,DB));
This is simply not
Hi everyone,
I have been experimenting with defining functions as constants.
Below is what I am using to test "Function Constants":
define(DBLOGIN,dblogin(LOGIN,PASS,DB));
DBLOGIN;
$set = mysql_query("Select user FROM user limit 1,1");
$results = mysql_fetch_array($set);
echo "Results: ",$results
"Harlequin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> What's the best way of emptying my variables once my form has done with
them
> because although I disconnect from the database if the user refreshes the
> screen it sends another e-mail to me.
>
> --
> --
On Sat, 17 Jul 2004 13:11:41 -0700, Bruce wrote:
> has anybody managed to get php to work so you can actually use both
> mysql/mysqli???
>
> pointers/criticisms/assistance is greatly appreciated! searching through
> google/php.net/etc.. hasn't turned up information on where i've gone wrong.
>
>
In a message dated 7/17/2004 11:25:41 AM Pacific Daylight Time,
[EMAIL PROTECTED] writes:
>Tularis wrote:
>> Programming PHP by O`Reilly :)
>Write-up says it STILL uses MySQL as it's database material ;(
I don't know what Write-up you are refering to. The book is not tied to
MySQL. It mentions
hi...
i'm trying to upgrade/install php-4.3.8 to include mysqli support. i'm
running on a rh8.0 linux with mysql-4.x.
i used the php-4.3.8 src rpm, and built using the following config
./configure --with-apxs2=/usr/sbin/apxs --with-config-file-path=/etc --with
-mysql --with-mysqli=/usr/bin/mys
Here's a php5 book, and there's a few others.
http://www.oreilly.com/catalog/learnphp5/index.html
On Sat, 17 Jul 2004 19:28:37 +0100, Lester Caine <[EMAIL PROTECTED]> wrote:
> Tularis wrote:
>
> > Programming PHP by O`Reilly :)
>
> Write-up says it STILL uses MySQL as it's database material ;(
On Mon, 12 Jul 2004 15:22:05 -0400 John Taylor-Johnston
<[EMAIL PROTECTED]> wrote:
> So how would I recode $ausenquiry so if ausenquiry=e, it will choose words
> that begin with "e", "é" sorted this way:
Before the actual sort, use strtr() with a translation array on a copy of the
string. Use the
Tularis wrote:
Programming PHP by O`Reilly :)
Write-up says it STILL uses MySQL as it's database material ;(
Since I'm pushing PHP5 into all new sites, I'll wait for a PHP5 book :)
The Firebird Bible ( which has taken two years to write ) is being
printed at the moment and should be out by next mo
* Thus wrote Jason Wong:
> On Saturday 17 July 2004 15:01, Ed Lazor wrote:
> > Is the RedHat Network Up2Date really only on version 4.3.2 of PHP? If so,
> > any idea why they're so far behind? Any idea of when it will be brought
> > current?
> >
> > I have an ISP telling me that the security of t
* Thus wrote Head:
> mh i tracked the bug down to be an FOPEN on a URL so i need to set a timeout
> on FOPEN hows that possible ? Using php version 4.3.7
see:
http://php.net/stream_set_timeout
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hea
* Thus wrote Trejkaz Xaoza:
> Jason Barnett wrote:
> > A, methinks I have a competitor for a FileSystem Manager :) Perhaps I
> > misunderstand your problem, but this works fine for me (WinXP) because
> > realpath
> > [quote]Returns canonicalized absolute pathname[/quote]:
> >
> > >
> > // w
yeah.
I should have noticed that. Thanks again Torsten :)
--
-
Michael Mason
Arras People
www.arraspeople.co.uk
-
"Torsten Roehr" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Harlequin" <[EMAIL PROTECTED]> wrote in mess
mh i tracked the bug down to be an FOPEN on a URL so i need to set a timeout
on FOPEN hows that possible ? Using php version 4.3.7
"Head" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> hello list,
>
> im running a php script from CLI/CGI on linux which has a variable
execution
> tim
"Harlequin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I've generated a page where the user selects and completes a form. One of
> these is a free text area with the name "TXT_Question". this is used later
> as "$Question = $_Post['TXT_Question'];"
Shouldn't this be $_POST['TX
"Harlequin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> What's the best way of emptying my variables once my form has done with
them
> because although I disconnect from the database if the user refreshes the
> screen it sends another e-mail to me.
Even when you reset all variabl
hello list,
im running a php script from CLI/CGI on linux which has a variable execution
time, some times it doesnt terminates by itself so i have to set a
max_execution_time to terminate the script. My problem is that the
max_exec_time on CGI versions is always 0 (never time out) which produces
z
The template system I use is extremely simple.
Template.php:
Items = array();
$this->_document = $document;
}
function Render()
{
echo $this->ToString();
}
function ToString()
{
$template = $this->Ite
What's the best way of emptying my variables once my form has done with them
because although I disconnect from the database if the user refreshes the
screen it sends another e-mail to me.
--
-
Michael Mason
Arras People
www.arraspeople.co.uk
---
I've generated a page where the user selects and completes a form. One of
these is a free text area with the name "TXT_Question". this is used later
as "$Question = $_Post['TXT_Question'];" but for some reason when I send
this in an e-mail like so:
\nUser has selected eventID:\t$EventID
\nAn
"Harlequin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> There's loads and loads of books available on the subject of PHP & MySQL.
>
> Does anyone have any recommendations...?
here are some:
http://www.templatetamer.org/index.php?RecommendedBooks
rush
--
http://www.templatetamer
Jason Barnett wrote:
> A, methinks I have a competitor for a FileSystem Manager :) Perhaps I
> misunderstand your problem, but this works fine for me (WinXP) because
> realpath
> [quote]Returns canonicalized absolute pathname[/quote]:
>
>
> // we know __FILE__ is an absolute path
> $file =
Hello,
Here is a shema to explain Template Engines:
http://www.tinybutstrong.com/index.php?page=template
Some developers complain about Template Engines because they are too complex
or because they are a kind of new language over PHP. The one you will found
on the URL above is expected to be di
Hi !
You can user mysql_insert_id() for this purpose.
zareef ahmed
--- Andrew Wood <[EMAIL PROTECTED]> wrote:
> If the primary key in a MySQL DB is an
> autoincrementing integer, is
> there anyway of automatically getting it back when I
> do an insert in
> PHP. In other words taking the stat
Am 2004-07-17 09:29:37, schrieb Lester Caine:
>Harlequin wrote:
>
>>There's loads and loads of books available on the subject of PHP & MySQL.
>
>It would be nice to find one's that DON'T rely on MySQL ;)
O'Reilly: Programming PHP
Practical PostgreSQL
>Anybody
Am 2004-07-17 08:16:36, schrieb Harlequin:
>Morning
>
>There's loads and loads of books available on the subject of PHP & MySQL.
>
>Does anyone have any recommendations...?
I can recommend Books from O'Reily
Programming PHP
The second book I use is
Practical PostgreSQL
But ther
Anyway it's looking a lot like I'll have to detect the Win32 build of PHP
at runtime, and choose the method based on that. All because PHP doesn't
have an is_absolute function or anything similarly convenient. :-/
TX
A, methinks I have a competitor for a FileSystem Manager :) Perhaps I
misu
Tularis wrote:
> c:/ wouldn't even work as a path on unix systems.
[134] [EMAIL PROTECTED]:/tmp> mkdir c:
[135] [EMAIL PROTECTED]:/tmp> ls -la c:/
total 8
drwxr-xr-x 2 trejkaz users 4096 Jul 17 21:01 .
drwxrwxrwt 52 rootroot 4096 Jul 17 21:01 ..
You were saying?
Anyway it's looking a lo
Programming PHP by O`Reilly :)
Lester Caine wrote:
Harlequin wrote:
There's loads and loads of books available on the subject of PHP & MySQL.
It would be nice to find one's that DON'T rely on MySQL ;)
Does anyone have any recommendations...?
Anybody seen a good NON MySQL one.
--
PHP General Maili
Trejkaz Xaoza wrote:
Michael Ochs wrote:
Hi,
maybe you could try it with regular expressions! "[A-Z]:\\" or better
"[C-Z]:\\" because A and B is used just for floppy drives...
Take a look at www.php.net/preg_match/
I'm not sure if you noticed, but I said I wanted it to be portable.
Sure, "([A-Za-z
Michael Ochs wrote:
> Hi,
> maybe you could try it with regular expressions! "[A-Z]:\\" or better
> "[C-Z]:\\" because A and B is used just for floppy drives...
> Take a look at www.php.net/preg_match/
I'm not sure if you noticed, but I said I wanted it to be portable.
Sure, "([A-Za-z]:)?[/\\]" w
Lester Caine wrote:
Harlequin wrote:
There's loads and loads of books available on the subject of PHP &
MySQL.
It would be nice to find one's that DON'T rely on MySQL ;)
Does anyone have any recommendations...?
Anybody seen a good NON MySQL one.
Very true it's time to change partners, php's curr
Hi,
maybe you could try it with regular expressions! "[A-Z]:\\" or better
"[C-Z]:\\" because A and B is used just for floppy drives...
Take a look at www.php.net/preg_match/
Bye, Michael
"Trejkaz Xaoza" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hi!
>
> I used to detect
Harlequin wrote:
There's loads and loads of books available on the subject of PHP & MySQL.
It would be nice to find one's that DON'T rely on MySQL ;)
Does anyone have any recommendations...?
Anybody seen a good NON MySQL one.
--
Lester Caine
-
L.S.Caine Electronic Servic
Hi!
I used to detect whether a path is absolute by seeing if the first character
is a forward slash.
Unfortunately, Windows absolute paths are in a different syntax like "C:\",
and I don't know what other random systems might have for their syntax in
the future.
So, is there a portable way to te
Michael
Your right there is a wide selection available and as such you need to select based on
your particular development slant.
PHP and Mysql Web Development ISBN 0-672-32525-X 2nd Edition by Welling & Thomson is a
good general text.
Did you solve your table results printing question?
Mike
I agree that PHP & MySQL Web Development (By Luke Welling and Laura
Thompson) is a great resource for learning PHP. Armed with that book
and the online PHP manual (with user comments), and you're on your way
to being a well-informed developer.
The second edition (2003) covers PHP 4.3, so it's
I apologize for requesting a read receipt. Won't happen again - I hope. :)
-Original Message-
From: Will Collins [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 17, 2004 2:27 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Book Required
PHP & MySQL Web Development is a pretty good one. It d
Harlequin wrote:
Morning
There's loads and loads of books available on the subject of PHP & MySQL.
Does anyone have any recommendations...?
PHP and MySQL Web Development by Luke Welling and Laura Thomson has
always been my favorite.
http://www.samspublishing.com/title/067232525X
That's the 2nd
PHP & MySQL Web Development is a pretty good one. It does a good job of
giving a fairly thorough explanation on things, considering the broad range
of topics to be covered. I never have really been a fan of the "Fast and
Easy... " series, or the "Learn * In 24 Hours" series.
Will
-Original
Morning
There's loads and loads of books available on the subject of PHP & MySQL.
Does anyone have any recommendations...?
--
-
Michael Mason
Arras People
www.arraspeople.co.uk
-
--
PHP General Mailing List (http://www.php.net/)
To un
On Saturday 17 July 2004 15:01, Ed Lazor wrote:
> Is the RedHat Network Up2Date really only on version 4.3.2 of PHP? If so,
> any idea why they're so far behind? Any idea of when it will be brought
> current?
>
> I have an ISP telling me that the security of their systems rely entirely
> on the R
Is the RedHat Network Up2Date really only on version 4.3.2 of PHP? If so,
any idea why they're so far behind? Any idea of when it will be brought
current?
I have an ISP telling me that the security of their systems rely entirely on
the RedHat Network. They acknowledge that RedHat's behind an
Dan Joseph wrote:
I was wondering, is anyone running Eclipse 3.0 w/PHPEclipse 1.1.0?
I'm having trouble getting it working. I downloaded the July .ZIP file and
unzipped it into the plugins directory. Its not recognizing it. Anyone
have this working?
I have some success with PHPEclipse on
64 matches
Mail list logo