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.





E-mail From Linux Server But Not Windows Server


The following one-liner sends mail from a Linux server but not from their Windows server.

mail ("admin@mydomain.com", "Subject", "body");

What do I need to check / change, please?




View Complete Forum Thread with Replies

Related Forum Messages:
Windows Server To Linux
I have the code below which worked fine when I was using it on my windows server. However I had a few problem with the windows server then I had to switch to a Linux based server. Once the switch was completed I started having problems with a number of my codes which worked fine previously. I have managed to solve quiet a few of them with the exeption of this one which I cant figure out and was hoping you could help. Code:

View Replies !
Windows PHP Connect Into LINUX Server
I want to built a windows php website---> connect to the linux box--->read all settings value from the .ini files->display it into the php website->user can then change the values->save the .ini file base on the user modification close the file-->for back up reason of settings, also save the values into SQL database. I also need to reboot the linux box after apply changes to the .ini.

Anyone knows how to approach this problem? What do I need? Does php have a built in ssh?

View Replies !
Remote Linux Commands From A Windows PHP Server
I'm running a Windows webserver and I would like to use PHP to connect to my linux box (non-webserver), send it commands (change directory, run commands, create files, etc) and files, and be able to get files back that it created on the linux box.

The linux machine has ssh/sftp (with password) access, so is there a way for me to connect through ssh without installing extension libraries and run commands etc?

I've searched through the forums and haven't found anything that is my particular situation.

View Replies !
Capturing A Display On Remote (linux) Server From (windows) Web Browser
I've a utility that runs on a linux machine. Basically, it opens a window, draws a figure and captures the image (screen) and stores it as a jpeg file. The utility requires a window to be open (or displayed) inorder to save the image. Also, this utility is
in the form of an executable, so I can't possibly alter it.

I want to run this utility from a windows web browser and display the saved jpeg file. I pass some command line parameters to change the figure it draws. The php code I use is as below: Code:

View Replies !
Mail() On Linux To Use Other Smtp Server
I have written a php site that uses the mail() on windows and i had to state in the php.ini file which smtp server to use.

have now migrated this site to a redhat 9 server, but i still want the emails to be sent via the smtp server i stated earlier.

this may infact be a sendmail question, im not sure, (perhaps changing sendmail_path in php.ini) but has anyone managed to send email via mail() in php, on a linux box, that uses an external smtp server?

View Replies !
How To Configure External Mail Server On Linux In PHP.ini
Is there anyway I can configure PHP email to use external mail server on Linux? I know you can do it on Windows.

I did an experience. I updated php.ini showed below. However I could not receive email.

myServerAddress does have SMTP mail server running.  Any comments?

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

; For Win32 only.
;sendmail_from = me@example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail -t -i

View Replies !
Configure PHP To Use A Remote SMTP Server For Sending Mail On Linux
On Linux, can you configure a remote SMTP server to send mail? I set SMTP = mySMTPserver under [mail function] in PHP.ini; I also stopped sendmail service on my local machine. There are no mails send out. If I run the local sendmail service, mails are sent out.

View Replies !
Sending Mail From Windows Server
i trying to send a mail using php scripts from windows server i used the following code for that:

<?php

$from="info@mysite.com";
$to      = "ajiths4u@gmail.com";
$subject = 'Invitation';
$message = 'hello ';
$headers = 'From: info@mysite.com' . "
" .
   'Reply-To: info@mysite.com' . "
" .
   'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>

and i also change  my php.ini (smtp name & sendmail_from )but its  not working in windows server.

View Replies !
Send Mail ON Windows Server WITH No Response
I made a script to send email with php . It worked perfectly on Linux server.. Now I tried to run it on Windows server and there is no response... I've tried

//send_mail() is a funstion which works and returns true if mail is sent...

I checked and on Windows server it returned false on linux returned true.

