I need a way to browse a web server on my Network from the internet (to make sure all links, external DNS entries, and NAT port forwarding is working).
There use to be several free anonymous web browsers out there, but all the ones I knew about are either gone or are no longer free.
So what I...
After reading through my main module (PHP), I have gone with Apache 1.3x as the base server (for now anyways).
My next delima is password protected directories using the Active Directory usernames/passwords. Right now I am thinking that I will need to use some type of auth_ldap ... anyone...
I have always ran Apache in some type of *nix enviroment, but I have just started a new job and my current employer insists on useing Windows 2000/03 Servers, but dosent care about what WebServer software I use. I tried using IIS, and it work for most of my stuff, but there are a few things...
what drive and directory is the config.dat file that came with the script located in (look in the directory & subdirectories where you installed the script and find a file named config.dat).
If the complete path where that file is located d:\cruises\web\scripts\forum\config\config.dat, then you...
I have done something similar with one of my clients ... don't know if it will meet your needs, but here is what we did:
1) wrote the PHP/MySQL application for the web
2) wrote an MS Access database app that included the administrative features and an exact db structure of the MySQL tables...
More of an HTML question ... but it is a common problem with all scripting because of the including scripts from other directories.
Here is how I have resolved the problem.
Use absolute urls instead of relative urls:
picture example:
<img...
Looks like it is asking where the config.dat file is located.
in unix it might look like:
$config_file = "/htdocs/path/to/script/config.dat";
in windows it might look like:
$config_file = "c:\\www\\config.dat";
OR
$config_file =...
I probably already know what the answer is, but here is wishing...
I have been using the PHP CLI for most of my systems administration on both *nix and Windows because PHP is such a quick and easy way of doing alot of my administration tasks (database/file manipulation).
But now I have a...
On the insert textfiles screen did you check the "OPTIONALLY" box on the "Fields enclosed by" section?
checking the optionally box means that 'only char and varchar fields are enclosed by the "enclosed by"-character'
my code was a little off ... give this one a try
$var = mail("$toMail", "$subject", "$message",
"Content-type: text/html\nFrom: $email\nReply-To: $email\n",
"sendmail_path: /usr/sbin/sendmail\n");
Try this:
$var = mail($toMail, $subject, $message,
"Content-type: text/html\n\r
From: $email\n\r
Reply-To: $email",
"sendmail_path: /usr/sbin/sendmail\n");
The comma between the content header and the from header was probably throwing it off. Also there should have been a...
running the scripts from windows (double clicking with the mouse) will make this happen. The DOS window closes after the script is finished (usually just a second or two).
If you run the script from a DOS/Command prompt the window will not close. To do this place the path to php.exe in your...
You will need to use PHP's cURL functions, so you will need to make sure that you have compiled your PHP with this option: http://www.php.net/manual/en/ref.curl.php
I was going to take a crack at writing some sample code for this, but found a link at PHPBuilder ...
PHP is free and you can get it at http://www.php.net/downloads.php
I run PHP scripts on my local Win2K PC for testing and cross database synchs. Download the Win binary (as long as you are running Windows) and run the install. You also may need to associate the .php extension with the php...
Also found this code in the PHP docs ... dont know if it is better or not (I have never used the foreach in PHP)
<?
$ArrayVar = array("a", "b", "c");
foreach ($ArrayVar as $key => $value) {
echo "Key: $key; Value: $value<br>\n";
}
?>
Here is one way:
<?
$ArrayVar = array("a", "b", "c");
while (list ($key, $val) = each ($ArrayVar)) {
echo "$key<br>";
}
?>
Probably the safest way to store any code (especially ones with passwords) is to use Zend Encoder to encode your scripts making it impossible for anyone to read them. Some people think that Encoder is pricey ($1000/year or $2400/life), but I figure it is a small price to pay for a very strong...
I would install phpMyAdmin. It not only lets you export your tables as Excel CSV, but lets your manage your entire MySQL database(s).
http://phpwizard.net/projects/phpMyAdmin/
This might be it ... the function mysql_numrows() should be
mysql_num_rows()
If that dosent do it:
What line number in the complete file is your very first line of code at (function insert_order($order_details))?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.