Re: [PHP] [NOT PHP] good javascript list?

2006-05-27 Thread Paul Novitski
At 11:37 AM 5/27/2006, tedd wrote: I'm looking for a recommendation for a good javascript list like this list is for php -- does anyone have any recommendations? I've been on the LA Tech javascript list the last few years and find the quality of discussion usually high (and with much less ir

RE: [PHP] Fatal error: Call to undefined function mysql_create_db()

2006-05-27 Thread Daevid Vincent
//[dv] depricated //http://us2.php.net/manual/en/function.mysql-create-db.php //return mysql_create_db($name, $db); //[dv] this is not a good way to do this, as it doesn't tell you if it succeeded or not. //return mysql_query("CREATE DATABASE IF NOT

Re: [PHP] Including Functions; one file or many?

2006-05-27 Thread Martin Alterisio
2006/5/27, Jochem Maas <[EMAIL PROTECTED]>: 2. any include file that does contain code that runs on inclusion contains something like the following as the first line of code: if (!defined('MY_APP_IS_SETUP')) die('try http://'.$SERVER['SERVER_NAME'].'/'); An enhancement to this strategy could

[PHP] [NOT PHP] good javascript list?

2006-05-27 Thread tedd
Hi gang: I'm looking for a recommendation for a good javascript list like this list is for php -- does anyone have any recommendations? Thanks in advance for any replies. tedd PS: I know that I can Google "javascript ", but I'm looking for recommendations. -- -

Re: [PHP] Re: Embedding PHP 5 in a C application

2006-05-27 Thread Gonzalo Monzón
Hi, I think you can start here: http://wildphp.free.fr/wiki/doku.php?id=howto:embeding_a_php_source_into_a_windows_executable_file Regards, Gonzalo Adam Zey escribió: D. Dante Lorenso wrote: All, Can anybody give me a pointer on where I might start to learn how to embed Zend2/PHP 5 insi

Re: [PHP] Why does this preg_replace function not work?

2006-05-27 Thread Dave M G
Robin, Dan, Rabin, Thank you all for your advice. You've helped me understand regular expressions a little better, and cleared some some confusion about arrays. I'll be adapting all the code you provided for me needs. Thank you for taking the time to help. -- Dave M G -- PHP General Mailing

Re: [PHP] Including Functions; one file or many?

2006-05-27 Thread tedd
At 4:01 PM +0200 5/27/06, Jochem Maas wrote: tedd wrote: > Name them .inc.php so that they cannot be opened by a webbrowser, thus > giving more information to a potential attacker. As always, there's another side to that augment. If you give them the .php suffix, then they can be ran via a

Re: [PHP] problems with regex

2006-05-27 Thread Merlin
thank you, that worked excellent! Merlin Dave Goodchild schrieb: On 27/05/06, Merlin <[EMAIL PROTECTED]> wrote: Hi there, I am somehow lost when it comes to regex. I am trying to remove ! and ? characters from a string. Could somebody please help me to get a working regex running for that?

Re: [PHP] problems with regex

2006-05-27 Thread Jochem Maas
Merlin wrote: Hi there, I am somehow lost when it comes to regex. I am trying to remove ! and ? characters from a string. Could somebody please help me to get a working regex running for that? I tried: $str = preg_replace('/\!\?\./', ' ', $str); $s = "?!help!?"; echo "--",$s,"--",preg_repl

Re: [PHP] problems with regex

2006-05-27 Thread Dave Goodchild
On 27/05/06, Merlin <[EMAIL PROTECTED]> wrote: Hi there, I am somehow lost when it comes to regex. I am trying to remove ! and ? characters from a string. Could somebody please help me to get a working regex running for that? I tried: $str = preg_replace('/\!\?\./', ' ', $str); How about $s

Re: [PHP] problems with regex

2006-05-27 Thread cajbecu
Merlin wrote: > Hi there, > > I am somehow lost when it comes to regex. I am trying to remove ! and ? > characters from a string. Could somebody please help me to get a working > regex running for that? > > I tried: $str = preg_replace('/\!\?\./', ' ', $str); > > Thank you for any help, > > Mer

Re: [PHP] Including Functions; one file or many?

2006-05-27 Thread Jochem Maas
tedd wrote: > Name them .inc.php so that they cannot be opened by a webbrowser, thus > giving more information to a potential attacker. As always, there's another side to that augment. If you give them the .php suffix, then they can be ran via a browser "as-is" , which may not be something

[PHP] problems with regex

2006-05-27 Thread Merlin
Hi there, I am somehow lost when it comes to regex. I am trying to remove ! and ? characters from a string. Could somebody please help me to get a working regex running for that? I tried: $str = preg_replace('/\!\?\./', ' ', $str); Thank you for any help, Merlin -- PHP General Mailing List

Re: [PHP] Fatal error: Call to undefined function mysql_create_db()

2006-05-27 Thread Mark Sargent
Mark Sargent wrote: Peter Lauri wrote: Have you created a connection to the Server with the correct permissions? Hi All, sorry, meant to post that too, 1 3 $connect=mysql_connect("localhost", "root", "password omitted") or die("Hey, check your server connection."); I get no error for that

Re: [PHP] Fatal error: Call to undefined function mysql_create_db()

2006-05-27 Thread Mark Sargent
Peter Lauri wrote: Have you created a connection to the Server with the correct permissions? Hi All, sorry, meant to post that too, 1 3 $connect=mysql_connect("localhost", "root", "password omitted") or die("Hey, check your server connection."); I get no error for that line. Cheers. Mark S

Re: [PHP] Fatal error: Call to undefined function mysql_create_db()

2006-05-27 Thread Duncan Hill
On Sat, May 27, 2006 11:02, Mark Sargent wrote: > Hi All, > > > I get the following, > > > *Fatal error*: Call to undefined function mysql_create_db() in > */usr/local/apache2/htdocs/createmovie.php* on line 6 Sounds like you don't have the MySQL component of PHP installed. If you're using the pa

RE: [PHP] Fatal error: Call to undefined function mysql_create_db()

2006-05-27 Thread Peter Lauri
Have you created a connection to the Server with the correct permissions? -Original Message- From: Mark Sargent [mailto:[EMAIL PROTECTED] Sent: Saturday, May 27, 2006 5:03 PM To: PHP List Subject: [PHP] Fatal error: Call to undefined function mysql_create_db() Hi All, I get the followin

[PHP] Fatal error: Call to undefined function mysql_create_db()

2006-05-27 Thread Mark Sargent
Hi All, I get the following, *Fatal error*: Call to undefined function mysql_create_db() in */usr/local/apache2/htdocs/createmovie.php* on line 6 for this code, 5 //create the moviesite database 6 mysql_create_db("moviesite") or die(mysql_error()); which is from a tutorial in the book I'm u