View Replies !
Send Mail() Thru A Windows 2003 Server
I'm stuck trying to convert my L.A.M.P. scripting over to a Windows 2003 Server with MySQL/PHP, because the powers that make the decisions didn't bother consulting with me first. It wasn't my choice of server, trust me. I've found various articles on the topic and worked out most of the configuration changes (.ini, etc.) necessary to make things work for the most part. I havn't been able to find a working solution for sending mail() thru PHP. I've tried setting the SMTP and sendmail_from settings in the PHP INI.

ini_set('SMTP', 'smtp.domainname.com');
ini_set('sendmail_from', 'info@domainname.com');

View Replies !
SMTP Server - Sending Post From Php Script On Linux Server
Does any body know why send() is returning false..
where are the additional settings of SMTP server?

View Replies !
Mail() Php Function Not Working In Windows Server 2003
I tried the mail() php function and it ends up with error message. I tried different tests with port configuration and Smtp server, though it ended up in error.

Error: Code: Original - Code 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-7wwwmailerman.php on line 19 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-7wwwmailerman.php on line 19.

View Replies !
Mail Script Wont Work On A Windows Server
Would anyone know why my mail script wont work on a windows server. I have tested the script on my own server (Linux) and all works fine but as soon as i put it on my clients server(Windows 2003) it stops sending the mail.

View Replies !
Passing A Value (eg Id) From A Apache Server To A Windows Server
I am trying to pass an Id from one server to another. The case is like this I have two scripts one in php and the other in asp. I am trying to combine the both together by passing an Id from php script to an asp script. The problems come on the client side because the information is on two different servers. Is there a way around this? Can this be accomplished?

View Replies !
SMTP Server Response: 503 This Mail Server Requires Authentication
I get this any time I try to send an email to someone that IS NOT in the domain of the company:

Warning: mail() [function.mail]: SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server. in corpevent.php on line 21

I have it setup like this (I removed the email address domain...but its correct in the code):

// INI Settings //
ini_set(sendmail_from,"info@domain.com");
ini_set(SMTP,"mail.domain.com");
ini_set(smtp_port,"25");

$headers  = "MIME-Version: 1.0";
$headers .= "Content-type: text/html; charset=iso-8859-1";
$headers .= "From: info@domain.com";

$to = $_POST['txtEmail'];
mail($to,"Your Email",$theEmail,$headers);

Why am I not allowed to send an email to anyone that doesn't have a "domain.com" at the end of the email?

View Replies !
Mail() Speed On Windows/linux - Quicker
I have a need to send an email, however the email MUST be sent instantly. Is PHP's mail() command quicker on linux (via sendmail) or through windows (direct via the MTA)?

View Replies !
Linux Php -> Nt Sql Server
How can I connect from a Linux Apache server with PHP 4.0 to a Windows NT SQL Server?

On NT this is easy (load the module), but on Linux I didn't see such an option. Also I didn't see anything like --with-mssql in configure. Is it even possible?

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 !
PING Php Linux Server?
Anyone know how i can ping from a linux server to a remote machine then echo the results to the screen?

View Replies !
Use Different Fonts On Linux Server
A client of mine wants me to use all sorts of different fonts to write some text on the predefined image and to show it to visitors (like a show - visitor would choose a font and then my engine would have to show that as a picture). I have the functions covered (I use imagetfttext for this), so basic functionallity is not the issue, but the fonts are.

I have no root acces to the server and thus I can't figure out what fonts are installed (it's a Linux environment). Basically, I would like to know how to find out what fonts are installed (obviously I would need TTF fonts to use here) and if I need new ones how should I go installing them? Also if there is a better way in doing this please let me know.

View Replies !
Ffmpeg In Linux Server
I want to extract a frame from a video using ffmpeg. I used

$ffmpeg_snapshot = "ffmpeg -i ../gal_video/test.flv -vcodec png -vframes 1 -an -f rawvideo -ss 00:00:09 ../gal_video/thumbnails/test.png";

