Re: [PHP] Compatiabilty issues
Will Have Linux installed on a 64 bit machine effect Apaches functionality? On Wed, Dec 2, 2009 at 6:20 PM, Shawn McKenzie nos...@mckenzies.net wrote: Ashley Sheridan wrote: On Wed, 2009-12-02 at 12:17 +0100, Julian Muscat Doublesin wrote: Sorry about the reply to all. the htaccess files worked correctly on a wamp setup I had. All this happened once I did the big move to apache. On Wed, Dec 2, 2009 at 12:10 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Wed, 2009-12-02 at 12:10 +0100, Julian Muscat Doublesin wrote: I setup apache myself. That I'm sure of. I had a look at the php info and saw that mod_write in enabled. I checked the conf file and made sure that the AllowOverride is set to All. On Wed, Dec 2, 2009 at 11:55 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2009-12-02 at 11:55 +0100, Julian Muscat Doublesin wrote: is this the issue. On Wed, Dec 2, 2009 at 11:55 AM, Julian Muscat Doublesin opensourc...@gmail.com wrote: I am runnning both IIS and Apache. The php webites are hosted on Apacahe. On Wed, Dec 2, 2009 at 11:41 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2009-12-02 at 11:42 +0100, Julian Muscat Doublesin wrote: Yes - running IIS 7. On Wed, Dec 2, 2009 at 11:27 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2009-12-02 at 10:27 +0100, Julian Muscat Doublesin wrote: Hello Everyone, I am having trouble with the mod_rewrite. This is not working on windows 64bit. I am also having trouble with the directory password protection. However thse bot work perfectly on my UNIX Mac. From my experince I can see that this is due to file system compatibility. Can anyone confirm this. You would be of greate help as I am going through HELL right now. Can any suggest the best Unix or Linx OS for hosting phph websites and MySQL. Thank you very much in advanace. By any chance, are you using IIS on your Windows machine? Pretty much most hosting companies offer Linux web-hosting. My advice would be to try and use a company based in the same country as you are, because it's nice to be able to contact them during your hours when something goes wrong. And be ready to accept that things may go wrong at some point. Thanks, Ash http://www.ashleysheridan.co.uk That is why mod_rewrite isn't working! IIS doesn't support that. It has something else instead, by a name I forget just now. Afaik, you have to purchase the support for this other bit as an extra module though. Thanks, Ash http://www.ashleysheridan.co.uk Are you sure the PHP ones are running under Apache? Just to check, see what you get in the $_SERVER array. Also, have you checked to see if mod_rewrite is enabled in the httpd.conf file? Thanks, Ash http://www.ashleysheridan.co.uk OK, what does your .htaccess file look like? Also, have you named it correctly? It starts with a period (.) character, which Windows might sometimes complain about. PS, don't forget to hit reply to all, as the last few messages I keep having to copy the list back in! Thanks, Ash http://www.ashleysheridan.co.uk Erm, Wamp is Apache! Well, have you done other things in the .htaccess that are failing, causing the whole thing to fail? Or maybe not installed/enabled mod_rewrite? -- Thanks! -Shawn http://www.spidean.com
Re: [PHP] PHP APACHE SAVE AS
Hello Everyone, I solved the mysql issue too. thanks for your help. I had to change the root the the extnsion directory as it was set to the linux style. Also found out that for windows it is always best to use C:/ instead of C:\ This works in some situations and in others it does not. On Fri, Nov 27, 2009 at 10:02 PM, Bastien Koert phps...@gmail.com wrote: On Fri, Nov 27, 2009 at 11:20 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2009-11-27 at 17:10 +0100, Julian Muscat Doublesin wrote: Hi, Just to update every one. This solution below worked perfectly. Thank you very much Jonathan. I have one other question though. Can anyone help me on the folowing. Database Error: Unable to connect to the database:The MySQL adapter mysql is not available. Thank you Julian On Fri, Nov 27, 2009 at 1:34 PM, Jonathan Tapicer tapi...@gmail.com wrote: You are probably missing something like this in the apache httpd.conf: LoadModule php5_module c:/PHP/php5apache2_2.dll PHPIniDir c:/PHP/php.ini AddType application/x-httpd-php .php DirectoryIndex index.php index.html index.html.var Regards, Jonathan On Fri, Nov 27, 2009 at 6:24 AM, Julian Muscat Doublesin opensourc...@gmail.com wrote: Hello Everyone, I have installed PHP, Apache and MySQL on a Windows 7 machine :(. I would prefer linux or unix :) These have been setup and working correctly. However when I access a php page. I get the save as dialog. Has anyone ever experinced such a situation. Can anyone please advise. Thank you very much in advance. Julian It sounds like you've installed both PHP and MySQL, but not the php-mysql module, which allows PHP to talk to the database. Depending on how you installed PHP, there could be a variety of ways to fix this. Thanks, Ash http://www.ashleysheridan.co.uk Try opening the php.ini file and uncommenting the line ;extension = php_mysql.dll; (by uncommenting i mean remove the first semi-colon). save the file and restart the apache service -- Bastien Cat, the other other white meat
[PHP] Compatiabilty issues
Hello Everyone, I am having trouble with the mod_rewrite. This is not working on windows 64bit. I am also having trouble with the directory password protection. However thse bot work perfectly on my UNIX Mac. From my experince I can see that this is due to file system compatibility. Can anyone confirm this. You would be of greate help as I am going through HELL right now. Can any suggest the best Unix or Linx OS for hosting phph websites and MySQL. Thank you very much in advanace.
Re: [PHP] Compatiabilty issues
Sorry about the reply to all. the htaccess files worked correctly on a wamp setup I had. All this happened once I did the big move to apache. On Wed, Dec 2, 2009 at 12:10 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Wed, 2009-12-02 at 12:10 +0100, Julian Muscat Doublesin wrote: I setup apache myself. That I'm sure of. I had a look at the php info and saw that mod_write in enabled. I checked the conf file and made sure that the AllowOverride is set to All. On Wed, Dec 2, 2009 at 11:55 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2009-12-02 at 11:55 +0100, Julian Muscat Doublesin wrote: is this the issue. On Wed, Dec 2, 2009 at 11:55 AM, Julian Muscat Doublesin opensourc...@gmail.com wrote: I am runnning both IIS and Apache. The php webites are hosted on Apacahe. On Wed, Dec 2, 2009 at 11:41 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2009-12-02 at 11:42 +0100, Julian Muscat Doublesin wrote: Yes - running IIS 7. On Wed, Dec 2, 2009 at 11:27 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2009-12-02 at 10:27 +0100, Julian Muscat Doublesin wrote: Hello Everyone, I am having trouble with the mod_rewrite. This is not working on windows 64bit. I am also having trouble with the directory password protection. However thse bot work perfectly on my UNIX Mac. From my experince I can see that this is due to file system compatibility. Can anyone confirm this. You would be of greate help as I am going through HELL right now. Can any suggest the best Unix or Linx OS for hosting phph websites and MySQL. Thank you very much in advanace. By any chance, are you using IIS on your Windows machine? Pretty much most hosting companies offer Linux web-hosting. My advice would be to try and use a company based in the same country as you are, because it's nice to be able to contact them during your hours when something goes wrong. And be ready to accept that things may go wrong at some point. Thanks, Ash http://www.ashleysheridan.co.uk That is why mod_rewrite isn't working! IIS doesn't support that. It has something else instead, by a name I forget just now. Afaik, you have to purchase the support for this other bit as an extra module though. Thanks, Ash http://www.ashleysheridan.co.uk Are you sure the PHP ones are running under Apache? Just to check, see what you get in the $_SERVER array. Also, have you checked to see if mod_rewrite is enabled in the httpd.conf file? Thanks, Ash http://www.ashleysheridan.co.uk OK, what does your .htaccess file look like? Also, have you named it correctly? It starts with a period (.) character, which Windows might sometimes complain about. PS, don't forget to hit reply to all, as the last few messages I keep having to copy the list back in! Thanks, Ash http://www.ashleysheridan.co.uk
[PHP] PHP APACHE SAVE AS
Hello Everyone, I have installed PHP, Apache and MySQL on a Windows 7 machine :(. I would prefer linux or unix :) These have been setup and working correctly. However when I access a php page. I get the save as dialog. Has anyone ever experinced such a situation. Can anyone please advise. Thank you very much in advance. Julian
Re: [PHP] PHP APACHE SAVE AS
Hi, Just to update every one. This solution below worked perfectly. Thank you very much Jonathan. I have one other question though. Can anyone help me on the folowing. Database Error: Unable to connect to the database:The MySQL adapter mysql is not available. Thank you Julian On Fri, Nov 27, 2009 at 1:34 PM, Jonathan Tapicer tapi...@gmail.com wrote: You are probably missing something like this in the apache httpd.conf: LoadModule php5_module c:/PHP/php5apache2_2.dll PHPIniDir c:/PHP/php.ini AddType application/x-httpd-php .php DirectoryIndex index.php index.html index.html.var Regards, Jonathan On Fri, Nov 27, 2009 at 6:24 AM, Julian Muscat Doublesin opensourc...@gmail.com wrote: Hello Everyone, I have installed PHP, Apache and MySQL on a Windows 7 machine :(. I would prefer linux or unix :) These have been setup and working correctly. However when I access a php page. I get the save as dialog. Has anyone ever experinced such a situation. Can anyone please advise. Thank you very much in advance. Julian
[PHP] parse_str() expects parameter 1 to be string, array given
Hello* *Everyone, I am geetting the error below. Can you please guide me on a fix. It is working on the live site but not on local server. Has anyone ever experinced this error before. * Warning*: parse_str() expects parameter 1 to be string, array given**
[PHP] Include Paths
I had a problem with the include and require paths when using AJAX. This I have solved by using the document root. However since doing so I am experiencing performance issues. Loading 20 records has suddenly turned into something of a matter of a minute rather then seconds. Has anyone ever experienced such an issue? Can anyone please advise? Thanks
[PHP] PHP Mail Function
Hello Everyone, I have written an e-mail function that sends e-mail to my domain that forwards it to a gmail account. When I use the gmail address directly it works fine. When I use my mail domain i don't get anything. Has anyone experienced this? Can anyone give me some advice? Thanks in advance Julian
[PHP] PHP, OOP and AJAX
Update. Hello Everyone, First of all, thank you all for your input. I ran a sinmple test using the suggestions you gave me and and require_once. Using firebug to test the output, I got an internal server error. I found out what the problem was. What I am doing is I have classes which represent the objects, another class containing the functions. From the function class I create an instance of each object, manipulate the information, return the HTML result. Finally I have a runner class that creates an instance of the function class, calls the function required and outputs the information. What the problem was for some reason I was did not create an instance of the function class, just was calling the function. Well by creating the runner class I solved the problem. Thanks all for your help. Regards Julian
[PHP] PHP, OOP and AJAX
Hi Everyone, This is the first time that I am posting in the PHP forum, so hope that I am osting in the right place. I would like to say that before submitting to this forum I have done some research looking for a solution without success. I had been programming in ASP.NET for years using Object Oriented Princeliness but decided to walk away from that. I am now researching and specialising in the open source world. I have started to develop a project using MySQL, PHP and OOP. So far I have succeed. However I got stuck once I started implement AJAX using the AJAX tutorial from w3schools.com. What I have discovered is: for some reason when you call a file that requires other fies using the REQUIRE or INCLUDE it just does not work. I can conform this as I have tested with out the the functions. Has anyone ever meet such a situation can you give me some feedback please. Thank you very much in advance for your support. Regards Julian