Jump to content

Markh789

Members
  • Posts

    15
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Markh789's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. After much research, it appears fragment's (anchors) are not sent to the PHP server. parse_url did help me find this information though, thanks anyway.
  2. OTList.eu or OTList.edu? Or did you mean otslist.eu, I think so. Here is the english version otservlist.org. I'm guessing these are linux servers. You can run shell_exec to get these, <?php $data = shell_exec('uptime'); $uptime = explode(' up ', $data); $uptime = explode(',', $uptime[1]); $uptime = $uptime[0].', '.$uptime[1]; echo "Server Name: " . $_SERVER['SERVER_NAME'] . "<br>"; echo "Server Uptime: " . $uptime . "<br>"; ?> Most data would be read out of a database though.
  3. Call to a member function EnumKey() on a non-object This means your trying to run something from something that is not an object. E.G, A class. I have not used this before, though is $wmi an object?
  4. You have it backwards. All headers MUST be sent prior to any output. This means all calls to header() and all functions that send or modify headers as a side-effect, such as session_start(), MUST occur before any output has gone to the browser. You can not echo anything, not even a blank line, to the browser before the headers are sent. Ah, that is so - my bad.
  5. After a bit of luck, I am using Javascript to put it in a cookie and PHP to read the cookie and phase with split();. Still looking for a PHP-Only way though. If theres not, please tell me so I can mark this solved.
  6. <?php session_start(); if (isset($_SESSION['logged']) && $_SESSION['logged'] == 1) { // Do Nothing } else { $redirect = $_SERVER['PHP_SELF']; echo "You are being redirected to the login screen!<br>"; echo "(If your browser does not support this, " . "<a href=\"login.php?redirect=$redirect\">click here</a>)"; header("Refresh: 5; URL=login.php?redirect=$redirect"); die(); } ?> You can not echo after you send header() Read: http://www.phpfreaks.com/forums/index.php/topic,37442.0.html
  7. Because it contains HTML, set the tags outside. <pre> <?php print_r(glob($_SERVER['DOCUMENT_ROOT'] . '/algebra1/*.html')); ?> </pre>
  8. taquitosensei is correct. $query = "INSERT INTO wbl_enquiryrespond (enquiry_id, login_id, enquiryreplydate, enquiryrespond) VALUES (''$enquiryid ', '$loginid', '$date', '$respond')"; Change it to $query = "INSERT INTO wbl_enquiryrespond (enquiry_id, login_id, enquiryreplydate, enquiryrespond) VALUES ('$enquiryid ', '$loginid', '$date', '$respond')";
  9. At least, I think thats what there called. When you go on my website, I want to get the value of the url from # and > E.G, http://localhost/example.php#justavalue So I want to get 'justavalue' out of it. How can I do this? Thanks.
  10. This is why I'm trying to learn how to make PHP Extensions I want to do the same thing, though using an algorithm like IonCube dose
  11. So your saying, you could do this in visual basic 6 for all that I care?
  12. Hi, I'm making a license system due to "i'm Bored" In visual basic 6 you can go if instr(str, "Hello") Then.. Basicly "If "Hello" is inside of the string "str" then.." How can I add that onto this; <?php $opensite = fsockopen('www.site.com/checklicense.php?license=' . $license, 80); while(!feof($opensite)) { $endcode .= fgets($opensite, 128); } fclose($website); } ?>
  13. Ok, Well I'm big around security and im trying in place the following code into the extension file. function dllencrypt($str) { $str = sha1(md5(base64_encde($str . $str))); $str = str_replace($str, "a", "b"); $str = str_replace($str, "c", "k"); $str = str_replace($str, "d", "r"); return $str; } Yeah, basically its just a little encryption (Though there is another one that dose the same thing about 20 times) that I will be removing MD5 and designing it all by myself, this is just for testing. How can I place this inside of the extension file?
  14. Hi, I'm currently a new developer to PHP Extensions! I'm possibly wondering if you can cod PHP Extensions in visual basic 6? If not, what in? And what would be the easiest way? Thanks for any reply's, Mark.
×
×
  • 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.