shell_exec($ffmpeg_snapshot);

My hosting support ffmpeg. But it doesn't work.

View Replies !
Http Authentication On A Linux Web Server
I've been running the following authentication in php on a linux web server. I'm trying to move it to a web server on a Windows machine running Omnihttpd. It isn't working. Any ideas?

<?php

if(!isset($PHP_AUTH_USER))
{
Header("WWW-Authenticate: Basic realm="Hardware Review"");
Header("HTTP/1.0 401 Unauthorized");
echo "You are not authorized to view this pagen";
exit;
}
else
{
if ($PHP_AUTH_USER!="hardware"| |$PHP_AUTH_PW!="Speed0")
{
Header("HTTP/1.0 401 Unauthorized");
echo "You are not authorized to view this pagen";
exit;
}
}
?>

View Replies !
Upload Script On Linux Server
My upload script is not working on Linux ,which is working perectly fine on windows 2000(localhost). my php version on linux is php version 4.2.2. Php Code:


View Replies !
Moving Files On A Linux Server
I need to find a way of moving files on my linux server using PHP. Because of security the folders I am moving files to require you to be logged in as the super user.

View Replies !
Upgraded Script To A Linux Server
I have a script which updates a .txt file which used to work fine on my old windows server but now i have upgraded to a linux server it won't work. Code:

View Replies !
Watermarking Not Working On Linux Server
when i run the following script for watermarking on windows it is working well but when i run the same script on linux server it is not working. Code:

View Replies !
Cannot Modify Header On Server (Linux)
I'm really have no idea of this error. I have a script (stafflogin.php) that will redirect to main after login via

PHP Code:

header("Location: staffloginmain.php");

After I tested in my local machine (WIN XP), I upload it to the server (Linux) but when I login on the server, it prompts me:

Warning: Cannot modify header information - headers already sent by (output started at /home/absolute/public_html/stafflogin.php:3)

in /home/absolute/public_html/stafflogin.php on line 53

View Replies !
File Permisson Linux Server
I am creating a folder in Linux server through coding. for example mkdir('upload',777); But it's not creating with this file permission , also i try to change that folder permission(upload) through FTP. It's not changing "operation denied " error is coming.

But if i create any folder through FTP then i can change the file permission it's working. I have to know How can i create and change filel permission through coding in PHP. I feel setting that folder owner,group,

View Replies !
Connecting MSSQL SERVER From SYBASE At LINUX
I have installed sybase ase on Linux and it is working fine. I have a database on sybase ans I am using PHP3 for accessing the database from the browser.

Now I would like to connect the MS-SQLSERVER which is on a NT server in the same network. How to set up the interface file to run both the databases.

View Replies !
Server Wide Scripts In A Linux Environment
I have developed a content management system and every time I want to
create some short of server wide repository of the classes I am using.

So when I update a bug I don't have to go and edit the code or upload
the new file to every virtual site I have on the server.

Do you have any ideas of what is the best way to do it ?
I am on a Linux OS by the way.

View Replies !
Dynamic Creation Of Graphic On Linux Web Server
I have a small PHP Project

- Accept three strings posted from form in a web page

- One of the strings will be encoded set of X/Y points
defining curves
Decode the string to X/Y points

- Create Graphic image from the data

- Send back graphic as web page to the browser

- Also save the original strings in a database and

I'd welcome any sample code.

View Replies !
Set Up A Linux Machine (Fedora 3) As A LAMP Server
I am trying to set up a Linux machine (Fedora 3) as a
LAMP server on a LAN with a Windows XP Prof machine. The boxes are connected
via a cheap switch.

I have added the site address to the Hosts file on both machines, flushed
all chains from iptables on the Linux machine and there appears to be no
firewall on XP.

From the XP machine I can telnet mysite.com 80 and get my html test page -
however when I use Internet Explorer it cannot find my page and responds
"The web page you requested is not available offline". The same thing
happens when I use another box with windows 2000. Pressing the connect
button just sends it off looking for - what I assume - is a DNS site

