Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Mail(): ' Warning: Failed To Connect In ... On Line ...'


I'm a newbie using PHP4 and Apache 1.3 on Win98.

When I launch a script just having this instruction:

mail ("test.address@example.com", "My Subject", "My message");

I got this annoying message:

Warning: Failed to Connect in myscript.php on line ...

Of course the e-mail address provided is a real one; I have also
changed in the following way the values in php.ini file :

SMTP=localhost;
sendmail_from=my.real.address@my.provider.com

Do you have any hints or suggestions ?




View Complete Forum Thread with Replies

Related Forum Messages:
Warning: Failed To Connect In E:_3000_Php4projectxt_Compose.php4 On Line 2
I'm using PHP4.0 with IIS and i'm trying to send a mail.
The code is as follows

mail("me@domain.com","subject","message");

then the error comes as follows:

Warning: Failed to Connect in E:_3000_Php4projectxt_Compose.php4 on line 2

View Replies !
Warning: Mail() [function.mail]: Failed To Connect To Mailserver
Why do i keep getting this error:

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:wampwwwproject_upload Code:

View Replies !
Warning: Failed To Connect When Trying To Send Mail.
I have followed many tutorials but keep getting this message. PHP Code:

View Replies !
Warning: Mail(): Failed To Connect To Mailserver At
I am developing a email sender application in PHP, i am getting error
"Warning: mail(): Failed to connect to mailserver at "smtp.mtcsindia.com" port
25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()".

View Replies !
Warning: Mail(): Failed To Connect To Mailserver At Localhost Port
I have windows xp pc and i have installed apache as a web server and
php also working fine, but when i am sending mail, its giving me
following error

when upload same to linux live server its working, please help me what
do i have to do for this

Warning: mail(): Failed to connect to mailserver at "localhost" port
25, verify your "SMTP" and "smtp_port" setting in php.ini or use
ini_set() in C:SafrasWebHosting....

View Replies !
Warning: Mail() [function.mail]: Failed To Connect To Mailserver At "localhost" Port 25
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in send.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at send.php:9) in send.php on line 10

why this warning and error coming when i am using this cording help me to solve this problem.

View Replies !
Warning: Mail() [function.mail]: Failed To Connect To Mailserver At "localhost"
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:SitescsitechsorderEmail.php on line 97

View Replies !
Php Mail() Problem - Warning: Mail(): Failed To Connect To Mailserver At "localhost" Port 25, Verify Your "SMTP"
I used dreamweaver as a tools for php coding..and Im using php version 4.3.3, Apache 2.0.47(win32) and MySQL as database. I found a problem with php mail() and the error says like this ;-
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set().

View Replies !
Warning: Mail() [function.mail]: Failed To Connect To Mailserver At "localhost" Port 25, Verify Your "SMTP" And "smtp_port" Setting In Php.ini
PHP Code:

$con = "hi monday";
mail("mymail@lala.com","test imap.dll",$con,"From: [email]other@mail.com[/email]");

and the mod_imap is loaded. but the browser show:

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:Apache2htdocssendmail.php on line 2

View Replies !
Warning: Mail(): Failed To Connect To Mailserver At "localhost" Port 25, Verify Your "SMTP"
when i execute a mail program iam getting some error as follows:

Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:appservwwwmails.php on line 20

what is the solution to this problem Code:

View Replies !
Warning: Php_hostconnect: Connect Failed
I'm trying to set up ftp on my website. I can successfully log in, put, get, change directories using an ftp client. When I try to ftp on my website from within the server, I get this error;

Warning: php_hostconnect: connect failed in uploadpics.php on line 3


<?php
//set up basic connection
$conn_id = ftp_connect("localhost");

// login with username and password
$login_result = ftp_login($conn_id, "site", "pword"); //line 3

// check connection
if ((!$conn_id) || (!$login_result)) {
       echo "FTP connection has failed!";
       echo "Attempted to connect to $ftp_server for user $ftp_user_name";
       exit;
   } else {
       echo "Connected to $ftp_server, for user $ftp_user_name";
   }
?>


should I be using an IP, the full url, or should it be localhost? Could the server be blocking all attempts to login from within the server

