Re: [PHP] How to know a requets from web page or client.

2007-05-07 Thread clive
Le Phuoc Canh wrote: How can we know a request from web page( ex : firefox, IE..) or from client( ex : window media, winamp, ...). Please help me ! you need to look at the http request header, you can use the $_SERVER['HTTP_USER_AGENT'] variable to access that. Please note some application

Re: [PHP] How to know a requets from web page or client.

2007-05-07 Thread Jim Lucas
Le Phuoc Canh wrote: Dear all, How can we know a request from web page( ex : firefox, IE..) or from client( ex : window media, winamp, ...). Please help me ! Thanks & Best Regard. Le Phuoc Canh Arrive Techologies Cell Phone : 0902147449 Home Phone : (08)9915349 Email: [EMA

RE: [PHP] mail() only working with php-cli

2007-05-07 Thread Andy B.
Thanks a lot for helping. I found the problem while trying so su to the www-user, where I was immediately told "/bin/bash: permission denied". Rather unusual... The owner of the server has mistakenly changed many permissions in the /(s)bin, /usr/(s)bin directories, so that most of the files were

[PHP] How to know a requets from web page or client.

2007-05-07 Thread Le Phuoc Canh
Dear all, How can we know a request from web page( ex : firefox, IE..) or from client( ex : window media, winamp, ...). Please help me ! Thanks & Best Regard. Le Phuoc Canh Arrive Techologies Cell Phone : 0902147449 Home Phone : (08)9915349 Email: [EMAIL PROTECTED]

[PHP] Solution For Undefined Function mysql_connect()

2007-05-07 Thread Jason Paschal
SOLUTION FOUND! i copied libmysql.dll and php_mysql.dll to my c:\windows\ folder suddenly my script connects. that's all it took. my extension directory is set to C:\PHP in php.ini, but for some reason, placing the dlls in the windows folder did the trick. i searched httpd.conf and php.ini fo

Re: [PHP] PHP4 and SQLite

2007-05-07 Thread Suhas Pharkute
Yep, PDO was one more question that I had and could not find dll for it. Upgrade is an option but there are some custom dlls that we developed for 4.1.1 and do not want to spend time in checking it for higher version. But if it is not possible then I guess we will do that Thx SUhas On 5/7/07,

[PHP] Re: CMS Systems

2007-05-07 Thread itoctopus
I use wordpress, easy, clean, and lots of plugins. Joomla is also good. -- itoctopus - http://www.itoctopus.com ""Joey"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone know of any good open source CMS system? ( content management > system ) > > > > Thanks! > > > Joey >

Re: [PHP] PHP4 and SQLite

2007-05-07 Thread Richard Lynch
On Mon, May 7, 2007 5:29 pm, Suhas Pharkute wrote: > Can someone please point me to a tutorial for PHP4.x.x and SQLite > installation on Windows with Apache web server? > > I searched in Google and PHP mailing list but nothing useful. It seems > like > I am missing php_pdo.dll for 4.1.1 version. F

Re: [PHP] Newbie Question - Form To Email Needed

2007-05-07 Thread Richard Lynch
On Fri, May 4, 2007 9:23 pm, revDAVE wrote: > I have a form on page one - and would like to submit to a second page > in PHP > that could grab the fields and send it out as an e-mail. > > Are there any links that show how do this? http://php.net/faq.php Somewhere in there is a question about proc

Re: [PHP] Why create_element function always return false?

2007-05-07 Thread Richard Lynch
On Fri, May 4, 2007 9:44 pm, Victor wrote: > $doc = domxml_new_doc("1.0"); var_dump($doc); > $node = $doc->create_element("para"); var_dump($node); > $newnode = $doc->append_child($node); var_dump($newnode); > $newnode->set_attribute("align", "left"); > ?> > > I just run the example that i

RE: [PHP] mail() only working with php-cli

2007-05-07 Thread Richard Lynch
On Sat, May 5, 2007 5:04 pm, Andy B. wrote: > Both are exactly the same, as I copied the CLI version into the Apache > Version. Of course I first tested with the original Apache php.ini > before > overwriting it with the CLI version. I'm not quite sure what you are saying here, but the CLI version

Re: [PHP] mail() only working with php-cli

2007-05-07 Thread Richard Lynch
On Sat, May 5, 2007 3:53 pm, Andy B. wrote: > Is there any way to debug the mail() function within PHP4 or PHP5? Check Apache error logs. Check sendmail (or whatever) error logs. > The following code is not working when called from a browser, but it > does > work from the command line: Often poi

Re: [PHP] Feisty Fawn and apt-get

2007-05-07 Thread Richard Lynch
On Sat, May 5, 2007 9:27 pm, Mike Shanley wrote: > > Davi wrote: >> First: use aptitude instead apt-get... =] >> Second: use an debian-list to debian's questions instead an >> php-list... =] >> > Third: Go Feisty!!! Fourth: Go http://www.listentofeist.com/ :-) -- Some people have a "gift" lin

