Jump to content

wildteen88

Staff Alumni
  • Posts

    10,480
  • Joined

  • Last visited

    Never

Everything posted by wildteen88

  1. Voldemort said 127.0.0.1 didn't work:
  2. Turn a setting called display_errors to On and ensure that error_reporting is to to E_ALL in the php.ini Save the php.ini and restart Apache. Re run that code. if you get an error like Call to undefined function mysqli_connect then please read this FAQ. If you don't get any think like that then post all error messages here in full.
  3. You cannot change from localhost unless you change the alias in the host file. localhost is an alias of 127.0.0.1 There is not a setting in Apache that changes this.
  4. Could you post some example script of how you grab the page variable from the url. To get the page variable you should use $_GET['page'], or if you are using PHP4.1 or less you use $page
  5. That will be controlled by your server. For example if you have Apache installed you'll have a line like this: AddType application/x-httpd-php .php Thats line tells the server to treat .php files as PHP. If you want to more extensions say .html you just add it in, ie: AddType application/x-httpd-php .php .html save the httpd.conf and restart Apache. if you add php code in .html files it will be parsed. With other servers it may be different.
  6. What do you mean by cannot view. How are you grabbing the variable from the url? Also you are using a rather outdated version of PHP. Consider upgrading PHP to PHP4.4.x
  7. Set the content type of the email to HTML by adding the following header with your email: Content-type: text\html mail($to, $subject, $message, "Content-Type: text/html");
  8. is_numeric checks whether the given variables holds a numeric value, weather a number is held within a string or not. The following is considered numeric: '123' "123" 123 -123 1.23 If want to check that the variable holds an integer, then use is_int. is_int considers the following as integers: 123 -123
  9. If I was yelling at you I WOULD TYPE IN CAPS. I was just informing you of the rules.
  10. use header refresh: header("refresh:10; url=http://www.google.com"); What that will do is wait 10secounds then redirect the user to google. change goole's url to your url and place the code where you need it. However make sure there is no output when you call this function. Only send output after you have called it.
  11. I do not normally suggest using output buffering, as most header errors can sorted out easily. However in your case I think output buffering would better due to your set up. Header errors are really easy to understand. Its just knowing what PHP is reporting to you. Header errors contain two vital bits of information. The first clue is where the output started/ended (highlighted in red below) and the second clue is where the error has occurred (highlighted in blue below): Most people don't understand or miss out the first clue (red) and go for the second clue (blue). That first clue is very important.
  12. Use output buffering in your case. Add ob_start(); after the opening php tag (<?php) in create_kegmember.php and ob_end_flush() before the closing php tag at the end of the script.
  13. if you have installed Apache then you place your PHP files in the htdocs folder. Then you go to http://localhost to run your PHP files. You don't use the command line. You only use the command if you don't have a httpd server configured/installed. If you want to run your php scripts in the command line. Then open up the command line by going to Start > Rum > Type cmd > OK The command line window will now appear. Now to change directory simply type cd followed by a space and then your new path. Eg: cd ../../php OR cd C:\php Now press enter and it should now read: C:\php> The ../ means goes one higher in directory tree. How come you have two installation of PHP? Only one will do. Delete the one your are not using.
  14. If you want someone to modify the script for you then post in the Freelance forum. The PHP help forum is for getting help with sorting problems out with your scripts, or asking questions about PHP etc. The PHP Help forum is not for getting someone else to do something for you.
  15. If you are going to use a forum then don't go for phpBB. Unless you want to patch your forum every week or so. I would suggest using SMF (what we use). It is very good and easy to use. Another forum I would suggest is called MyBB.
  16. What version of PHP are you using. MySQL Improved is only available for PHP5 or greater. Also ensure that extension exists in the extension folder and that it was built for the version of PHP you have. You can check the build of the extension by right clicking the file and selecting properties form the content menu and selecting the version tab. File Version should match the exact version of PHP you have installed. If you have the standard mysql extension enabled then themysql improved extension should also work as both extensions use the same external library (libmysql.dll)
  17. yes bbcode is done by regular expressions (regex for short). When doing BBCode parsing don't parse the BBCodes when it goes into the database. Instead only parse when you go to display the data on the web page. This way it makes editing the content whole lot easier. If you parsed the BBCodes when you inserted it in to the database then when you go to edit it you will have convert the HTML back in to BBCode format in order to edit it. It is always best to put data in to the database in it's rawest format. Also you should only format the data how you want it when you go to display it.
  18. Have a read of this FAQ. Note that enables the standard mysql extension. For mysqli replace php_mysql.dll with php_mysqli.dll Also I will move this to the Installation board.
  19. tabs should share the same session. So if someone goes to your site and opens two tabs, lets call these tabA and tabB If the user logins on in tabA, when they go to tabB and refresh the page or click on links then they should be logged in. If they logout in tabA then they should be logged out in tabB, only if they do a refresh/click a link on the page. However this behaviour depends on how you track users being logged in Every page that should be protected should have some form of checking whether the user is logged in. An easy way of tracking users is sessions.
  20. no. HTML is client side. In order to use a database you will need to use a server side language to access it, example PHP, ASP, JSP, CGI/Perl etc
  21. When you changed the port did you append the port number after localhost, for example you changed the port Apache listens on to 8080. The url should be: http://localhost:8080 Also make sure any changes you make to the httpd.conf file you restart Apache.
  22. Look into imap mail for sending/receiving mail from a protected server. I don't know whether this may help but have a search for PHPMailer
  23. Attach your httpd.conf too. So I can have a look how Apache is configured.
  24. Are you using *nix based OS? Earlier you where asking about WAMP, which is for Windows. Now you have a problem with sockets. sockets don't exist on windows. They are part of *nix OS's.
  25. PHP shouldn't have any effect on how browsers render a website. It runs on the server and not the client. It most probably an HTML issue and not a PHP issue.
×
×
  • 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.