View Replies !
Warning: Mail(): Failed To Connect To Mailserver At "localhost" Port 25, Verify Your "SMTP" And "smtp_port" Setting
may i know what the error.. i try the sending email. but it display these error:

Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:program fileseasyphp1-8wwwfp2.php on line 46
Cannot send password to your e-mail address ...

View Replies !
Sending Email - Warning: Failed To Connect
when i tried the code for sending email i am getting an error:

Warning: Failed to Connect in C:apachehtdocsmoh estemail1.php on line 10

View Replies !
Mail() [function.mail]: Failed To Connect To Mailserver
i need to know how to enable my mail function i have change my ini to localhost port 25 and enabled emnail but nothing is changing anyone experienced this problem before.

View Replies !
Send Email - Warning: Failed To Receive In C:apachehtdocssend_email.php On Line 10
i tried to create form for send email. When i tried to send it, i've encountered error report :
Warning: Failed to Receive in c:apachehtdocssend_email.php on line 10

what does it mean? and why could it happened?

View Replies !
[function.mail]: Failed To Connect To Mailserver
i am getting following error.

Warning: mail() [function.mail]: Failed to connect to mailserver at
"smtp.gmail.com" port 465, verify your "SMTP" and "smtp_port" setting
in php.ini or use ini_set() in D:LUGUBA
ootsite emp5.php on line 8

I have done the following....

View Replies !
Failed To Connect To Mailserver - Config Settings For The Mail Server
I am trying to send an email through a web form but I am getting an error. I am trying to use windows xp on my local machine.

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:wampwwwsendmail.php on line 19

Can someone tell me how to fix this. Here are my config settings for the mail server.....

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

View Replies !
Warning: Gzopen($theurl): Failed To Open Stream: Connection Timed Out In Online8.php On Line 726
I have written a program that opens a page on a games server, using zlib functions, opens the file (gzopen), then uses gzreader to read it. It works fine on a XP Windows Server/CGI for PHP, with the following php.ini settings modified:

max_execution_time 360
max_input_time 360

from their defaults of 30 and 60 respectively. But when i try to run the same script on a commercial server running Apache with the defaults set, the script throws the following error:

$fp = gzopen($theurl, "r");

Warning: gzopen($theurl): failed to open stream: Connection timed out in online8.php on line 726

What i don't understand, is that it doesn't take 30 seconds to run the script when it is hosted on the Windows XP machine. The problem is the Windows XP machine can only handle 10 max users at a time. I want to be able to port the script to any server.

View Replies !
Warning: Failed To Connect To Mailserver, Verify Your "SMTP" Setting In Php.ini
i am using IBSERVER and trying to mail a form to my email address my code is given below

form.html

<html>
<head>
</head>
<body>
<form method="POST" action="mail.php">
Name: <input type="TEXT" name="subject">
Email: <input type="TEXT" name="email">
<input type="SUBMIT" name="Submit" value="ok">
</form>
</body>
</html>

mail.php


<?PHP
$email = $HTTP_POST_VARS[email];
$mailto="muskhere@gmail.com";
$mailsubj="Form submission";
$mailhead="$email";
reset ($HTTP_POST_VARS);
$mailbody="Values submitted from web site form:";
while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val"; }
if (!eregi("",$HTTP_POST_VARS[email])) {
mail($mailto, $mailsubj, $mailbody, $mailhead);
}
else
{
echo("Error, no comments were submitted!");
}
?>

View Replies !
Warning: Mysql_connect(): Can't Connect To Local MySQL Server Through Socket '/tmp/mysql.sock' (2) In /home/custcare/dbconn.inc On Line 2
It's really strange. I downloaded the latest 4.0.16 RPM from mysql.com
and installed it to my Fedora system, and did *not* do anything else
(Actually I am completely new to mysql).

I wrote a test php script to test mysql (ftp_connect('localhost',
'root');), but got the following error:

Warning: mysql_connect(): Can't connect to local MySQL server through
socket '/tmp/mysql.sock' (2) in /home/custcare/dbconn.inc on line 2

I ran phpBB2 installation page, got the same error. But it can connect
to mysql using my computer name.