Re: [PHP] Removing commas from number

2007-05-07 Thread Richard Lynch
On Sun, May 6, 2007 10:33 am, Todd Cary wrote: > Thanks to the suggestions, I use number_format($my_number, 2) to > format the > number in an edit field. Now I need to reenter it into MySQL. How > should I use > preg_replace to remove the commas? > > This removes the commas *and* the decimal po

Re: [PHP] losing session variable

2007-05-07 Thread Richard Lynch
On Sun, May 6, 2007 11:29 am, Alain Roger wrote: > Hi, > > I have the following code : > > session_start(); >> $_SESSION['username']=$myusername; >> $_SESSION['Localization'] = $lang; Add this: session_write_close(); before you do header re-direct. >> header("Location: >> https:

Re: [PHP] PHP 5.2.2 - Undefined Function mysql_connect()

2007-05-07 Thread Richard Lynch
Compare what says is REALLY your extension dir with what you think is your extension dir... On Mon, May 7, 2007 6:12 am, Jason Paschal wrote: > I use this setup locally for testing/playing. I recently installed > the > latest and greatest of the AMP collection. > > Apache 2.2.4 > PHP 5.2.2 > MyS

[PHP] PHP4 and SQLite

2007-05-07 Thread Suhas Pharkute
HI, Can someone please point me to a tutorial for PHP4.x.x and SQLite installation on Windows with Apache web server? I searched in Google and PHP mailing list but nothing useful. It seems like I am missing php_pdo.dll for 4.1.1 version. Can someone please help? Thanks in advance, Suhas

Re: [PHP] CMS Systems

2007-05-07 Thread Richard Lynch
On Mon, May 7, 2007 2:46 pm, Joey wrote: > Does anyone know of any good open source CMS system? ( content > management > system ) http://google.com/ knows LOTS of them... :-) There's even one site that lets you try out a bunch of them without doing your own install. Seriously, you're not going

Re: [PHP] CMS Systems

2007-05-07 Thread Daniel Brown
Or, if you want something extensible with a lot of modules, some good suggestions that are well-supported by the community (and even paid integrators, designers, and developers) would be Joomla, postNuke, and others. They're all 100% free and open source for commercial and non-commercial usage

Re: [PHP] CMS Systems

2007-05-07 Thread straderb
My suggestion would be to check out http://www.cmsmatrix.org/ ... Very nice information on differant CMS systems. Jim Lucas wrote .. > Joey wrote: > > Does anyone know of any good open source CMS system? ( content management > > system ) > > > > > > > > Thanks! > > > > > > Joey > > > > >

Re: [PHP] CMS Systems

2007-05-07 Thread Jim Lucas
Joey wrote: Does anyone know of any good open source CMS system? ( content management system ) Thanks! Joey Let me be the first to say. Please search the archives of this mailing list Secondly, http://www.google.com/search?q=php%20content%20management%20system the first link in

Re: [PHP] CMS Systems

2007-05-07 Thread Greg Donald
On 5/7/07, Joey <[EMAIL PROTECTED]> wrote: Does anyone know of any good open source CMS system? ( content management system ) http://www.opensourcecms.com/ -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] CMS Systems

2007-05-07 Thread Davi
Em Segunda 07 Maio 2007 16:46, Joey escreveu: > Does anyone know of any good open source CMS system? ( content management > system ) > XOOPS is a good one... -- Davi Vidal [EMAIL PROTECTED] [EMAIL PROTECTED] -- "Religion, ideology, resources, land, spite, love or "just because"... No matter how

[PHP] CMS Systems

2007-05-07 Thread Joey
Does anyone know of any good open source CMS system? ( content management system ) Thanks! Joey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] losing session variable

2007-05-07 Thread Oscar Gosdinski
On 5/6/07, Alain Roger <[EMAIL PROTECTED]> wrote: if i check before header command what is the value of $_SESSION['username'], i get the right value. however, if i place on the first line of welcome.php file the following code : echo "1. Before session"; > session_start(); > echo"Username : ".$_

Re: [PHP] Re: Send binary files with gzip encoding disabled

2007-05-07 Thread strawks
On ven, 2007-05-04 at 17:51 +0200, Emmanuel Raulo-Kumagai wrote: > I have about the same code except that I use "application/x-zip-archive" > for the content type and it just works. > There's no ob_* stuff in my code also. application/x-zip-archive works (actually anything but application/zip work

Re: [PHP] Blocking the direct download of a file

2007-05-07 Thread Stut
Jon Anderson wrote: Greg Donald wrote: There will be legitimate requests that will fail since not all browsers send a referer. How many browsers out there that support the Java plug-in will not support referrers? Besides, the simple solution to that problem is just check for a non-existant

