Jump to content

alen

Members
  • Posts

    64
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

alen's Achievements

Member

Member (2/5)

0

Reputation

  1. A quick question; what mysql version should I use with Apache2.0.x and PHP4?
  2. I'm trying to setup apache2 with an old version php. But there's this one error that I can't seem to figure out. httpd.exe: Syntax error on line 486 of C:/Server/apache/conf/httpd.conf: Cannot load C:/Server/php/sapi/php4apache2.dll into server: The module could not be found. I'm 110% certain that php4apache2.dll is in that directory. What could be wrong?
  3. Could you show me an example? Thanks! I'm new to this
  4. I made this simple guestbook script which stores everything in a file. I would have used a sql database, but I don't have one. Anyway .. I need to sort the entries. The newest entry comes first. You can find my script at; http://anigma.sitees.com/Guestbook/index.phps http://anigma.sitees.com/Guestbook/lagre.phps (lagre=save) and you can test my script here; http://anigma.sitees.com/Gjestebok/index.php Any idea on what I can do? I know how to sort it with MySQL, but I think it's not quite the same.
  5. alen

    Include

    <?php error_reporting(0); $filnavn = $_GET['var']; $filendelse = '.php'; if (!$filnavn) { $filnavn = 'default'; } $filnavn = 'include'; if (file_exists($filnavn)) { include $filnavn . $filendelse; } else { include "404.php"; } if (!eregi("^((.*)/)", $filnavn)) { include $filnavn . $filendelse; } else { include "404.php"; } ?> This must be wrong. Couldn't you just help me out a little. Give me a jumpstart?
  6. alen

    Include

    What about this, <?php error_reporting(0); $filnavn = $_GET['var']; $filendelse = '.php'; if (!$filnavn) { $filnavn = 'default'; } if (!eregi("^((.*)/)", $filnavn)) { include $filnavn . $filendelse; } else { include "404.php"; } ?> It works fine, but when I go to index.php?var=unknownpage I doesn't include 404.php. How can I use file_exists() here? I use if (!eregi("^((.*)/)", $filnavn)) so people can't access other folders.
  7. alen

    Include

    This is my include script: <?PHP $incpath = "include"; $default = "index"; $getarray = "side"; $filendelse = "php"; if (isset($_GET[$getarray])) { include_once ("$incpath/".$_GET[$getarray].".$filendelse"); } else { include_once ("$incpath/$default.$filendelse"); } ?> It works like this, I have a index.php file in the include folder and a index.php file in the public_html folder. When I enter localhost I get the content of index.php in the include folder since index.php in the public_html folder includes the index file in the include folder. And I have some other links in the include folder too, and I can easily change to another link with http://localhost/index.php?id=name - But let's say I don't have a file named hello.php in the include folder. How can I make the script automatically open a file called 404.php then? Best regards Your friendly neighbour Alen!
  8. I'm so stupid. I'm sorry for all the troubles, but I figured it out. Thanks for the effort.
  9. Nevermind the id then, index.php?side=test&side=whatever - This takes me to not the test page, but the whatever page.
  10. Hi there! I have this simple include script, <?PHP $incpath = "include"; $default = "index"; $getarray = "side"; $filendelse = "php"; if (isset($_GET[$getarray])) { include_once ("$incpath/".$_GET[$getarray].".$filendelse"); } else { include_once ("$incpath/$default.$filendelse"); } ?> Well, you can probably see what it does. The links are as simple as this, index.php?side=page - how can I make it be something like this, index.php?side=test&id=whatever or something like that... How can I play with this script? Are there any guides or something on the net which explains include basics? And I donæt mean php.net
  11. How can I make a php page redirect to another website after.. let's say 3 seconds? Best regards alen
  12. sorry about that... http://anigma.sitees.com/Default.phps
  13. I have this include script... But I don't know why I keep getting this up: Notice: Undefined index: id in C:\home\usr\haslum\Default.php on line 7 What should I do?
×
×
  • 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.