View Replies !
Warning: Main(URL): Failed To Open Stream: HTTP Request Failed!
I am getting this message when I try to get an include file remotely..

Warning: main(URL): failed to open stream: HTTP request failed! HTTP/1.1 200 OK  in ... on line 25

Warning: main(): Failed opening '...' for inclusion (include_path='') in ... on line 25

It works some time's and not other times. I believe it is because the php file on the remote server is taking to long to process. Is there a way around this.... ie another way to process an include remotely and then have the results included in your program...?

View Replies !
Warning: Move_uploaded_file(httpdocs/fliers/Request.log): Failed To Open Stream: No Such File Or Directory In /home/httpd/vhosts/kabalkc.com/httpdocs/Class/uploadClass.php On Line 39.
my Error:

Warning: move_uploaded_file(httpdocs/fliers/Request.log): failed to open stream: No such file or directory in /home/httpd/vhosts/kabalkc.com/httpdocs/Class/uploadClass.php on line 39.

View Replies !
Failed To Connect Socket
I have written a simple php mailing script using mail peer. Code:

View Replies !
Failed To Connect To Mailserver
I am running IIS5 on my XP Pro home computer and am unable to send email through my ISP's mail server. In the PHP.INI are two lines:

smtp = smtp.telus.net
smtp_port = 25

I have opened port 25 on my own computer (do I need to though?) and I am able to telnet to the ISP's SMTP server. When I try to send an email from my PHP page I get the well-known error message:

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in [filename] on line 40.

The strange thing is, the mail() function seems to be trying to connect to "localhost" and not "smtp.telus.net". There is only one PHP.INI file (in C:WINDOWS) and I have run phpinfo() to confirm that this indeed is the INI file being loaded. However phpinfo() states that the SMTP server is "localhost" and not "smtp.telus.net". I added an ini_set("smtp", "smtp.telus.net") right before the mail()function and got the same error: unable to connect to "localhost". I am not running IIS's SMTP service.

View Replies !
PHPMailer Debugging (Failed To Connect To Server)
I have a problem using PHPMailer. On my local development machine, the script works fine and sends emails. On amy staging server, when I try to use PHPMailer to send() I see the error:

SMTP -> ERROR: Failed to connect to server: Permission denied (13)
Can anyone think of why my staging server is preventing my connection...

View Replies !
CUrl Working Unpredictable (connect Failed)
I'm working with cUrl and I'm getting strange results. When I run the
following script, most of the time I get the error "connect() failed" but
sometimes it works and returns the requested page???

<?php
$myCurl = curl_init("www.whatever.com");
if(!$myCurl)
echo curl_error($myCurl);
else
{
$result = curl_exec($myCurl);
if(!$result) echo curl_error($myCurl);
curl_close($myCurl);
}
?>

I'am working with PHP 4.0.6 and libcurl 7.9.3.

View Replies !
Mail Problem - Warning: Mail() [function.mail]: SMTP Server Response: 550 Invalid Recipient:
Whenever the recipient's email address includes a hyphen ( - ), I get the following error message...

Warning: mail() [function.mail]: SMTP server response: 550 Invalid recipient:

I should stress that this only seems to occur when the hyphen is in the URL portion of the address, i.e example@perfect-example.com

The current code works along the lines of...

mail ($_POST['email'], 'Email subject is here', $body, $headers);

View Replies !
SMTP Failed To Connect To Mailserver At Localhost Port 25
I dont know what I did but now I get this message Failed to connect to
mailserver at "localhost" port 25, verify your "SMTP"...

View Replies !
Failed To Connect To Mailserver - Use The Site From An External Computer
This issue is really annoying me, I dont know why its happening. I did a PHP site for a client and it uses the php mail() function. The site is now live and works fine. It seems that whenever a user who is internal to the site as in, if they use the site from within the network that the site is served. The mail function fails with:

Warning: mail() [function.mail]: Failed to connect to mailserver at "theServer" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in (...the php.ini file).

(I have changed the name of the server and the file path to the php.ini here for security reasons.)But When I use the site from an external computer, like anyone else
would, it works fine. Im yet to confirm weather every email request from an external site works ok. But I think so. What could be the problem? Would it matter that the request to the web server is internal or not?