From the Linux machine I have used Tcpdump to monitor the traffic (at least
this is making me learn about Fedora) on the XP machine. I get plenty of
traffic when I use telnet but nothing when I use Internet explorer - I would
have expected something not that I understand what the messages mean

View Replies !
Php Form To Create A Folder On Linux Server
Is there a simplier way rather than via the Networking tutorial example "shh with php"...? Would I still need to create the priv and pub keys? This is a form creating a folder, both on the same server btw.

View Replies !
Connecting Application From Linux Box To Mssql Server
i have php application on linux server which i want to connect to mssql server on a different workstation. how can i do it. :confused: i have pear installed on the linux box.

View Replies !
Parse Error - Working Local Lan Linux Server
I have just setup my website with a new linux hosting service. I have
copied over my scripts and the jpgraph (the stable version) files from my
working local lan linux server. The hosting service runs PHP 4.3.9 and I
keep getting parse errors like this-

Parse error: parse error, unexpected '=' in
/home/fhlinux199/s/mydomain.org.uk/user/htdocs/jpgraph/jpgraph.php on line
1100

when I look at the content of jpgraph.php it is just fine

$valid_formats = array('png', 'jpg', 'gif');

prior to this it gave me a similar error with an invalid single quote at

$this_>background_image = $aFileName;

View Replies !
Photo Upload - Wont Work On Linux Server
I have this code, works perfectly on Windows server, but now i'm trying
to run it on a Linux server, the form submits, i get no errors, but the
photo doesnt upload, and the caption file doesnt write.... any ideas why?

<?php

include 'gall_settings.inc'

//check if the directory exist or not.
if (!is_dir("$upload_dir"))
{
die ("The directory <b>($upload_dir)</b> doesn't exist");
}