Re: [PHP] Blocking the direct download of a file

2007-05-07 Thread Jon Anderson
Greg Donald wrote: There will be legitimate requests that will fail since not all browsers send a referer. How many browsers out there that support the Java plug-in will not support referrers? Besides, the simple solution to that problem is just check for a non-existant referrer. If the bro

Re: [PHP] Blocking the direct download of a file

2007-05-07 Thread Greg Donald
On 5/7/07, Jon Anderson <[EMAIL PROTECTED]> wrote: In the context, I think the only thing that matters is that other people don't link to his jar file from other websites. There will be legitimate requests that will fail since not all browsers send a referer. -- Greg Donald http://destiney.c

Re: [PHP] Blocking the direct download of a file

2007-05-07 Thread Jon Anderson
Greg Donald wrote: $_SERVER['HTTP_REFERER'] is unreliable. http://us2.php.net/manual/en/reserved.variables.php#reserved.variables.server So? In the context, I think the only thing that matters is that other people don't link to his jar file from other websites. jon -- PHP General Mailin

Re: [PHP] Blocking the direct download of a file

2007-05-07 Thread Greg Donald
On 5/7/07, Jon Anderson <[EMAIL PROTECTED]> wrote: if (strpos($_SERVER['HTTP_REFERER'],'http://www.myweb.com/') === 0) { header('Content-Type: application/java-archive'); readfile('/path/to/real/jarfile.jar'); exit(0); } $_SERVER['HTTP_REFERER'] is unreliable. http://us2.php.net/m

Re: [PHP] Blocking the direct download of a file

2007-05-07 Thread Jon Anderson
pw wrote: I have a phtml file that contains a reference to a java archive (jar) file. I only want the archive used in the context of a specific html page. I don't want the archive to be downloaded directly. I can think of two easy ways to do this. If you're using Apache, you could fiddle wit

Re: [PHP] Blocking the direct download of a file

2007-05-07 Thread Davi
Em Segunda 07 Maio 2007 12:36, pw escreveu: > $referrer=$_SERVER['HTTP_REFERRER']; > if(strcmp($referrer,"http://www.myweb.com/index.phtml";)==0) > { > > header("Location: ./primary.jar"); > } > else > { > header("Location: ./secondary.jar"); > }

[PHP] Blocking the direct download of a file

2007-05-07 Thread pw
Hello, I have a phtml file that contains a reference to a java archive (jar) file. I only want the archive used in the context of a specific html page. I don't want the archive to be downloaded directly. I thought, at first, I could just use a php page as my jar reference: I would

Re: [PHP] PHP 5.2.2 - Undefined Function mysql_connect()

2007-05-07 Thread Davi
Em Segunda 07 Maio 2007 09:37, vocĂȘ escreveu: > I FOUND THE SOLUTION: > > i copied libmysql.dll and php_mysql.dll to my c:\windows\ folder > > suddenly my script connects. that's all it took. > > thank you for taking the time to help. maybe this info can help you or > someone you know. > Sure! =

Re: [PHP] PHP 5.2.2 - Undefined Function mysql_connect()

2007-05-07 Thread Davi
Em Segunda 07 Maio 2007 09:03, Jason Paschal escreveu: > thank you for responding. > > phpinfo shows that it is finding the correct file: > > Loaded Configuration File: C:\PHP\php.ini > > that is the correct file with the correct settings. > > i renamed it and phpinfo showed (none). i set it back

[PHP] Re: PHP 5.2.2 - Undefined Function mysql_connect()

2007-05-07 Thread zerof
Jason Paschal escreveu: I use this setup locally for testing/playing. I recently installed the latest and greatest of the AMP collection. Apache 2.2.4 PHP 5.2.2 MySQL 5.0.37 Apache and PHP work fine together, but I wanted to hook it up to a local test database, so I installed MySQL. In php.i

Re: [PHP] PHP 5.2.2 - Undefined Function mysql_connect()

2007-05-07 Thread Davi
Em Segunda 07 Maio 2007 08:12, Jason Paschal escreveu: > I use this setup locally for testing/playing. I recently installed the > latest and greatest of the AMP collection. > > Apache 2.2.4 > PHP 5.2.2 > MySQL 5.0.37 > > Apache and PHP work fine together, but I wanted to hook it up to a local > te

[PHP] PHP 5.2.2 - Undefined Function mysql_connect()

2007-05-07 Thread Jason Paschal
I use this setup locally for testing/playing. I recently installed the latest and greatest of the AMP collection. Apache 2.2.4 PHP 5.2.2 MySQL 5.0.37 Apache and PHP work fine together, but I wanted to hook it up to a local test database, so I installed MySQL. In php.ini, i have: ; Directory