Hi,
I'm building a login system with AJAX/PHP/MySQL.
I have worked everything out... AJAX is sending request to a php login
script (login.php) who if authentication passes initializes the session and
sends the header using header("Location : registered_user_area.php");
The whole system works g
Hi,
How can you perform a timed event in PHP; for example:
Count 24 hours and then delete all rows in a database...
Thank you!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The title says it all, how do I perform an action every 24 hours?
Thank you.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I'm building a C# application that connects to a server that has PHP scripts
on it.
We need to deliver the complete solution to a firm, the C# is no problem
because it is compiled...
But PHP is a problem bacause it is interpreted and we will have to deliver
pure, unprotected script...
Is
Hi,
I know this isn't purely php question but if you know please reply.
I have a server with a PHP script on it. I need to write an app(VB.NET) that
will connect to a server and request a script to process some info, and the
php script will return XML data, in which I need to process that dat
Hi,
Is it possible to track how long has a single visitor been on my site?
example: I go to www.somesite.com at 5.am and I exit the page (close my
browser or just go to another site) at 6.am. How do i track that 1 hour
period using PHP?
Thanks alot!
--
PHP General Mailing List (http://www.p
Hi
I'm interested, which is the best way to include multi-language support in
scripts?
By this I mean that with new version of script/program end-user don't need
to translate whole site again...
With flat-file and "define" function or with "mysql" ?
Regards,
Zoran
Hi
I'm interested, which is the best way to include multi-language support in
scripts?
By this I mean that with new version of script/program end-user don't need to
translate whole site again...
With flat-file and "define" function or with "mysql" ?
Regards,
Zoran
> From: "Zoran Lorkovic" <[EMAIL PROTECTED]>
>
> > Well, when parsing html page data I want to save is saved in txt file.
> > But when saving in txt file I got some strange chars like small square
> > (this I see when open in NotePad).
> [snip]
> &g
empty lines.
I've try to trim array (string) before saving to file but that didn't help (tried with
trim, ltrim and rtrim).
Am I missing something?
Regards,
Zoran
second match, text between is replaced by some other
different text etc.
Btw, where I can find patterns that are valid?
(something like (\w+), (\d+)+i etc.
Thanks.
Regards.
Zoran
ke to delete all chars except numbers from page, can this
be done?
Regards.
Zoran
Your first question:
To replace certain elements take a look at preg_replace()
http://us4.php.net/manual/en/function.preg-replace.php
Example:
$foo = 'stuff silly stuff more stuff';
echo preg_replace('/\
page (with this code
$data[0] = preg_replace("/([<])+([^>])+([.])*([>])+/i","", $data[0]);
but also would like to delete all chars except numbers from page, can this be done?
Regards.
Zoran
> Zoran Lorkovic wrote:
>
> > $file = file_get_contents("text.inc");
> > $start = "[start]";
> > $end = "[/end]";
> > $pos_start = strpos ($file, $start);
> > $pos_end = strpos ($file, $end);
> > $data
$file = file_get_contents("text.inc");
$start = "[start]";
$end = "[/end]";
$pos_start = strpos ($file, $start);
$pos_end = strpos ($file, $end);
$data = substr ($file, $pos_start, $pos_end);
mail ("[EMAIL PROTECTED]", "My Subject", $data);
This code works when I ca
15 matches
Mail list logo