Jump to content

PC Nerd

Members
  • Posts

    1,122
  • Joined

  • Last visited

    Never

Everything posted by PC Nerd

  1. if you want t oreload, then id use javascript, especially on timeout etc.
  2. isset($cf_455) and empty($cf_455) might help
  3. on your server, does it allow you to customise your own error pages? either way, you shoudl be ablet to directly link to that file. itll be somewhere on your server www/ directory i think gdlk
  4. only way is to create a cookie, that doesnt expire, which i do beleive expires after teh browser is closed. you may be able to selet time rembered for, and then set a cookie expire time for that, or simply make it sooooo far away into teh future, that the person will never expire..... In the file, simply go: if(isset($_COKIE['Set_User) || isset($_COOKIE['set_Pass'])) { etc. gdlk
  5. hi, Im looking for a way to get php to read through a html or shtml document, but using the W3C DOM. It would need to have the childNode functions etc. Is there anythign that woudl allo wme to do this? or alternately retrive html tage attributes, according to a certain criteria.? eg: <div id='retrive'> </div> javascript: getElementById("retrive"); is there an equivelent in php? thanks
  6. the other thing to keep in mind, is if your storing things in your session, that really need to be in the database. I have had this problem with my game, where i place like Points in teh session, but forget to update teh DB, so i end up having everything working for that on euser, btu the other users arent experienceing anything. Keep that in mind as well
  7. also, maybe use frames or similar? gdlk
  8. i often simply give a record multiple id's eg, if i was to have a message sectionin my site, then instead of habing a message table for every user, then i create the uniqu messsage id, the user-Id of who its to, and then the chain id, which is like reply... eg chain id "2" means its a reply to id "1". Hope this helps
  9. ok, i think ive fixed it, thankx though for the record... Field would contain the Array object. basically, im looking for a way to actually pront out the variable/array name.... eg: $variable = "test"; echo $variable; = "test" i want a way for it to output: "variable" or whaterver thanks
  10. ok, withouth going through your code, i hope hte below code works. $Query = QUERY STUFF; $New_Array = array(); if($QUERY = "TEST") { $New_Array[''][''] = ""; # rearranging your indexes, or simply adding the content } then there is sort($New_Array, ASC) or something, but im not sure about eh actual arguments gdlk
  11. Hi, Ive got a 2 dimsneional Array eg: $Array['1'][0] $Array['1'][1] $Array['2'][0] $Array['2'][1] $Array['3'][0] $Array['3'][1] What i want to do is have something, the looks like: foreach($Array as $Field => $Value) { } Now how can i reteive the actial index ( first index).? thanks
  12. thanks ill look into these functions
  13. yes, however the idea of an array is to be able to easily manage that arge amount of data. If youve got heaps of variables, then its harder to read your code later on. What are you doing with your $_POST data? sometimes its helpful to use variables, other times it seasier to use teh array.
  14. Hi, Im looking for a way, to rename files on my server. eg /me/files/FILE1.mp3 i want me script to be able to shange that to /me/files/MUSIC.mp3 also, is it possible for the php script to change the location of the file? eg the above file moved to /me/music/uploads/MUSIC.mp3 is that possible? and if so how? thanks in advance
  15. well you would need to have another php file, that has like the code to delete the file etc, as in pass that drop down value ( file_name), and delete it im not sure about the deleting.... however: if(empty($_POST['Delete_Field'])) {header("location:-----");} function delete_file($file_Name) { DELETE FILE HERE } then go $file = $_POST['Delete_Field']; delete_file($file); i dont know much about functions though gdlk
  16. yesh, i think its in header() information, im not sure.....if you search for a post started by me..... about forcing a download... about 4 weeks ago, i think that answer was there.... worry i can be of much more help
  17. um, do validation.... like if(empty($field1)) {} then once you know what is empty, you can query etc from there thats the only way
  18. echo "<option value = '".$r['Id']."'>".$r['Id']."</option>\n"; i havent a clue what that might do to help, but i know that if i sometimes rewrite my code again, the error disapears.... its really weird
  19. also, at the end of every look, maybe go unset($date); or maybe create an array value, that will store all your results?
  20. no, its available from 4.1.1 onwards i beleive, but its main functionality update was in v5. i might be wrong. most host these daysoffer at least 4.1.1
  21. im not too sure, butmaybe run a timeout, like i dunno, have 2 conditions in the loop: while all pages havent been catalogued && page_time_running > 30 seconds might work
  22. ive got it working, thanks though
  23. ok, tech got back, and said to explicitly state teh mailserver as localhost, however im having trouble finding a way. does anyone know how to do this? thanks
  24. hi. ive got this small site, and theres two different forms, which both send emails to an email address. the first set of code below works, however the second one doesnt. the second one returns things like the actual mailserver url, and the message body only has "0", probably boolean/"false". Ive got the tech guys at me server looking into it, but im wondering if its with my code. if anyone has any ideas on whats happening. i would really appreciate your help. thanks $To = "email"; $From = "email"; $Name = "NAME"; $Title = "TITLE"; $Message = "MESSAGE"; $Subject = "Web Site Inquiry: \"".$Title."\""; $Body = $Name." has sent an email from the website. The message is below. You can reply to their email, simply by clicking on the reply button / link in your email program.<br><br><br><br><br><br>Message:<br><br><br>".$Message."<br><br><br>"; $Header = "From:".$From; $Mail_Sent = @mail($To, $Subject, $Message, $Header) or die("Email Failed to send. Please contact the Webmaster at Webmaster@horizonaccounting.com. We apologies for any inconveinience."); $message = "Test ing this email"; $to = "isjackawesome@gmail.com"; $subject = "Details Update"; $email = mail($to, $subject, $message, "From:horizon.accounting@gmail.com") or die("Email failed to send"); please note, that the working email, the first set...... uses $_POST data, and not static variables, for the first set of variables... however ive simply replaced its value. thanks
×
×
  • 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.