//check if the directory is writable.
if (!is_writeable("$upload_dir")){
die ("The directory <b>($upload_dir)</b> is NOT writable,
Please Chmod (777)");
}

//Check first if a file has been selected
//is_filetoupload_file('filename') returns true if
//a file was filetoupload via HTTP POST. Returns false otherwise.
if (is_uploaded_file($_FILES['filetoupload']['tmp_name']))
{
//Get the Size of the File
$size = $_FILES['filetoupload']['size'];
//Make sure that $size is less than 1MB (1000000 bytes)
if ($size > $size_bytes)
{
echo "<b>Error!</b><br>";
echo "File Too Large. Please try again.";
include ('gall_footer.php');
exit();

View Replies !
Testing Tool That Connects To External Linux Server
I seem to be having difficulties finding a tool that will allow me to debug
my PHP scripts on a remote server. All the tools I have found that run on
windows, assume a windows installation of PHP.

View Replies !
Call To Undefined Function: Mysql_connect() - Red Hat Linux 9.0 Server
I recently installed Red Hat Linux 9.0 server. It installed Apache with PHP
and Mysql by default. I can connect to mysql, create databases, tables fine.

I can also program php and access it through Apache.

Problem is when I try to connect to MySql it gives me the error
"Call to undefined function: mysql_connect()"

I ran phpinfo and found "--with-mysql=shared".

I checked and all the deamons are running (httpd, mysqld)

Do anybody know what is missing?

I usually love to troubleshoot these things, but right now too tired to do
this.

View Replies !
Easiest Linux Distro For Setting Up A LAMP Server?
I've been trying to set up a LAMP server for experimental purpose. Our
production environment is WAMP (Windows Apache2 MSSQL PHP) but out of
curiosity I would like to see if we can operate our site with free software
only.

I have precise little time for this though, so I'm looking for
something that installs everything with just a few clicks. I tried Debian,
but even through I added PHP4 in dselect, it wasn't working in Apache.

The server environment is going to be a VMWare virtual computer, so I would
prefer a distro that doesn't automatically install a GUI.

View Replies !
Problem In Uploading File On Remote Linux Server
i do have a problem that i want to upload a file on the web server my site host on. the problem is that i want to upload it in a folder bt i m not able .

i do have check the permissions its 777 and i do used the copy function first bt it gives an error warning as given:

Warning: SAFE MODE Restriction in effect. The script whose uid is 504 is not allowed to access / owned by uid 0 in /home/virtual/site2/fst/var/www/html/court.php on line 19

code is as follow Code:

View Replies !
PHP On Windows Server
I have been working with PHP in Linux for a while now and I have just been asked about PHP in the windows environment. Where should I go for the best info on what versions work the best with what windows server platforms?
Does mysql work on windows and can I use the same php files written for Linux on Windows?

View Replies !
Change From Win To Linux Server Caused Error SQL State 01S02
I'm using windows server before and there was no problem with the program. The problem happened when i adopt it into Linux servers. I'm using PHP 4.3.0, Ms-Access Database, and ODBC Driver Here's the error message :

Warning: odbc_exec(): SQL error: [unixODBC][Driver Manager]Option value changed, SQL state 01S02 in SQLExecDirect in /home/php/ranking/index.php on line 422 Code:

View Replies !
How To Set Username & Password Dynamically In Apache Settings For Linux Server In Php
This settings allow only one user to access folder.

<Directory /home/webdav/zahn>
AllowOverride None
Options None
Order Allow,Deny
Allow from All
<LimitExcept GET HEAD OPTIONS>
Require user zahn
</LimitExcept>
</Directory>

But we want to access all directory to respective users. that users are from our user table. Please check webexone.com & WEB FOLDER functionality for mapping network drive. then you can understand better way. Code:

View Replies !
How Do We Patch A Windows IIS Server
We run PHP on IIS. I went to php.net to download a patch. We currently have 4.1.1. How do we patch a Windows IIS server?

View Replies !
Blat On Windows Server?
How would I send email on a windows server using Blat? What is the blat equivalent of this? PHP Code:

View Replies !
PHP On IIS Windows 2000 Server
I've downloaded the latest PHP (EXE & ZIP)....

I followed all the instructions I can find and yet PHP will not work with
my IIS !!

Can anyone talk me though exactly how to get them working together?

View Replies !
Web Server With PHP Capabilities For Windows?
Does Apache fro windows allows to run PHP scripts?
If no, where can I find one?

View Replies !
PHP Testing Server On Windows?
I recently got a php job. Until now I've only developed with asp. How
do I develop locally with php? Is there a server that works on windows
for local php development?

View Replies !
LDAP For Windows Server?
I'm wondering if anyone has any clue where to get an ldap server for
windows? I'm trying to avoid installing the resource hog Active Directory on
my server with limited resources(diskspace/memory).

Perhaps that anyone ever compiled sucessfully the OpenLDAP, an opensource
distribution.


View Replies !
Php And Windows Server 2003
I have a website(html)/eshop running on a 3rd party 'windows server 2003'.

I want to include some rss feeds on a html page using a php script.

is there a simple way to test a simple php script in that type of server - ie do i just insert the script & leave the page .html or do i have to change it to .php?

View Replies !
Php Accessing MS-SQL Server On Windows
I will be creating a small web site using php/apache/SQL Server running
on a Win2000 server. It sounds as if there a number of alternatives
for accessing SQL Server: mssql* functions, ADOdb object, using a ADO
COM object, ODBC calls, etc. Has anybody out there evaluated the
alternatives for speed, error handling, quality of documentation, etc?

View Replies !
Windows SMTP Server
I'm trying to send email in PHP, and I was hoping someone could refer me to an SMTP server for Windows that will work with PHP? I'm not coding any PHP but rather trying to setup PHP CMS applications (Drupal, Joomla, etc).  These applications are in a test environment, so I'm not worried about getting flagged as spam.

View Replies !

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