View Replies !
QuoteWarning: Ftp_connect() [function.ftp-connect]: Php_network_getaddresses: Getaddrinfo Failed:
I seem to be getting the following error in a php script i am writeing to check if an FTP server is up.

QuoteWarning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: hostname nor servname provided.

View Replies !
Warning: MySQL Connection Failed:
I am trying to do a basic exercise to learn mysql. I am trying to access a database through php. Here is my php code. PHP Code:

View Replies !
Warning: Php_network_getaddresses: Getaddrinfo Failed:
I've got this small script which uses the file function, and I seem to be getting these annoying errors, can anyone understand this for me? Basically a user input form to type in URL then the backend script simply processes the url and prints the HTML for that page.
The interesting thing here is that if I don't place the '@' in front file I get these errors

Warning: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/sites/web/system/metaengine1.php on line 16

Warning: file("http://www.manutd.com/") - Bad file descriptor in /home/sites/web/system/metaengine1.php on line 16

Warning: Invalid argument supplied for foreach() in /home/sites/web/system/metaengine1.php on line 19 PHP Code:

View Replies !
Warning: Failed Opening 'xxx.php'
I have some code and im trying to use variables to set up which include page to list but im getting an error. here is the php code im using pHP Code:

<?php

$page_choice = $_GET['thc'];
switch($page_choice) {
    case "hemp": include "/facts/hemp.php"; break;
    case "legal": include "/facts/legal.php"; break;
    case "qoute": include "/facts/qoutes.php"; break;
    default: echo "<b>Please select a category!</b>
    ";
}

?>

View Replies !
Warning: Rename Failed (No Such File Or Directory)
I have been working on an upload script using file functions etc (it is being tested on windows ME). For some reason if there is an error some of the functions throw up their own error instead of simply returning false, for instance, the rename function which I have been using today, as long as it can be done, it works properly and returns true, but if it can't be carried out I get this.

Warning: Rename failed (No such file or directory) in c:wwwrootppwsicoadmincontroldatabasecontrolincludespicture-actions.php on line 23

The above was caused because the file has the same name as it is being renamed to. The code is (line 23 is the 'if blah blah' line):

if (rename($directory.$pic_name, $directory.$new_name.".jpg")){echo "OK";}
else { echo "error"; } All the variables are passed in correctly because it works! All I want is it to display my custom error message.

View Replies !
Warning: Failed Opening 'listing10.4.php' For Inclusion
Warning: Failed opening 'listing10.4.php' for inclusion (include_path='.;c:apachephppear') in c:apachehtdocs10.3.php on line 7

I saved both the files 10.3.php and 10.4.php in my htdocs folder but as you can see, the call wont work. it wont work no matter what file i try including. i went into my php config and changed the include path to apachehtdocs but still no luck for the record i am running apache and installed php using php triad.

View Replies !
Problem With INCLUDE - Warning: Failed Opening
I have a problem...

I did a PHP Script for a counter... and I want the counter to be displayed
on an another PHP page...

So, I can include it like that:

<?
include 'counter.php'
?>

BUT... and here's my problem... the script need more info... like...

<?
include 'count/counter.php?site=0001&type=2&images=1'
?>

when I try this, I get a:

Warning: Failed opening 'counter.php?site=0001&type=2&images=1' for
inclusion (include_path='.;c:php4pear') in D:HTTPDHTDOCScountindex.php
on line 24

both files are in the same directory...

View Replies !
Warning: Session Object Destruction Failed
Ive been trying to use session_destroy() in a number of simple scripts but it wont work in any of them. I keep getting this error "Warning: Session object destruction failed".
Here is an example of the code I have tried. PHP Code:

View Replies !
Warning: Ftp_connect(): Php_network_getaddresses: Getaddrinfo Failed:
I have been successful at  adding users to my database and table with php but when I try to log in I get an error message. I am trying to build the the URL  or FTP address with variables.

Warning: ftp_connect(): php_network_getaddresses: getaddrinfo failed: No address associated with hostname in /home/loraxbiz/public_html/do_authuser.php on line 32

Code:

