[PHP] url rewritting in php5

2004-12-13 Thread elixon
ting instead of implementing all the functions that are already done in built-in api. Or is there some way how to register 'filter' that filters $path instead of the content? Thank you for sharing your knowledge Danny 'elixon' Sevcik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question on functions

2004-11-11 Thread elixon
tble = "logs"; $sql = @mysql_query( "SELECT * FROM ...", $db ) or die( "problem..." ); // your stuff... } function logsOnOtherMachine($db) { ... } And if you would be really trying to dig in... have a look at OOP implementation in PHP... After the beginner's pain you will love it ;-) Hope I helped little. elixon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Multiple session_start()s / Is it a problem??

2004-11-10 Thread elixon
And I think that $_SESSION does not exist unless session is started => if (!is_array($_SESSION)) session_start(); might do the job as well. elixon Al wrote: Is there a problem issuing multiple session_start()s for a given script? I can't find anything in the manual that says one way or t

[PHP] Re: Multiple session_start()s / Is it a problem??

2004-11-10 Thread elixon
I guess that session_id() method will return null if session is not started (not tested) so theoreticaly you can use: if (!session_id()) session_start(); elixon Al wrote: Is there a problem issuing multiple session_start()s for a given script? I can't find anything in the manual that say

Re: [PHP] Question on functions

2004-11-10 Thread elixon
$GLOBALS['array'][1] ... } elixon Tip: I recommend to not use GLOBALS for this type of data. Better use function parameters -> function database($host, $user, $pwd, $db) {...} It will save you time when your application grows and starts clashing with other global variables or third party

[PHP] RDF/XML Parser: SimpleRDF

2004-11-10 Thread elixon
s well commented. Thanks for any testing/feedback... Link: sf.net/projects/simplerdf elixon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php