Jump to content

Drew_13

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Drew_13's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hey, i have a newb question about a php environment. i set up a file called html.inc, and i am trying to put multiple functions in it, to use on my index page. however i keep getting an error. here's what my html.inc looks like: <? /* * Created on Feb 21, 2008 * */ function header() { ?> <html> <head> </head> <body> <? } function footer() { ?> </body> </html> <? } ?> and this is what i have regarding this file in my index.php: <?php require("include/html.inc"); header(1); footer(); ?> and it gives me this error: Fatal error: Call to undefined function footer() in C:\Program Files\php_workspace\index.php on line 9 i would like to be able to use more than even just two functions in this file, and perhaps have other include files in the future. do you know what would cause this error? thanks alot!
  2. i am getting this error: <OS 10048>Only one usage of each socket address <protocol/network address/port> is normally permitted.  : make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down unable to open logs apache displays this error and then shuts down
  3. my extension_dir is correct and apache will still not restart
  4. how should i set up my extension_dir?  right now it points to my PHP/ext
  5. and yea now mysql is giving me trouble.  i really am i newbie . .. .  i installed mysql and copied libmysql.dll from my php folder to system32.  then i removed the ";" from extension=php_mysql.dll, and extension=php_mbstring.dll in my php.ini file.  and now my apache wont restart . . . does anyone know what i have missed? thanks!
  6. thanks for the help, this is all i added under addtype: ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php .php5 Action application/x-httpd-php "/php/php-cgi.exe" SetEnv PHPRC "C:/php"
  7. I have set up PHP 5.2 and Apache 2.0 on my comp, as localhost.  I set up my httpd.conf file in Apache to point to a folder for php files. I added this folder to my php.ini file.  Basically when I go to http://localhost my browser still displays the contents of my Apache2/htdocs file.  There is one php file in there, however it is trying to open as a Microsoft PictureIt! file.  When I load http://localhost it says that Apache 2.0 and PHP 5.2 are running properly.  i have been through two walkthroughs now on how to make this work neither have provided proper set up steps.  Any help would be greatly apprectiated!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.