Jump to content

iridys

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

iridys's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. This part actually sends the email. You need to set up everything, then only do a mail(). Also, $message isn't called anywhere.
  2. Do a search for the first </p> tag (I'm pretty sure you can limit it to first found, somehow) and chop off everything before that into a variable. Do the str_replace on the variable. Reattach to the rest. Or use preg_replace(). Brush up on regex-fu.
  3. Because sometimes, CSS is more trouble than it's worth. Sometimes you just need a table. Though, I'm not sure that's the case in this situation. Err, by "side by side vertically" you mean one on top of the other? Well I'll assume so... Seems there's a lot of redundant tags there. Anyway, I suggest you remove all the widths. For webdesign, in general, absolute widths or heights are a big no-no. If you must set a width, do it on the outer-most DIV. Also, it will be less of a headache if you decide now whether to code all the layout in the CSS or the HTML. In other words, if you want to set width/height, do it in the CSS or HTML only, but not both. Otherwise the clashing will result in major headaches.
  4. I've tried both "\" and "/". No joy either way. Incidentally, if it's of any significance, the code works on my Test server (Win2k) only if I use "/".
  5. My setup: (everything on a local network) Web server: Ubuntu Server 8.10 -- Workgroup File server: Windows Server 2008 x64 -- domain Test server: Win 2000 running WAMP -- domain I'm trying to run the code snippet below. $file is a file on the File server above. It definitely exists. Running the code below on the Test server works perfectly. But the file cannot be found when running from the Web server. $file = '//server/share/file.txt';if (file_exists($file))echo 'yay!';elseecho 'error'; What with the safe mode considerations, I've also tried to add: ini_set('safe_mode', 'Off'); to no effect. And since file, and fopen similarly not work, I'm pretty sure it's not that either. The File & Test servers are on the same Windows domain, but that's definitely not the reason. I tried the code on a file on a Linux computer in the Workgroup (where the Web server is) with the same results: Test server works, Web server does not. Please advise; I'm really lost.
×
×
  • 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.