Jump to content

wildteen88

Staff Alumni
  • Posts

    10,480
  • Joined

  • Last visited

    Never

Everything posted by wildteen88

  1. If your links are like pagename.html?var=value&foo=bar etc then you need to tell mod_rewrite to pass on the query string by using the QSA flag
  2. Short open tags are not enabled by default on WAMP, you can enable this setting from then PHP settings tray menu. It is recommended to use full PHP tags though. However to view phpinfo on wamp you can go to index.php?info=1 (provided you keep the default index.php) Regarding the screenshot (which isnt very clear) this appears to be more of a HTML/CSS issue. Your stylesheet is not being loaded from the looks of things. This doesnt seem to be a php issue.
  3. Where did you save your php file to? I believe with XAMPP on linux your files should be saved in /opt/xampp/htdocs/
  4. Or here by clicking the Reply button (located at the the top or bottom of the thread) and selecting the Addition Options link to upload your screenshot.
  5. How are you saving your files? Make sure you're saving them as filename.php Can we see a screenshot of your problem?
  6. Are you sure that suckerfish.php actually exists in the following directory path /hsphere/local/home/seshamaru/vanadielprofiles.com/templates/my_blog_v2/
  7. If the extension has been compiled then you should be able to add Within your php.ini However you're may be better off asking your webhost if is possible for this extension to added.
  8. if you're using Apache you can use mod_rewrite to direct all requests to index.php Add the following to a file called .htaccess and place it in the directory where your index.php is located to. rewriteEngine On rewriteRule (.*) index.php/$1 When going yoursite.com/whatever it will actually call index.php/whatever
  9. Looking at your url you need to be going to http://localhost/mystuffchris/helloWorld.php
  10. You need to tell mod_rewrite to pass on the query string. RewriteRule file file\.php [L,QSA]
  11. I guess you have copied and pasted the code from somewhere. All instances of > need to be changed to '>' (without then quotes) > is invalid PHP syntax.
  12. As you have XAMPP installed you need to be going to http://localhost to run your PHP scripts. Loading your PHP scripts directly into the web browser will not work.
  13. Remove the single quotes from around $sess Variables do not get parsed within single quotes.
  14. You need to look in your servers error log to see why you are receiving the 500 Internal Server Error.
  15. Seems what you're trying to do is not possible. You'll have to get in contact with the site owner.
  16. Are your sure there is a field called name in your catagories table?
  17. Where are editing the line link to. We need to see more code than you have posted
  18. What is the output of that code? Where should the user go when they click the link. You need to be more specific.
  19. I'd do it this way. $page = (isset($_GET['page']) ? $_GET['page'] : ''); switch($page) { case 'news': include 'news.php'; break; default: include 'news.php'; break; }
  20. Is anything being displayed in America1.php? Have you made sure session_start() is the first line in Americal1.php Your if statements are fine, however it'll be better for to use an if/elseif statement or even a switch
  21. modrewrite cannot rewrite links within your html. You'll need to update your links yourself
  22. 1. You should be using move_upload_file. 2. No not possible. Any files uploaded to the server cannot be executed, unless they find a security hole in your site which allowed them to run malicious code.
  23. The period symbol ( . ) is for concatenation.
  24. You saying when echo'ing the variable $arr[2] you get Array as the output? In that case $arr[2] contains an array. To see the contents of an array you should use print_r. Like so echo '<pre>'. print_r($arr[2], true) .'</pre>'; Whats the output?
  25. I assume the variable named $h holds the current hour. How are you currently working out the hour?
×
×
  • 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.