View Replies !
Getting An Error In My First Attempt Warning: Compilation Failed:
Warning: Compilation failed: range out of order in character class at offset 36 in /nfs/cust/3/4/2/balloo9/forum/weather/mos_temp.php on line 11

PHP Code:

View Replies !
Warning: Fopen(): Php_network_getaddresses: Getaddrinfo Failed:
I got Following Warning

Warning: fopen(): php_network_getaddresses: getaddrinfo failed:

what is the cause of this warning? & what is the Solution for this?

View Replies !
Warning: File_get_contents(): Php_network_getaddresses: Getaddrinfo Failed:
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known in /usr/local/apache2/htdocs/heshun/kkk/zz.php on line 99

Warning: file_get_contents(http://www.php.net): failed to open stream: Invalid argument in /usr/local/apache2/htdocs/heshun/kkk/zz.php on line 99

to my surprise, when I log into my local net(BSD OS, PHP 4.3.10 ) and I run it by following:

View Replies !
Warning: Main(.inc): Failed To Open Stream: ....
I am going to be converting my website over the next year to be a Php site. Hopefully this is going to coincide with myself learning the basics of Php. I intend to get hold of a copy of Dreamweaver soon, and also get a book on it as well. Anyway, my first attempt at Php has given me an error. What I am trying to do is to put all the header info for my webpages into an include file, so I can just bring the same include file up for the same header info for each page. My first page starts:

<?php
include ("/header.inc");
?>

When viewing the page though I get the following error:

Warning: main(.inc): failed to open stream: No such file or directory
in /home/public_html/index.php on line 3

Warning: main(): Failed opening '.inc' for inclusion
(include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/public_html/index.php on line 3

You don't have any idea what this error is do you?

View Replies !
Warning: Main(): Php_network_getaddresses: Getaddrinfo Failed:
I have a script that displays random quotes and messages. It used to work fine for over 3 years but for the past two weeks I keep getting the following errors which show up randomly and if you refresh the site the script might work fine again.

Warning: main(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/httpd/vhosts/domain/httpdocs/index.php on line 76

Warning: main(http://www.domain.com/articles/quotes/quotes.php): failed to open stream: Resource temporarily unavailable in /home/httpd/vhosts/domain/httpdocs/index.php on line 76

At first, the script was setup to open up a small text file and display the text which it contained. The person who hosts the site for me suggested that instead of opening the file I should try a php array. So I did that and I still get the error that I posted above. The error seems to be intermittant.

View Replies !
Warning: Fsockopen(): Php_network_getaddresses: Getaddrinfo Failed: Name Or Service Not Known
Never seen such a situation !

Do you have once faced this problem ?

We use a fsockopen to retrieve a content from a URL [fsockopen ($url,
80, $errno, $errstr, 5);]. The content is dispalid corretly on a page
on one of our servers.
But on an other server (more-or-less same config.) the content is not
displaid !! with the error message ::

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed:
Name or service not known in /home/virtual/site1/fst/var/www/html/..php
on line 46

A config. probem of PHP or Linux server ? Never seen that in the past !

View Replies !
Warning: PostgreSQL Query Failed: ERROR: Pg_atoi:
I've built a postgres database that can be controlled through browser inputs to update, insert or delete records. i'm using php to access the db and display results in html. all of my update commands work fine but my inserts will not, each time i try to insert it kicks out this line:

Warning: PostgreSQL query failed: ERROR: pg_atoi: error in "head": can't parse "head" in ....... on line 47

for this example "head" is an attribute of type text which is all set up properly to send and hold the correct attribute type ($tag_method in the sql under here). Line 47 refers to the sql command in my php which looks like this:

LINE 46: $sql="INSERT into sheep values ('$tag_method', $flock_id, '$sex', '$breed' , $age, $parent_id, '$born_on_farm', '$date_joined', $price_paid, $price_sold, $sheep_number)";

LINE 47: $result_set = pg_Exec ($conn, $sql);

View Replies !
Warning: Move_uploaded_file(../uploads/ok.jpg): Failed To Open Stream:
I get the following errors when I try to use the file below.

ERRORS:

Warning: move_uploaded_file(../uploads/ok.jpg): failed to open stream:
No such file or directory in /www/webdir/test/upload_file.php on line
11

Warning: move_uploaded_file(): Unable to move '/tmp/phpVnaunp' to
'../uploads/ok.jpg' in /www/webdir/test/upload_file.php on line 11

THE FILE "upload_file.php":

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body>
<?php
ini_set ('display_errors',1);
error_reporting (E_ALL & ~E_NOTICE);
if (isset ($_POST['submit'])){
if (move_uploaded_file ($_FILES['thefile']['tmp_name'],
"../uploads/{$_FILES['thefile']['name']}")){
print '<p>Your file has been uploaded.</p>'
} else{
print '<p>Your file could not be uploaded<b>'
}
}
?>
<form action="upload_file.php" enctype="multipart/form-data"
method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<input type="file" name="thefile" /><br/><br />
<input type="submit" name="submit" value="Upload this file" />
</form>
</body>
</html>

View Replies !
Warning: (null)(): Invoke() Failed: Exception Occurred
I am having trouble with this error:

PHP Warning: (null)(): Invoke() failed: Exception occurred. Source: Microsoft OLE DB Provider for SQL Server Description: The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.

In my MSSQL database I have field(pub_date) of type varchar which stores date in January 1, 2007 format. In my php page user selects two dates (which are also in the format January 1, 2007) and I have to o/p the records from the database between those two dates.

 I am writing a query to do that as "SELECT * FROM table WHERE (CAST(pub_date AS DATETIME) BETWEEN '$fromdate' AND '$todate'".

Before when I was not using CAST I have not got the expected results when user chooses fromdate= May 1, 2007 and todate  = June 10, 2007, which is may be because my field is a varchar and char J < char M.

Now, when I am using CAST...it gives me results but it is also giving me the above error. I would like to know if there is any other way that I can use without getting this error.

View Replies !
Warning: Compilation Failed: Unmatched Parentheses At Offset 2
I m trying to create a smiley system but no luck

I have preg_replace ("/:-)/", '<img src="images/smiley.gif">', $strings);
but it returns Warning: Compilation failed: unmatched parentheses at offset 2 I have looked in the manual but no luck so far.

View Replies !
Preg_replace :: Warning: Compilation Failed: Nothing To Repeat At Offset 2
preg_replace() is throwing the following php error when I try to run the following variables through it:
$find = "+ +";
$replace = "+";

Why is this occuring?

Warning: Compilation failed: nothing to repeat at offset 2 in /home/httpd/vhosts/devdomain.com/httpdocs/inc/functions.inc.php on line 68

$find = strtolower($_POST['find']);
$replace = strtolower($_POST['replace']);
$keywords = trim(strtolower($_POST['keywords']));

if ($_POST['replace_words'] == "Replace Words") {
if ($find!= "" AND $find!= NULL) { ....

View Replies !
PHP Warning: Main(): Php_network_getaddresses: Getaddrinfo Failed: Name Or Service Not Known
PHP Warning: main(): php_network_getaddresses: getaddrinfo failed: Name or service not known in Dear Ev1 members

I use Plesk and I use Apache, CGI, MySQL and PHP

I was able to use mod-security, to use a Chroot directory, everything works ok, exept that in some sites I need to include CGI scripts Code:

View Replies !
Warning: Unable To Include 'cgi-bin/hello.cgi' - Request Execution Failed
I run PHP pages on my webserver. What I am trying to do is run a Perl script within a PHP page (and return the output to the webpage). The test script I am trying to run is this... Code:

#!/usr/bin/perl
print "Content-type: text/html";
print "HELLO WORLD!!<br>";

When I run this using <?php virtual("cgi-bin/hello.cgi") ?>, all I get is this error message....

"Warning: Unable to include 'cgi-bin/hello.cgi' - request execution failed"

Any ideas how I can run this script in my PHP page?

View Replies !
Warning: MySQL Connection Failed: Can't Create IP Socket (10036)
I have a Problem with together MySQL, PHP3 and Apache-Server on Windows95. I run Apache-Server as Webserver, also on this machine runbs MySQLWIN32. Ihave written a simple PHP3 code as follows: Code:

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved