Posts tagged server
WHY CAN’T I RUN AND LEARN PHP ON MAC 10.6.6 APACHE SERVER?
Apr 22nd
Question by Insomnia:
Why cannot I run and learn PHP on Mac 10.6.6 Apache server?
My iMac I recently purchased runs Mac OS X 10.6.6. That version comes pre-installed with Apache server and can be enabled to run PHP. I followed the on the web instructions (They’re all the same for Mac OS 10.6.6). I installed XCODE from the Mac 10.6.6 install CD. I opened httpd.conf and ensured the PHP module line of code was not commented out. Both PHP 4 and PHP 5 lines of code aren’t commented out. That means PHP is ready to begin running on my Apache server. I then went to Web Sharing and clicked on my personal Web address and lo and behold, it ran a default script. I typed up a info.php file like a few different tutorials have told me and viewed the file on my computer’s Web address. It displayed raw PHP code that I had typed in that file. What is up with that? Why doesn’t my PHP code run, but instead, display raw PHP code?
All I want to do is see the results of PHP codes I type. That is the goal. If my Mac can do that, then my goal is to make my Mac do that. Can anyone help me solve this issue?
Is there a way to put an address bar I can type an address into on the top of the Finder window? I have to see where this /etc/apache2/httpd.conf file is that Web sites keep informing me of and I must ensure that I am editing the correct httpd.conf and not a phantom file. There is no reason in the world why PHP would not be enabled from those changes I made unless I did not edit the correct file.
And why are PORT files so difficult to search for?
I tried XAMP already and then deleted it because I do not want to run my Web server from third-party software when I complete my site on down the line. I’d rather do it correctly from the get-go. Perhaps that will have to wait for another day as a last resort. I can sacrifice another day to do that.
Germann, PORT files are the critical system files that run the OS.
MAMP actually advocates that I set up Apache server on my Mac without the use of MAMP if I am going to use it as my Web server.
Read More >>
CAN ANYONE GIVE ME A SCRIPT HTML CODE TO DISPLAY SERVER FILES ON SITE?
Feb 9th
Question by evilflame.rulz:
Can anyone give me a script HTML code to display server files on site?
i use 000webhost and i want it to display whatever is in a certain folder in the server. i use this so that files uploaded from home can be accessed from laptop without needing to login to net2ftp. and just to let u know…i have password protection on site so i will not get spammed with files and nobody will get mine
Read More >>
IS THERE A WAY TO STRIP ADS FROM A WEBPABE BY USING EITHER SERVER SIDE OR CLIENT SIDE SCRIPTING?
Jan 26th
Question by Jay:
Is there a way to strip ads from a webpabe by using either server side or client side scripting?
I am working with someone that needs a specific site blocked killingtime.com… They need it blocked from both search results and from directly typing in the address… I just had an idea though to try and find a way to strip the ads out of pages… This isnt to mess people out of revenues via the web but to keep younger children from seeing porn on the side and top of this site… Any help would be greatly appreciated…
Read More >>
CAN A SERVER (USING PHP) HANDLE THINGS FOR PLAYERS WITHOUT ANYONE BEING ON THE WEBSITE?
Nov 15th

Question by tobbe_hunter:
Can a server (using php) handle things for players without anyone being on the website?
We’re using php. We wonder if we can set a timer to like 30 minutes, and then the server will run a php script once the timer runs out, even if there are no one on the site to load pages.(We’re making a game like travian and wondering how to make the attacks like they are in travian)
Read More >>
HELP WITH SCRIPT. GETTING ERROR ” CAN’T CONNECT TO MYSQL SERVER ON ‘MYSQLDB’ (111). CAN YOU HELP?
Nov 28th
Question by bkrue514:
Help with script. Getting error ” Cannot connect to MySQL server on ‘Mysqldb’ (111). Can you help?
I am trying to get this php script loaded. It is one for buying words.
For some reason when I add a word in the /admin then it states “Can’t connect to MySQL server on ‘mysqldb’ (111)”
I have no clue what that means. Another weird thing is that I changed the foote and header, and it is changed in the main site, but when I go to /admin then it all looks the way it did when I uploaded it. Is something messed up?
Here is what the db looks like
< ?
$dbuser = "user";
$dbpass = "password";
$dbname = "buymeaword";
$hostname = "localhost";
$adminu = "user";
$adminp = "password";
$adminu = "user";
$adminp = "password";
$notify_url = "http://www.midmichiganads.com/bmaw/admin"; //where ipn_res.php is
$notify_url2 = "http://www.midmichiganads.com/bmaw/admin"; //where ipn_res2.php is
$return_page = "http://www.midmichiganads.com/"; //the main site url
$my_paypal = "@yahoo.com"; //your primary paypal address
$my_error = "@yahoo.com"; //the email where notifications will be send to
$adsense_pub="pub-0999107265272012";
$affid="395"; //your affiliate ID to promote Purchase me a Word script - check the user's guide to see how you can get this affiliate ID
$money_currency = "USD"; // USD, GBP, JPY, CAD, EUR
mysql_connect(localhost,user,password);
mysql_select_db(buymeaword);
?>
Obviously my username and password are not user/password,but is there anything wrong with this? The bottom of the thing is:
“mysql_select_db(buymeaword)”
and my error is :
“Can’t connect to MySQL server on ‘mysqldb’ (111)”
they both have “mysqldb” in them. Not sure if this helps or not. If you do not know then do not worry about it. I am just trying to figure out how to add words.
the site is www.midmichiganads.com/bmaw
Read More >>








