Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
check out the mail function on PHP.net http://php.net/mail Specifically, the additional parameters after headers like '-f'.'your email addy here'
-
This is a good way to get banned, and definitely not helped. I'm glad your organization is "free" but that doesn't mean they get free services. You get what you pay for in this world.
-
You need to add $id = $_GET['id'] for this instance. You'll want to "clean" it by making it $id = intval($_GET['id']); (if you're only ever expecting a number. Otherwise users can inject SQL (google: SQL injection) or XSS attacks.
-
You'll probably need to contact them to see how to get it switched to PHP5 for all your pages. This is how I force PHP5 on my server on MT. It may/may not work for you, but it's worth a shot. Save this code as simply .htaccess and upload it to your site: AddHandler php5-script .php
-
I think it means you need to do some research on ssl certs. and possibly contact web host.com.
-
You could store it in the session, but if you really want it in the form (and therefore, editable by users) try this: print '<input type="hidden" name="id" value="'.$id.'">";
-
Are you using PHP4? get_headers is a PHP5 function only. http://us.php.net/manual/en/function.get-headers.php If you scroll down through the comments it looks like someone has posted a function to emulate it, that will work in 4.
-
In the editor. Hit the button next to the quote button. It looks like a #. Or type [.code]code here[/.code] without the .
-
Sessions are also affected by if the user has cookies enabled. Did the other computer have cookies enabled? If you wanted the changes (counting up I guess) you saw on your computer to be seen by other users, sessions is not what you'll use, you need to store the changes on your server.
-
Use code tags please! $number in the last line will be the last value $number in the loop. If you want it to change dynamically when the user changes the drop down menu, you need to use javascript. PHP is done before the page loads. Do some googleing on "client-side" and "server-side" and you'll see the difference.
-
Go to https://YOUR DOMAIN HERE and see what happens?
-
Well, he has errors supressed, so there is no way to tell if the connection is working. I think the @ should be banned
-
Take out the error supression sybmol: @ everywhere. The file: http://www.xspand.ca/77.avi Doesn't exist there either. Do you have an example of a url that actually exists?
-
Take out the www. Look at the URL you're trying to access. www.seajist.100webspace.net/77.avi Actually go to it in your browser. Is anything there? No. Google "subdomains". Your site is not www.seajist.100webspace.net/ it is http://seajist.100webspace.net/ http://seajist.100webspace.net/77.avi HAS a file.
-
[SOLVED] mail() function randomly stopped working
Jessica replied to propel's topic in PHP Coding Help
Did you add the error_reporting code? You should see errors if you're not getting the mail. Also, have you looked at the mail() function's other arguments? I have to use '-f-me@mail.com' in order to avoid spam filtering on the outgoing server. -
The @ symbol suppresses errors.
-
Is the images folder in the same directory as this file? It cannot find this file: "images/uploads/20070823085742_explicit.jpeg" You might need to look at the relative path from your php file and the image file. Or is your image .jpg not .jpeg? Look at each error and find the line of code which it tells you to, that will give you a good place to start. Not many of us are going to try to find the xxxth line in such a huge file.
-
Did you try it with http://www...I think it has to be http:// not just www.
-
Creating an opaque filled polygon over existing image
Jessica replied to Balandar's topic in PHP Coding Help
Hm, try looking into : http://us.php.net/manual/en/function.imagealphablending.php The comments contain some helpful info as well. -
Creating an opaque filled polygon over existing image
Jessica replied to Balandar's topic in PHP Coding Help
"Currently it not be opaque but just a different shade of red, like a pink almost.. and it covers the text, nothing shows through the color." That's what opaque means... http://www.google.com/search?q=define%3A+opaque The text won't show through an opaque shape. -
Where is 'total' coming from? If you want SUM to be stored as 'total', you need to tell it so: $sql= "SELECT SUM(CONSIDER) AS total FROM DentalVisionHearing DV JOIN MASTERL2 M2 ON M2.[EMPNO]=DV.EmpNo WHERE DV.[FY] = '$fiscal'" ; $result= mssql_query($sql); $row = mssql_fetch_array($result); echo $row['total '] ;
-
trim() does not remove HTML, it removes extra spaces! http://us.php.net/trim Read this page on PHP&HTML: http://us.php.net/manual/en/faq.html.php strip_tags() removes HTML (and PHP) http://us2.php.net/strip_tags You can also look into PEAR's HTML Safe, which I use and like a lot: http://pear.php.net/package/HTML_Safe
-
[SOLVED] mail() function randomly stopped working
Jessica replied to propel's topic in PHP Coding Help
$headers .= "Content-type: text/html; charset=iso-8859-1\n"; $headers .= $headersfrom; mail($to, $subject, $customermail, $headers); Where does $headersfrom come to? Try changing mail to this to the top of every page: ini_set('display_errors', 1); error_reporting(E_ALL); Then change the mail() line to: if(mail($to, $subject, $customermail, $headers)){ headers('Location: packages.php'); }else{ print "$to - $subject - $customeremail - $headers"; die(); } Your page might not redirect to packages.php but you will be able to debug. -
Show us all of the code
-
[SOLVED] PHP FORMS WONT SUBMIT IN LINUX(CENTOS)
Jessica replied to candyclaire's topic in PHP Coding Help
You've forgotten to post the code. We can't help if we can't see the code.