[PHP] Secure redirection?

2008-11-05 Thread Zoran Bogdanov
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

[PHP] PHP 24 hour processes?

2008-02-24 Thread Zoran Bogdanov
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

[PHP] Deleting all rows in a database every 24 hours?

2008-02-21 Thread Zoran Bogdanov
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

[PHP] PHP Source code protection

2008-02-06 Thread Zoran Bogdanov
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

[PHP] PHP and VB.NET communication

2007-12-19 Thread Zoran Bogdanov
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

[PHP] Tracking visitor times

2007-12-18 Thread Zoran Bogdanov
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

[PHP] Multi-language in script

2005-01-26 Thread Zoran Lorkovic
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

[PHP] Multi-language in script

2005-01-26 Thread Zoran Lorkovic
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

Re: [PHP] Removing strange chars from array (or string)

2004-09-15 Thread Zoran Lorkovic
> 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

[PHP] Removing strange chars from array (or string)

2004-09-15 Thread Zoran Lorkovic
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

[PHP] preg_replace question

2004-09-09 Thread Zoran Lorkovic
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

Re: [PHP] Web Fetch & Process

2004-09-06 Thread 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('/\

[PHP] Web Fetch & Process

2004-09-03 Thread Zoran
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

Re: [PHP] Re: Problem sending mail

2004-08-31 Thread Zoran Lorkovic
> Zoran Lorkovic wrote: > > > $file = file_get_contents("text.inc"); > > $start = "[start]"; > > $end = "[/end]"; > > $pos_start = strpos ($file, $start); > > $pos_end = strpos ($file, $end); > > $data

[PHP] Problem sending mail

2004-08-30 Thread Zoran Lorkovic
$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