Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers!
/Peo, FreeWebSpace.net
must there always be a { and } for else and elseif, even if they only have one line?
example:
if (1==1)
echo "yes";
else
echo "no";
I tried it. It looked ok. But I could be wrong. :confused:
thanks
Help!
I used:
session_start();
session_register("user");
$HTTP_SESSION_VARS["user"] = "jane";
Next page that checks it's valid:
if (!isset($HTTP_SESSION_VARS["user"]))
//but the variable is always not set!
I checked the session file but it only has this in it:
!user|...
Hi,
I would like to create a chatroom either in flash or java. Does anyone know of anywhere I could refer for some code or tutorial on how to make a chatroom? Or any book too.
Thank you
Yes, where do I get IIS 5.0? I know it's not the best server(apache's the best, for me), but I still need it.
PS: I don't have Win NT so I don't have IIS 5.
Thanks.
Hi,
I have a .inc file that contains html codes. How do I use the include() to print the codes out onto the page so that others can select it and copy it?
I know there's htmlspecialchars(), but how do I pass the contents of the entrire file into this function?
I tried this and it does...
How do I use javascript and VBscript in the same ASP file. I need to use javascript in a mostly vb written asp file because it can compare expressions for form validation. VB doesn't seem to be able to.
Thank you for your input
Does anyone know of any site that offers OpenASP downloads? Where can I get it? I can't access its website (activescripting.org) and I also can't find a download for openasp any where else. :( Does anyone know what happened?
Thanks
Hello all,
What directives do I need to add to my httpd.conf to allow access to a directory outside documentroot?
documentroot is C:\Apache\www
folder is C:\Apache\Secret
I also tried to use this in my .htaccess in \www\:
php_value include_path /secret/
but it also didn't help...
Is there any way to use constants in mysql queries? I tried, but it couldn't work.
define("NAME","jane");
$data = mysql_fetch_object(mysql_query("select stuff from main where user=" . NAME));
echo $data->stuff;
should I forget about this and just use variables, or is there a way to use...
What if someone is spamming and using an email of your domain as a reply-to email? This can be bad as those that receive the spam can have a bad impression of your site.
What can one do to prevent this or at least reduce possible damage?
Thanks.
I found a problem when dealing with zeros in forms. Post values containing 0 just won't be not empty.
Check this script:
<?php
if (empty($HTTP_POST_VARS["choose"]))
echo "No value<br>";
else
{
echo "There's a value! - $HTTP_POST_VARS[choose]<br>";
}
?>
<form method="post"...
Can PHP connect to a MSAccess DB?
Just to add to this:
If so, do we have to code our own functions to connect/query the MSAccess DB, since PHP does not have any funcitons for it.
Hi,
I don't understand this function( error_reporting()). You're supposed to pass in an int level but how do I know what kind of levels are there?
eg.
/* ...in PHP 4, '55' would mean (E_ERROR | E_WARNING | E_PARSE |
E_CORE_ERROR | E_CORE_WARNING) */
is '55' calculated in some way by...
I have a form that allows users to edit their information. When the user saves, the changes are saved into a table and the page refreshes.
Here's the problem:
changes are saved to the mysql table and the page loads with the new information. But when I re-enter the script again by clicking...