• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Recent content by PHPForever

  1. P

    php cross script data questions

    I want to know if there is a way to share data with multiple PHP scripts without using sessions or files? I'm trying to create a global table (in memory) that any PHP script can modify and lookup. To do that, I obviously need a script that is constantly running. Now I though I can use a...
  2. P

    Apache 2 vhost question.

    Right now I feel quite stupid... turning red. Thz for the info... I don't believe I overlooked that detail in the manual pages. :rolleyes:
  3. P

    Computer Science Future Carrer info + Help. Thanks.

    Alright so you have problems proving proofs. Who doesn't? I knew a kid that was the prof's son and he had trouble with some of the proofs. One of the tricks of doing proofs (in my opinion) is knowing your definitions. Another is being a guru in logic. So start with logic, master it, and start...
  4. P

    Apache 2 vhost question.

    Well, just when I tought I knew everything about Virtual Hosts.... to the question. I have two websites hosted on my Apache server as vhosts. They both work fine. Here are the entries in the httpd.conf file (substituting site1 and site2 for the real domains - I'm ashamed of my websites)...
  5. P

    Computer Science Future Carrer info + Help. Thanks.

    I when to university in Toronto and my advice to you is as follows: 1. Work hard to understand math and more importantly math consepts. What do I mean? Well if I ask you what is 6/3 you most likely would answer 2. But if I ask you what does it mean to divide 6 by 3, can you answer corretly...
  6. P

    Help with what's probably a very simple PHP problem

    Try this: <html> <head> <title>PHP Include Test</title> </head> <body> Template. <br> <?php if (isSet($page) && !file_exists("$page.php")) { include("default.php"); } else { include("$page.php"); } ?> <br> <?php echo $_GET["page"]; ?> <br> <a...
  7. P

    splitting & joining files with PHP?

    Hey guys, I want to know if there is a really quick way to split and join files (binary) using PHP - it must be done with PHP and not with another program. For splitting I know I could read say x bytes from the first file and write to another file but that might be a bit too slow for my purpose...
  8. P

    Few PHP quesitons...

    It was a good idea. For a moment I thought that my php.ini file was no being loaded. I did a manual load with php -c, same result - it works fine.
  9. P

    Few PHP quesitons...

    php.ini file setting: ; Enable compatibility mode with Zend Engine 1 (PHP 4.x) zend.ze1_compatibility_mode = Off I don't think that is the issue. Does anyone get an error when they run the above code in PHP 5?
  10. P

    Few PHP quesitons...

    Not in this case, but it is something like the singleton design pattern.
  11. P

    Few PHP quesitons...

    $x does NOT have to be a property of the class.
  12. P

    Few PHP quesitons...

    First, I want to apologize for not using the PHP code tags. Honestly I never before (except my last post) posted any code here. Second, I want to thank those that actually looked at the code in the ugliest of it's form. tim_m, you are right about the __construct. My bad, I was typing really...
  13. P

    Few PHP quesitons...

    Say you have the following class (in PHP 5): <?php class x { function __constructor() { //init properties } public function manage_class() { $x= new x(); // do something here } } ?> Is there a technical term for the *trick* used to initialize the class...
  14. P

    is there anyway around this?

    From my experience, whatever works in IE, acctually does not work. Interpret as you wish. Do not use IE to test your site. Avoid frontpage, if you do not like getting laugh at.
Back
Top