Jump to content

PC Nerd

Members
  • Posts

    1,122
  • Joined

  • Last visited

    Never

Everything posted by PC Nerd

  1. Hi. Im using the remote addr and remote port in SERVER, as part of my site, but im getting wierd port numbers. Instead of getting port 80 ( which i thought was default), im getting 3245 or somethign wierd like that. it really ranges from every time the script runs. Ive had friedns test out the script, and its the same, different and random port numbers appearing. Could someone confirm that my idea about port 80 is correct, or have i completely misunderstood ports? thanks
  2. ok, well ihad a look at my quotes, and your right.... sort of. their definately double quotes, however they appeared differently, so i replaced then all with new typed ones and funily enough it worked...... Ive got another error, but i dont think its related, thanks
  3. another method you could do, is build yourself a page, where you write the email, then have it sent to all the members..... theres a similar mass emails / mailing post that i jsut replied to, so have a look there. gdlk, PC Nerd
  4. another thing you need to keep an eye on is your CPU usage ( if its a shared server). If it is, then maybe you should look at only sending 50 emails etc at once, however havign a cron run the script once every 10 minutes over an hour period. If you do this, you woudl need to keep track of who has reeived the mail, so possibly add a field to the DB of "received" or something. Not sure if this is the best aproach, but it sounds good for mass mailing on a shared server. Yours, PC Nerd
  5. Hi, Ive got this code, that is included into the script via: require("File.inc"); and Ive ensured that the file included is enclosed in <?php ?> tags. However im getting the following error. Parse error: syntax error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in FILE.inc on line 4 Here are the first few lines of that file. <?php $Rates["1 000"] = "190x00“ $Rates["2 000"] = "195x00“; $Rates["3 000"] = "200x00“; ..... Two notes about this. Firstly that the wired "x" etc, is to replace things like "." because for some reason, the page wasnt excepting those as characters, it was acting as thought is was string formatting etc. Also, the file continues on like that for agtes, as theres isnt a mathematic relationship between the values. so theres are about 177 records for it to load. However i can see why it could cause a problem. If anyoen can spot the error, id really apreciate it. Its probably somethign that ive overlooked, however after working at it for a few hours, its driving me mad. Thanks, PC Nerd
  6. not sure, but look in the manual for the to_int() function. itll convert it to an integer for you. its accepted the html frm as text. not sure if thers an atrubute to change so that int isthe default datatype.... but itsbetter you do validation here.
  7. i dont think im explaining my problem very well ive got an admin login, like a backend for my site. now the admin have their emails through an external email provider, and they login at site.com/mydomain what i want to do is to have my backend passworded by cpanel/apache. now a) i want to get that password and place it into the fields on site.com/domain is this possible. please tell me if im not making any more sense. also, what did you mean about the public access to private ? thanks
  8. woudl there be a way for you to store the data in anotehr form, then do one long query? seems to me that maybe either CPu limit is being hit, or script timeout on your server. Either one. Also, does mysql limit sql queries from the same page? or is it only by IP etc? gdlk
  9. remember that if a script or program exceeds your hosts limits, that can cuase trouble. so its fine to simply run the script while are away from that domain, however youll need to limit how long it runs for, and how much CPU its taking up, most hosts have very strict limits on this
  10. as far as i know, its not possible for php to access that. however if thres anotehr way, like a different language ( manul cron sort of stuff), then you might be ablet o write a module or somethign that creates an array with that data in it. gdlk
  11. 2) if thres somethign that needs regular updating... like agging xxx amount of money to peoples accounts, put that in the cron. Probably a mysql dump, so export as SQL, and email that sql to yourself... that can be a cron. 3) deoends onteh type of battle. simplest is points vs points, highest wins. then you do that comparison, then do your wining thingy, and if they killed units etc. personally it sounds like you dont know what your game is about, otherwise you would have asked more specific questions etc. gdlk
  12. Hi, Ive got a script that simply redirects, however cpanel has placed a password on it. ie password directories function. I wanted to gether that password, and then have it placed in another set of username and password fields, on the recirected page. it would be best if it can use multiple passwords etc to gain acces,,, ie multiple users. In php, can i get those Cpanel gathers usernames and passwords? and/or can i use php to place values into a form, not on its directory? thanks
  13. Hi, If i have $Money = 200000; Then how can i get it to automatically place "," within that number, to convert it to a string? I can easily add "$" etc. but im stumped on this "," buisness. Thanks
  14. $num = rand(0,20); $ARRAY[$num]; OR shuffle($ARRAY); $ARRAY[0]; thos should work. in the first one, maybe to an array length count... and then replace the last argument with the length or something. gdkl
  15. does anyone know about he SWF in background? Or if it can be exported in another format... thats fine but itall needs to be able to user the action script, which is why i used the swf extension. thanks
  16. if your trying to log who logs in every time..... use Auto increment in the DB as the ID number, then simply assing that to the cookie, so that if at any time you need to pull data about the login eg time, its all stored in the DB.... and teh thign about sessions is right. I still use cookies, but i ined to change everything to Sessions. gdlk
  17. so what does the header do... is that like opening a socket or somethign to pass data to another page? thanks
  18. oh ok, thanks....... its a simply link, its not a flash form or anythign great. but thanks about he background bit. does anyone else know if its possible to have a swf file as a background of a page? or is it possible to have the animation in another format??? they al have mouse actions, their just "movies" as such. thanks sooo much.
  19. hi, Im not sure if it posilbe, but im trying to get a SWF file as the background of my page, but the swf file is dynamically named. Its like a gallery and when a user clicks on the lick to that file, it displays the image /swf. but i want the file to appear as the background. code: echo "<body background = '".$POST['file_name']."'>"; ii have 3 files so far. file1, 2, 3 .swf. and i can easily view each one as a seperate file, and they work once i embed them as images. is this my php code, or do i have to look at my browser to display the swf as BG..? thanks
  20. ok, thankx im not sure what your type = 'image' means,. ive never used it in a form before. all i want to do is send data from page a to page b, exactly like using GET, but i want it to be POST. Its simply to "clean" the URL of the page. thanks
  21. hi, Im looking for a way to send data to a page as POST, but withought having to use a form. Eg GET is in the URL, but i want the URL to be withought all that data. Is it possible to send the POST this way, or isit only ann option with forms? thanks
  22. ive had this problem before. firstly, are you actually receiving the email? i know that ive had a similar script, that hasnt sent the email. and i think that the javascript function was overiding the form submit thingy. which means that you may have to include javascript to actually a) submit the form or b0 send the data to the next page. hope that helps
  23. or work on a redirection. That what i do with every database submission etc.
×
×
  • 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.