[PHP] Can mysql_fetch_*() work on the resultpointer only?

2001-07-26 Thread Jonas Delfs

Hi -

Can mysql_fetch_*() work on the resultpointer that mysql_query() returns,
only, or does the rows have to be in the database when fetching?
I know that mysql_query() finds the specified data, but I'm not totally sure
in my theori about that mysql_query() is taking the data-result out so that
we're not depending on the database anymore.

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

"Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases." - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Why is XML parser so slow?

2001-07-26 Thread Jonas Delfs

"Verebes Gabor" <[EMAIL PROTECTED]> skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

> I am writing an XML parser.
> It is working fine, but so slowly.
> I use PHP 3.0.16, is it too old?

One thing i sure: PHP4 is much faster than PHP3.
Why is it that you still uses PHP3?

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

"Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases." - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: my php script is very slow. help?

2001-07-27 Thread Jonas Delfs

"Hassan xaaji" <[EMAIL PROTECTED]> skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

> I have Linux/PHP/MySQL. Some of my script really run
> very slowly.
>
> What should I avoid in my scripting?

It's hard to tell. Try showing some code.

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

"Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases." - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: $str = var_dump()

2001-07-27 Thread Jonas Delfs

"Elias" <[EMAIL PROTECTED]> skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

> Actually, var_dump() dumps directly the structure/content of a variable to
> the browser...
> Now is there is anyway to capture this output and assign it to a string
and
> then store it to a file?

Output Control?

ob_start();
var_dump($flaf);
$var = ob_get_contents();
ob_end_clean();

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

"Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases." - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Destroying Session

2001-07-27 Thread Jonas Delfs

"Richard Baskett" <[EMAIL PROTECTED]> skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

> Ok having a problem.  If a person just surfs to a page outside of my site
or
> types in a different url etc.. then it leaves the session intact.  How can
I
> destroy that session?

The garbage-collector does it automaticly.

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

"Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases." - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Can mysql_fetch_*() work on the resultpointer only?

2001-07-27 Thread Jonas Delfs

"Jonas Delfs" <[EMAIL PROTECTED]> skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

> Can mysql_fetch_*() work on the resultpointer that mysql_query() returns,
> only, or does the rows have to be in the database when fetching?
> I know that mysql_query() finds the specified data, but I'm not totally
sure
> in my theori about that mysql_query() is taking the data-result out so
that
> we're not depending on the database anymore.

I've got my theory confirmed.
How come at lot more professionals hang out at the national newgroup in our
little Denmark, than here?
(Not saying that there isn't any at all, around here)

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

"Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases." - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: session gc question

2001-07-27 Thread Jonas Delfs

"Greg Donald" <[EMAIL PROTECTED]> skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

> Is is possible to set session.gc_probability manually on a per script
> basis, similar to the way error reporting is capable of being set?

Yes.
PHP have a standard function for setting things like that, but of cause I
can't remember it's name. :)

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

"Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases." - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: How to make a cookie never expire in PHP?

2001-07-28 Thread Jonas Delfs

"Joel" <[EMAIL PROTECTED]> skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

> I can use cookies with PHP but I can't make the cookie last forever.

No - because it can't be done.

> I can set the cookie to expire for upto 1 hour.
> This is the code :
> setcookie("bookmarks","cookievalue",time()+3600);
> That would make the cookie expire after an hour.

Yes.

> How do I make the cookie not expire at all?

You can't. The closest you get to never is x years.

> If I don't mention any expiration time, the cookie expires as soon
> as quit the browser. Can I use date instead of time?

No. Setcookie requires a the time to expire in seconds:
setcookie("bookmarks","cookievalue",time()+3600*24*30*12*10); // This cookie
will expire after 10 years.

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

"Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases." - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: MS Passport type script.

2001-07-28 Thread Jonas Delfs

"Matt Kaufman" <[EMAIL PROTECTED]> skrev i en meddelelse
004b01c11781$96e49f70$030a@laptop">news:004b01c11781$96e49f70$030a@laptop...

> How would I go about creating a MS Passport type script for
> use on several different sites - and only having to let the user
> login on one main place?

> All the sites would be on the same server.

You use sessions, and transports the session-id pr. URL or in a cookie where
you specifi the domainnames that should be able to access that cookie.

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

"Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases." - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Drop Down Menu

2001-07-28 Thread Jonas Delfs

"Manu Verhaegen" <[EMAIL PROTECTED]> skrev i en meddelelse
E10E651CDD2DD5118912E8E8C70F53D0@COMPUVER01">news:E10E651CDD2DD5118912E8E8C70F53D0@COMPUVER01...

> I have the following question : if i make a selection in the drop down
menu
> and click on submit button then the color will send to form2.php
> I want not click on the submit button
> i make a selection in the drop down menu then the color will send
automatic
> to form2.php, how can I do this

PHP is serverside - and this is why you can't du it in PHP. Try asking in a
javascript-group.

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

"Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases." - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Free webspace with PHP&Mysql support

2001-07-28 Thread Jonas Delfs

"Minardi Boy" <[EMAIL PROTECTED]> skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

> Is there any reliable provider who offers free webspace with php and Mysql
> support?

In my opinion no reliable exists.
You get what you pay for. If you pay a lot, you get a lot. If you pay
nothing, you get nothing.

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

"Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases." - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: list all included files

2001-07-28 Thread Jonas Delfs

"Michael Mehlmann" <[EMAIL PROTECTED]> skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

> I want to list all files, that are included in my script with include() or
> require().

get_reqiured_files() and get_included_files() ?

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

"Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases." - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: list all included files

2001-07-28 Thread Jonas Delfs

"Jonas Delfs" <[EMAIL PROTECTED]> skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

> > I want to list all files, that are included in my script with include()
or
> > require().
>
> get_reqiured_files() and get_included_files() ?

I forgot to mention that you only need get_included_files() if you're
running php4.0.4+

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

"Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases." - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: crate mysql table command

2001-07-28 Thread Jonas Delfs

"Jeremy Zawodny" <[EMAIL PROTECTED]> skrev i en meddelelse
news:[EMAIL PROTECTED]...

> > I would like to know the syntax to create mysql table using php.
> > Please help, I have searched the php manual, but couldn't find any
> > helpful hint.
>
> PHP doesn't care which database you use, so you won't find it there.
> It's a programming language---that's all.

Actually, it's a scripting language - but you made your point. :)

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

"Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases." - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]