Jump to content

wildteen88

Staff Alumni
  • Posts

    10,480
  • Joined

  • Last visited

    Never

Everything posted by wildteen88

  1. It is a PHP setting, which attempts to solve the shared-server security problem. Most (shared) hosts enable this setting. Also In my last post the last sentance should read this: If the allow_url_fopen setting is not enabled or PHP is in safe mode then this is why you cannot use urls within your code.
  2. You need to either install an SMTP server. Or point PHP to an open SMTP server. Try your ISPs SMTP server if they provide one.
  3. Echo $_POST['orderdate'] variable. What does it contain?
  4. Ok, do what ken said in his post. What do you get when you submit the form now? Also make sure your html/form fields are wrapped in the form tags too, that is very important that. EDIT: Just noticed this: [quote]<td class="content"><b>$</b><input name="txtPSPrice500k" type="text" class="box" id="txtPSPrice500k" value="<?php echo $price1x2; ?>" size="5[color=red][b]"</td>[/b][/color][/quote] Look at the highlighted HTML in red. Notice there is no closing tag for your input field. This looks like your problem to me add a closing tag (>) before [nobbc]</td>[/nobbc]
  5. Make sure the encoding your saving your php file as is ANSI, most editors should save with ANSI encoding. UTF-8 encoding can cause headers already sent errors.
  6. Do you have fields names as txtPSPrice250k, txtPSPrice500k, or anythink named with txtPrice or txtMOPrice? Whats you HTML like for the form fields?
  7. When the user logs out what is the [b]$_SESSION['image_is_logged_in'][/b] variable set to. ALso the following code does not check the value of the variable but the existance of it: [code]if (isset($_SESSION['image_is_logged_in']))[/code] You'll want to add an [b]and[/b] expression (&&) after the isset function to see if the variables value is true, like so: [code=php:0]if (isset($_SESSION['image_is_logged_in']) && $_SESSION['image_is_logged_in'] == TRUE)[/code]
  8. Check with your host, I dought they will though especially if you are on a shared host. But you can add the following line to your .htaccess file: [code]DirectoryIndex index.php[/code] If you want index.php to be your directory index.
  9. Yeah it'll be your computers IP address then.
  10. finfo is not a PHP extension. It is a PEAR Module you will need to install PEAR first and then install the finfo PEAR module by running this command: [code]$ pear install fileinfo[/code].
  11. the mssql server extension requires extra files, namely the MySQL Client Tools and the ntwdblib.dll file to be installed on the PHP box.
  12. You cannot access a cookie that was set from another websites domain name. You can only read cookies that was set from your sites domain name.
  13. Put your php.ini and httpd.conf into a zip/rar file and attach it to your post (click the reply button and then expand the [b]+ Additional Options...[/b] by clicking it. Now click the browse button and find your zip/rar file and click post when done). Also by any chance do the errors look like this: [b]Fatal error: Call to undefined function mysql_connect() in [path of script here] on line [line number here][/b] if they do then you havn't enabled the MySQL extension in the php.ini, [url=http://www.phpfreaks.com/forums/index.php/topic,95378.0.html]this FAQ Thread[/url] should help you enable the extension. Also it would be a good idea to enable the [b]display_startup_errors[/b] directive in the php.ini, that way you if PHP is having trouble stating up it will display an error window on startup.
  14. Do you have a link to your layout you have now? Perhaps your are not slicing your images up correctly. Or need to apply a rowspan/colspan to the cell that has the image in.
  15. Not sure what you mean there. I have IE7 installed and your site display fine when Window is maximixed (1280 x 1024) and when I reduce the width of the window until I cannot resize the window any smaller (100px or so) , Instead i get a horizontal scroll bar, which is the same behaviour I get with FF too.
  16. If you want to set a div to minimal height, for its default hight when the contents is less than height of actually div then you'll want to use min-height However min-height is not supported in IE6 or below and perhaps some other browsers, IE7 Now handles this CSS attribute fine. I'm not sure how to get this to work in IE6 (or below) perhaps there's a CSS hack available.
  17. No. This is down to your PHP script. Perhaps there is a variable somewhere which defines where your .csv file is being created. Also have a look at Apaches error logs to see if your PHP is actually creating the file. Just because you're getting no errors doesn't mean PHP has created the file, especially if your server doesn't have display_errors directive enabled in the php.ini
  18. Why are you posting this? What are you testing?
  19. Wampp is an acronym for Windows, Apache, PHP and MySQL. Or are you on about the wampp package from [url=http://www.wampserver.com/en/]wampserver.com[/url]? In that case wampp is a free package which installs Apache, PHP and MySQL (AMP) for Windows in a single package and sets everything up. You may also find a slightly different acronym which is LAMP its the same as WAMP except its for Linux boxes.
  20. Huh! You want your hosts server to 'talk' to your local server? What are you trying to do? However you will need to give your hosts server your computers IP address and open port 80 for external sources.
  21. It does work. But only in the source code. The reason for this becuase the browser ignores whitespace characters, such a \n \r \t etc. However if you go to View > Source in the browser you'll see that the whitespace characters have been parsed. What you'll need to do is is convert the line breaks to HTML line breaks [nobbc]<br />[/nobbc]. You can easily do this using the nl2br function.: [code=php:0]$someStr = 'this has \r\nnewlines \ncha\n\n\nrac\nters in \it!'; // display $someStr without nlsbr function: echo $someStr . '<hr />'; // display $someStr with nl2br function: echo nl2br($someStr);[/code]
  22. No that is not the problem at all. Its because your PHP set-up doesn't have the MySQL extension enabled. Please read this [url=http://www.phpfreaks.com/forums/index.php/topic,95378.0.html]This FAQ[/url] to enable the MySQL extension.
  23. You cant. As you are setting up the counter variable in the for loop itself. The only time when you'll get a false result is when the value of the counter variable is not less than 10. When that happens the for loop stops looping.
  24. You cant. As you are setting up the count variable in the for loop itself. The only time when you'll get a false result is when the value of the counter variable is not less than 10. When that happens the for loop stops looping.
  25. No problem. Yes it is advised to turn on display_errors and set your error_reporting level to E_ALL on development boxes.
×
×
  • 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.