Jump to content

Full-Demon

Members
  • Posts

    114
  • Joined

  • Last visited

    Never

About Full-Demon

  • Birthday 10/27/1990

Contact Methods

  • Website URL
    http://www.daevius.com

Profile Information

  • Gender
    Male
  • Location
    behind a screen

Full-Demon's Achievements

Member

Member (2/5)

0

Reputation

  1. Yep, I know but it didn't work (that's just a copy from php.net ). They're on the same webserver, just different subdomains (where the subdomain is actually a directory in the www folder...).
  2. Hi, I try to make a bridge between an SMF forum and my own site, where the user registers and logs in at my site and is automatically registered and logged in on the forum (via the site). SMF requires me to set a cookie to indicate the user is online, I made it to work on my localmachine, where I set the cookies path to be '/' (which is, the whole domain). But on my server it doesn't work, I think it's because they host multiple sites per server, and disabled this feature. How can I make a cookie to work on a different path on the site then it is created in? Thank you.
  3. Since server load for sites can be heavy, and PHP can be quite slow, I thought of a WAMP server not made of PHP files, but executables. Just as a test for myself, on my own local machine, and to test how much difference it would make with heavy user load. What do you think? Would it be worth the effort or do you think PHP is just fine? I've seen some extensions for PHP to precompile the PHP scripts...same idea infact. I think it's worth a try Can this be done? If so, how do I connect apache mysql and my executables together? Is there any site which describes what apache requires? Adding 'AddType application/octet-stream .exe' to httpd.conf obviously didn't work...
  4. Thanks for the reply, but it still doesn;t work. It looks like the client/browser doesn't reload the image...I even tried it with the no-cashing headers, but neither works. How can I force the client to reload the image?
  5. Hi, I have a script where I have to load a certain image and than output the image, but I don't want it that the server has to upload the image and than let the user download: I want the user to just download from the original fileserver (where the image is stored). So I have: File server (images stored here) -> Script server (with the actual script) -> User Users use the image tag to load the image: <img src="site.com/myscript.php"> I thought about this for my script: <?php $array = array('img1.png', 'img2.png'); header("Location: othersite.com/".$array[rand(0, 1)]); ?> That works, except that it is not random! The output is always one image and if you reload it never switches to the other one! How can I make this like I want? Thank you a lot! FD
  6. Hi, When I have a subject and search for a certain character in it (where the character before and after that character has certain conditions) it doesn't gives me the right output. preg_match_all('/(\W|\A)(\=)(\W|\Z)/', 'blahblah == lala', $matches); Result: Array ( [0] => Array ( [0] => == [1] => = ) [some more sub arrays here] ) This code checks for the character '=' and gets the surrounding characters too. The first character is matched alright (' =='), but the second one not (' = ') (note the spaces). The second result should be ('== '). Why does the second result ignores the first '='? And how to fix this? Thanks in advance, FD
  7. Hi, I'm trying to parse a file, and I only need to replace stuff that is outside any single or double quotes. How can I, using preg_match, see if the found key is between quotes or not? Thank you! FD
  8. Hi all, PHP is a bit too slow for my project to resize images. Is it possible to call an executable via PHP which will resize the images? A C/C++ program to be exactly. Can I use GD2 in C? And can I run a program from the server with an argument (path top the file)? And would it be good or bad if I would use external programs? Thanks
  9. Hi, header() doesn't works properly. When I write the following: header("Location: index.php"); It doesn't redirects me, only when I echo something AFTER the header(); header("Location: index.php"); echo 'wtf?'; WTF??? What is wrong? Why doesn't header(); works immediatly? Thanks alot, FD
  10. Hi, I know how to set the CHMOD for a file, but does a function exsists where I can see a file's CHMOD settings? Thanks, FD
  11. Ey, I use CHMOD because .htaccess doesn't work on my server. I want certain directories to be restricted. I want that only apache/php can read/write/execute. Nobody else, users should not be able to browse to/inside the directory. What permissions should the directory have and what should the files/directories inside have? Thanks in advance FD
  12. Ok thanks for the reply, With users I meant ppl who own a server and can run the script. But perhaps I should build the enable/disable function for virtual urls...sigh...its just a sh*t load of work lol, thats why I asked it. Thanks anyway FD
×
×
  • 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.