Jump to content

darkywarkey

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

Everything posted by darkywarkey

  1. Thanks, that pretty much answers it. Guess I worded my question poorly. I should have asked if there's a way to pull the previous page dynamically, but now that I think about it that wouldn't be doable on the server side. At least I wouldn't think so.
  2. Trying to create a more graceful approach to redirecting according to the current url. Couldn't find any function on the php.net site to pull a url. How are redirects typically handled in cases such as clicking on a page that requires you to login, then after filling out login page it redirects back to previous page being accessed? I'd like to implement something similar. Preferably without using javascript.
  3. Didn't even think about that. Good idea. Any good newbie cache guides for apache servers? I'm reading their http://httpd.apache.org/docs/2.2/caching.html documentation but some of it is still a bit beyond my limited server experience.
  4. Currently I'm using a script that I created which creates a list of pages, like most any search you see on the web. On each page it takes a page number variable and offsets the results, but essentially it queries the database every page you click on. My question is this: Seems like there might be a more efficient way of paging, if there is how would a better method be? Or is this essentially how most websites do it? ??? Thanks!
  5. I'm on a shared hosting environment, as such not sure how to set up imagick on it. tried before, didn't get much customer help - but I think you guys are right. I may just disallow it, I doubt anyone will be using it anyways. And I dont wanna kill the bandwidth of my site from 2megabyte image uploads for the 2 people that will use it. Thanks..
  6. Can someone lead me to a good resource to learn how to write a conversion program? I want to properly convert BMP's to JPG's when they're uploaded. BMP's are almost always much larger files, and it would be far more efficient to use a JPG version. Any experts out there that can help?? ???
  7. I am using sessions, and I do have access to crons. You saying I will require a cron to update the db to check if session soandso is on?
  8. No idea how this is implemented. Any help would be appreciated. ??? ???
  9. I'd prefer not using the method of just checking the timelog on a given page, since the system I'm creating is going to be dependent on whether a person is actually online or not. I'm going to be allowing a form of real-time communication to occur, and I dont want someone not showing up on the active users if they have just been idle for 30min. I'm using AJAX to keep the list updated every few seconds, but I'm not sure how to track when a user leaves? I'm not familiar with any sort of function that tracks that?
  10. I've seen this many-a-times where you go to a forum and you can see a list of the users currently logged on and browsing the threads. Is there a way you can access all the session variables (logged in users) through a script, so that you can pull all of the currently online users and show them on a page? ??? ???
  11. Ahh, yep that's what I was looking for. Thanks.
  12. Is there a way to create a script which runs on a certain time increment? i.e. without user input required. ??? ??? Or how else would one achieve something like this properly? ??? I want to use it to pull database stats and email them periodically, and a few other things such as queuing emails instead of sending instantly. Thanks...
  13. Having a problem when using sessions. If I define a session global it works fine unless the www. subdomain is different from the defined sessions origin. Such as - $_SESSION['var1'] = 1; // defined on www.domain.com ... // on domain.com $_SESSION['var1'] isn't recognized. How can you allow sessions to be visible across both?
  14. bump this - I'm having a similar problem. not sure how to include or install or load or compile or whatever else you want to call it, imagick. my server has the pecl, imagick, package "installed" but some step is missing, which the support couldn't help me on. I get the error message as well. anyone know how to fill in the blanks?
  15. Trying to create a script that relies on returning the current directory of the script being run. Couldn't find any built in functions on the PhP manual... any ideas?
  16. Figured it out! Weird as this is... it was the way the various pages were being linked, as in their url's. Some links I coded without the 'www.' in front of the domain name, and some were. I guess the sessions were being kept seperate between the two url variations. Good to know. Guess that goes to show you should always be consistent in coding standards.
  17. Yep, it still shows. Nothing suggested so far has worked. I'm still ???
  18. Didn't work... No code automatically loading the session. It's user authentication, so they have to login with a username/password, which then sets the session variable. After logging out and it apparently working (the script shows a login field again, which is only shown when the session variable is unset), I try clicking the home page again and it acts as if I never logged out, showing the previous users information once again.
  19. Then I'm not using them. I wasn't sure if there was something in the php.ini that could be auto setting them. Not familiar with cookies either. Any other ideas?
  20. Just sessions, as far as I know. I haven't written any code messing with the cookies, but I'm not too familiar with cookies or the configuration settings for them, thats the only reason I suggest that could be the problem.
  21. Hmm doesn't help. Seems like something else is going on. Could some sort of cookie configuration be causing the problem?
  22. I've created a user authentication session control which is working fine. The problem I'm having is when I logout a registered user, the session appears to be unset on the first load of the page but any subsequent page loads show the user that was just logged out active again. Using php 5.2.6 and the logout script is as follows... <?php session_start(); unset($_SESSION['valid_user']); session_destroy(); ?> Any ideas what could cause this? ??? ???
×
×
  • 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.