Jump to content

the_oliver

Members
  • Posts

    364
  • Joined

  • Last visited

    Never

Everything posted by the_oliver

  1. Hello. Is there some way i can remove all ' from a string? Thanks!
  2. Thanks. }} was an increadbly stupid mistake!! And echo point fixed the other! Ta!
  3. Yep. Don't think i have missed one. Have put the whole contents bellow, just incase it helps. Thanks!
  4. I think that the simplest way to solve these problems would be to do all the port forwording, and anything the proxi currently does through a router. This would solve the diffrent subnet problems. If everything pointed to the address of this router then your server is always dealing with the same, single, internal ip and doesn't have to worry about anything else.
  5. for the first problem it is the print " .... line. for the second problem it is the line affter the ?> Thanks!
  6. Parse error: parse error in /blaa/parts/client_fault_report.php on line whatever bothtimes.
  7. Hello, a scrip of mine is throughing out two errors i cant see. First one is on the print line: if ($num > 0) { print "<meta http-equiv=\"refresh\" content=\"0;URL=http://www.bla.net/fr.php?rec=true&ses=".echo session_id()."&fail=open_ses\">"; } and the second is apparently after the ?> $validationOK=true; if ($email=="") $validationOK=false; if (!$validationOK) { } else { $EmailFrom = "blackhole@somewhere.net"; $Subject = "fault report."; $Body = "Ya De Ya De Ya"; $Body .= "\n"; $success = mail($email, $Subject, $Body, "From: <$EmailFrom>"); } ?> Can someone point out my mistake? Thanks!
  8. Wroked like a dream! Many thanks
  9. Your bash scrip could be run via cron, using variable got from a database? Also can help with security, as you limmit whats being run by your web engin!
  10. Hi An external form site reterns a user to my site, with the following garbage on the end!: However if i try echo $_GET['custom where did you hear about us']; echo $_GET['custom%20where%20did%20you%20hear%20about%20us']; I get nothing! Any ideas why? Thanks!
  11. Hi, I checked and url wrappers are enabled. I am connecting to an https url and that is alowed on the firewall. Thanks
  12. Hello, Could some one shead some light on fopen for me? I have a script which uses it, and when trying to retrive data from a php script, if gets no data? However if i enter the url its using directly into a browser it works. Does it work over port 80 or 22 or 21? And does it require anonomus ftp to be set up? I hope i havent been to vaig? Many Thanks.
  13. yer, I thought of that, however it needs to be displaied insite a table row, defined in the header and footer. Is there no way of making it simply expand to fit? Thanks!
  14. Hello, I wish to display the contents of a diffrent website page (https://www2.thedomin.com), within a 'main' site http://www.thedomain.com). I have tried doing this thought an iframe with the following: (include a header) <iframe scr="https://www2.thedomain.com/blaa" width="100%"></iframe> (include a footer) This works but the height of the iframe is always to small. I fould like this to change to fitt its contents. Can anyone tell me how to do this? Perhaps an iframe is the wrong way? Many Thanks!
  15. Hello I am trying to create a form where the options availible in one dropdown menu, are dependant on the option selected in a previous dropdown menu. Eg: The user selects a date from the first drop down menu, once they have done this the dates avalible for that location are populated into the second for the user to choose. Each location would have a diffrent set of dates in the menu. Could someone give me some advice on how to achive this please. Or should i be posting this in the JavaScript area? Many Thanks!
  16. Ok, so i have go that $today = date("F j, Y"); echo $today; will give me the format October 15, 2006. But i want to do this of a result stored in a database. So i tried: $time = 2007-03-07; $today = date("F j, Y", $time); echo $today; (as 2007-03-07 is the format stored in the database) But that gives me January 1, 1970 not March 7, 2007. Where have i gone wrong?? Thanks.
  17. Hello, I have a date field in MySQL database. I have to enter the date in this format: YYYY-MM-DD so i can have the search results ordered by date. I would however like it displaid in the uk date format DD-MM-YYYY. How can i go about this? Thanks!
  18. Hello. I was wondering how i can populate a field in a form, with the data from a database/variable? Eg A form for editing page content. Thanks!
  19. Why can the files just not have the .php extention instead of .html or .htm? Seems a little pointles?
  20. Hello. How can i stop a background image, placed i a cell from repeating? Many Thanks!
  21. .htaccess files are really worth getting to grips with. They can essentualy be used to redifine the httpd.conf file for single areas of the site. If you can use them propaly they become exttreamly powerfull tools!
  22. Hello. Some what strange question. I have to put some code i have writen on someone elses server. Whilst this is partly for my benefit, i know that they will try to copy the code, and use it for there own purposes! Normal i would have no problem with that, but it this case i do! My question is, is there a way i can make my script ilegable to them? EG: if they opened a file they would see only a load of jumbled charictors? Thanks!
  23. I like this point about multiple sites using using it. Not haveing to make a file public just a table. But can also set the point about speed and server load! I think camdagr81's point could be intresting from a development point of view also.... Not having to wory about changing file locations etc... especialy if files are out side the web file point. Im realy just wondering how it would be done with a database! How do i go about putting a file into a 'BLOB' field? Thanks for all your coments so far!
×
×
  • 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.