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


Advertisements:




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







Function.file-get-contents


I got this warning message from a script I was working on to read XML feeds.

Warning: file_get_contents(url) [function.file-get-contents]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:Apache2.2htdocs est5.php on line 8

but when i run the url itself, it works fine.

i already set allow_url_fopen = On


View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
File Get Contents :: Internal Server Error
When some jobs done via php scripts which use file get contents , page gives internal server error without waiting.

View Replies!   View Related
Ngix To Serve Static File Contents On CPanel Servers
how to setup Nginx webserver on a cpanel server to serve static contents,
say /images folder from every domains hosted on the server so that Apache's load will decrease?

View Replies!   View Related
Zipping The Contents Of Directory
Zip the contents of a directory (/path/to/dir/*) and then include a file in that zip that is located here: /a/whole/different/path/file.jpg. Is there a ZIP parameter that allows me to include that JPG file in the ZIP file that I am creating? Can someone give me the command?

Also, instead of zipping the contents inside of the "dir" directory, can I zip the "dir" directory itself but exclude the full path when creating the zip (/path/to/ part). I can do this with the -j parameter but when I do it also excludes the "dir" directory and only ZIPs the content inside of it.

View Replies!   View Related
Actual Images And Contents Do Not Show Up
i have to reload a page several times. at least once. the templates show up fine, but the actual images and contents do not show up unless i reload the page....this is evident during peak hours but not during normal hours.....

i've done tracert, no lost packets.

View Replies!   View Related
What Is Linux Command For Compressing The Contents Of A Directory?
What is Linux command for compressing all the files under a Directory, as
well as all the files in sub-directories under that directory, so that upon
uncompression the files are created in the right directory and sub-directory.

Also of course what is the command to un-compress this compressed file?

In case: the Linux OS here is Redhat Enterprise and the web server is Apache.

View Replies!   View Related
Simple Bash Command To Copy Only Directory Contents
Can anyone tell me a simple way in Bash to copy all of the contents of a directory (and only the contents), including hidden files, into another, existing directory?

E.g.

Code:

# I have this directory structure
- directory_A
--- existing_file
-
- directory_B
--- some_file
--- some_subdirectory
--- .some_hidden_file

# I want to end up with this

- directory_A
--- existing_file
--- some_file
--- some_subdirectory
--- .some_hidden_file
-
- directory_B
--- some_file
--- some_subdirectory
--- .some_hidden_file

# I *don't* want this

- directory_A
--- existing_file
--- directory_B
----- some_file
----- some_subdirectory
----- .some_hidden_file
-
- directory_B
--- some_file
--- some_subdirectory
--- .some_hidden_file

So far I've been stymied in finding a simple way to do this from the command prompt.

View Replies!   View Related
Move The Entire Contents Of A Directory Tree To Another Directory
I want to move the entire contents of a directory tree to another directory.

So for example we may have a directory with 15 directories inside, each directory contains files itself. I want to copy all the files from the directory tree into another directory located somewhere else one the file system. I want only the "files" to end up in the other directory and not the file structure too.

Im running CENTOS latest version.

View Replies!   View Related
How To Copy My Current Drive Contents To A New Drive
I just purchased a brand new 10K 150GB drive. How can I take an exact copy of my current drive and transfer everything over to the new drive? I think I need to create a snapshop, or mirror it somehow.

What software will do this? I was told trueimage, but its very pricy, is there anything else?

View Replies!   View Related
Disable Function
It possible to disable the disable function for all user expect one account for running few application i need shell_exec, passthru, exec these so for other account it possible to disable it?

View Replies!   View Related
Function Checking
How can figure out which functions are active on my server?
I have root access and the server is Linux.

I want to know wheather the function "fsockopen" is open or not.

View Replies!   View Related
Function : Curl_init()
Fatal error: Call to undefined function: curl_init() in /home/user/public_html/news/include/function.php on line 1526

how to fix this.??
thanks

NB: My server info

Centos
apache1
my php -v give :

Code:
php -v
PHP 4.4.7 (cli) (built: Jul 27 2007 18:31:31)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with the ionCube PHP Loader v3.1.31, Copyright (c) 2002-2007, by ionCube Ltd., and
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Suhosin v0.9.20, Copyright (c) 2002-2006, by Hardened-PHP Project
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies

View Replies!   View Related
Disable Mail Function
I am starting to webhosting company in it I have included a package will be free and add supported and also I want to disable some functions like mail() ..........I mean I want to disable SMTP services anyone have idea how can I do that.

View Replies!   View Related
Using Crypt Function In C++ On Linux
Can anyone tell me in order to use the crypt function (amd md5sum) in a c++ program (g++ on CentOS assuming the cryptography libary is installed) what do I have to

#include

?

View Replies!   View Related
Some Ajax Function Not Working
I got PHP working. But some of the Ajax functions it not working.

For example:
in wordpress admin, i can only use HTML mode to start a new post. I cant switch to VISUAL mode. And it was working before though.

What option do i need to compile PHP with to make it work?

Right now i have:

Quote:

'./configure' '--prefix=/opt/lsws/lsphp4' '--with-litespeed' '--with-mysql' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib'

View Replies!   View Related
Mail Function Not Work
the php mail function not work on my server!

when I run this function not show any error too.

for example I run this code:

<?php
echo "ok";
$to = 'myemail@mydomain.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: test@domainname.com' . "
" .
'Reply-To:test@test@domainname.com' . "
" .
'X-Mailer: PHP/' . phpversion();

if(mail($to, $subject, $message, $headers)){

echo "sent";

}else{

echo "notsent";
}
?>

View Replies!   View Related
Function.include Error
Ive searched google and this forum for hours and have not found any solution to this below error on a site of mine.

I am using php 5.2

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/comosabe/public_html/footer.php on line 5

View Replies!   View Related
Php Virtual() Function Doesn't Work
We setup a new server and we're trying to use virtual() function to work with a certain script that requires it.

We already tried several ways to make it work. But at this moment, we only could make it work on PHP 4 with DSO.

View Replies!   View Related
How To Enable/disable Mail() Function
how to know if mail() function is enabled or disabled on my server? how to enable/disable it?

can it be done via server control panel or is there a shell command for it?

one more thing, where to get/edit the SMTP data for my server?

View Replies!   View Related
Server Slow After Using Mail Function
I used the mail function in php to send mails to my 25000 members in a loop..

After using it my server has gone very slow.. Load has increased a lot from 2 to around 20.. Major load is taken by sql and then httpd (both have increased)..

I had restarted mysql and httpd.. even reinstalled apache but no help..

View Replies!   View Related
Diasbled Function In Php.ini
suppose that i am a costumer. is it possible to see disabled function in php.ini?
(using any script)

View Replies!   View Related
Function.include Error After Transfer
We transfer some hosted website from our usa server to our cana server and they have function.include error in new server.

View Replies!   View Related
PHP Mail() Function Not Working
I have just changed servers and uploaded a mail() script which was working on my previous config but does not work on the new server config. What is stopping the emails from being delivered, is there something new in WHM that I need to do?

Here are my WHM and cPanel details:

WHM 11.11.0 cPanel 11.15.0-R18264
REDHAT 4 i686 on standard - WHM X v3.1.0

View Replies!   View Related
PHP Mail() Function Does Not Work
I just re-installed PHP4, Apache, and MySQL and now the "mail" function in PHP will not work. Is there a way to correct this? Is there some configuration value in Apache or PHP I must change?

View Replies!   View Related
How Much Can Php's Mail Function Really Handle
I have mixed feelings on the mail() function in php. I've seen it send out amazing numbers of emails and yet I keep reading that it is prone to problems. I'm wondering if someone can put an approximation on what you could/would send out in say 60 seconds. I know that there are tonnes of variables, so i'll try and remove a few:

- server hardware is typical of a cpanel/WHM shared hosting environment
- running apache/linux
- email is say 20kb HTML format
- mail is sent in a php script loop, one by one; alternatively, mail() could be called in clusters of x emails - like send 5 emails at once
- there are 400 recipients

View Replies!   View Related
Imagettftext :: FreeType Library Not Available, Function Does Not Exit
i use VPS linux, And one of my member asked me To help him.

He faced an error that say, 'FreeType library not available. (Function imagettftext does not exist)'

and requested me to avtivate this for him.i have no information about it that how can i do it.

View Replies!   View Related
PHP Mail() Function Stopped Working
I have a dedicated that suddenly stop php mail() function to work.

Very strange because if I run php script with mail() function as root on command line all working fine.

But If I run php script with mail() function in my browser so not work. Seems that only ROOT can run mail() function.

View Replies!   View Related
PHP Mail() Function Not Working With Lighttpd
I recently started using lighttpd + with PHP using Fast-CGI on a server hosting 14 blogs powered by WordPress, the server works great and this change reduced server load in about 50% which is nice for us, considering some of our blogs have a very high visitor traffic.

Our only problem so far is that since we switched to lighttpd the PHP's mail() function is just not working. I have compiled and re-compiled PHP and Lighttpd without any effects. I have a test site still working with Apache and PHP scripts can send mail without problems.

I've searched forums and Google for some kind of answer but none whatsoever maybe someone can give me pointers on how to solve this. Thanks a lot!!

Server details:

Lighttpd version: 1.4.15
PHP version: 4.4.4
Kernel: 2.6.9-42.0.3.ELsmp
Server has cPanel/WHM installed

PHP configure options:

--prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --with-curl --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-gettext --with-imap=/usr/local/imap-2004g --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --enable-magic-quotes --with-mysqli --with-mysql=/usr --with-openssl --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --with-xmlrpc --with-zlib --with-kerberos --with-imap-ssl --enable-fastcgi --enable-force-redirect

View Replies!   View Related
Setting Up PHP Mail() Function On New Server
how to set up the mail () function in my PHP.ini on a Linux server.

Is there a generic path that I need to use in order to allow the mail function to work in the scripts?

We do have a mail server set up, the address of which being "mail.companyname.com" ... do I need to insert that into the ini file somwhere instead?

View Replies!   View Related
Enable PHP Function Via Httpd.conf
I 'd like to enable php function "mail" via directive for specific account in httpd.conf
what's directive syntax for it,

View Replies!   View Related
Configure Webserver So That The Php Scripts To Be Able To Use The Mail() Function
I just purchased a vps from rapidswitch, installed lamp, webmin, etc. All is working fine, with one exception. I can't send mail via mail() function.

I have set the MX so that my email addresses are handled by google for domains so i can send and receive mails without problems.

What i cant do, is for example to install a cms and make it send emails for the new registered users, etc.

I have installed postfix via yum, and i've tried to configure it.. but i kind of give up after a few hours of trying.

Someone could point me to the right direction on how to configure postfix for just this ? to be able to send mails via php.

I don't care if it's postfix, qmail, etc.

View Replies!   View Related
Fatal Error: Call To Undefined Function: Imagettfbbox()
Fatal error: Call to undefined function: imagettfbbox()

I am getting the above given error message.

View Replies!   View Related
Error: Warning: Mysql_connect() [function.mysql-connect]
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /home/.../public_html/enhu.com/includes/connection.php on line 5

Database connection failed: Access denied for user 'root'@'localhost' (using password: YES)

i'm using wamp.

how must i fix this error?

View Replies!   View Related
Iptables LKM Ip_tables Missing So This Firewall Cannot Function
When I click Start Firewall

I get this

iptables LKM ip_tables missing so this firewall cannot function unless you enable MONOLITHIC_KERNEL in /etc/csf/csf.conf
Error: aborted, at line 156

View Replies!   View Related
Email Function Not Working (MS Window Server 2003)
We have a MS Window server 2003 with SP2, currently there is a website running, the webiste is desgined by using asp.net 2.0 c#.

We reinstalled the window server 2003 last week, and we found the email functions not working any more(users in the website can't receive email each other).

I have spent days and trying to figure out, but no luck, I have tried to reset the IIS settings, SMTP Virtual settings, and add/remove windows componets settings...

View Replies!   View Related
Iptables Service Need To Be Running In Order For APF To Function?
Does the iptables service need to be running in order for APF to function? If so, can APF act like it is running, when the iptables service is not running, thus giving you a false sense of security?

View Replies!   View Related
IIS7 And PHP5 : Call To Undefined Function Mysql_connect()
I've been struggling with IIS continuously.

I simply cannot get things to work on it like it's supposed to.

Right now...PHP is running fine...but MySQL won't work.

I've been searching Google for the past 12hours trying to fix this, but it won't budge.

In my "php.ini" file, I enabled the "php_mysql.dll" extension.

I've also tried several other things, but nothing works.

View Replies!   View Related
Fantastico: Fatal Error: Call To Undefined Function Get_output() In...
I'm getting the following error when I'm trying to access Fantastico from cPanel:

Fatal error: Call to undefined function get_output() in /tmp/cpanel_phpengine.1238461774.28418Q1lWZzC0r_ on line 971

I have safe_mode set to On and shell_exec function disabled. When allowing shell_exec and safe_mode Fantastico is working in this server.

But I have many server where safe_mode set to On and shell_exec function is disabled and Fantastico is running just fine.

View Replies!   View Related
Transfering My Clients To A New Host But Maintaining Website Function And Integrity
I have 35 clients hosting on my dedicated server.

I am going to be ending my service as a host provider, and I need to transfer all of my clients to a new host.

Many of my clients sites were written 3-4 years ago in php while global vars was still off, and so many of the sites might not function correctly if I just pop them to a new host.

My first solution would be to bypass the php .ini file with a public_html/ based ini that would override any newer server settings.

Does anyone know of a good host that could take my clients? And also support the php version locally to the shared account?

I need a host that is reliable, and honest.

Am I going about this the right way?

I am open to any suggestions or advice on this.

I should probably add, all of my clients pay on an annual basis from $89-$140. None of my clients run video sites or any heavy media stuff.

View Replies!   View Related
Howto Convert Ini_set Function In Code To Php.ini Setting
I have a website that was running fine for a month or two until my host recently changed some settings on the server, and now it shows a bunch of errors. I contacted the host and they said >

"To avoid the errors, please do not use disabled function. If you need such functionality, you can have your own php.ini on your root http folder containing only necessary option"

Since I'm not a programer, I have no idea what they're talking about. So, I asked them how to do that, they're reply of course was>

"Please consult with the script writer on how to convert ini_set function in your code to php.ini seting. As the script is not encrypted, you can do it with commenting all ini_set calls and write a substitute on php.ini (Create php.ini file in webroot folder)."

I tried to contact the developer, but it appears he has gone MIA! So, now I am left with no clue how to fix the website, so I turn to you guys!

The website is [url]. You can see the errors in the header, but I'll post them here as well>>

"Warning: ini_set() has been disabled for security reasons in /home/buymydom/public_html/includes/global.php on line 3

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/buymydom/public_html/includes/global.php:3) in /home/buymydom/public_html/includes/global.php on line 32

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/buymydom/public_html/includes/global.php:3) in /home/buymydom/public_html/includes/global.php on line 32"

My question is, How do I convert ini_set function in my code to php.ini?

View Replies!   View Related
Ffmpeg :: Cannot Open Shared Object File: No Such File Or Directory In Unknown On Line 0
Rapidly growing error logs showing the same message

$ug-non-zts-20020429/ffmpeg.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429//usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0

root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429
./ ../ eaccelerator.so*
root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429
./ ../ eaccelerator.so*

Using cpanel 11 / centos 4

View Replies!   View Related
Put A .FLV Format File On A Web Page With Out Using The .swf File?
how to put a .FLV format file on a web page with out using the .swf file?

View Replies!   View Related
/usr/bin/gzip -p Correct Option To Unzip First File To Second File?
I'm trying to do this

/usr/bin/gzip -p /home/mysite/public_html/shop/feeds/myfile.xml.zip > /home/mysite/public_html/shop/feeds/myfile.xml

But it just tells me

/usr/bin/gzip: invalid option -- p
X-Powered-By: PHP/5.2.5
Content-type: text/html

How do I find the correct option to unzip first file to second file?

View Replies!   View Related
How Can I Show Hidden File In Cpanel File Management Tool
i have a server with centos,

i need to edit the hidden file .htaccess from the file management tool of cpanel,

but the hidden files not shown,

ow can i modify the setting and let the files shown in the file management tool of cpanel?

View Replies!   View Related
Links Files In Linux (file.txt For File.php)
Today I found some cstomer on the servers make a link for named it file.txt and link it to other customer php file.

so that customer have the ability to show the other custoer file content when visiting the url because it is a text wile originally it is a php file.

the php file was a config file, so now he know the database password , and because he is in the same server he can use that databse.

the question , how to avoide this prolem in the future?

notes , the SuExec is rnning and the open_basedir protection is enabled, but the problem still exists.

View Replies!   View Related
How Can I Convert A PDF File To A WORD Doc. File
have some E_Books in PDF I want to convert them to word document format

Also need a share hosting for this

View Replies!   View Related
1.com/file.php, 2.com/file.php Where File.php Is Hosted On Main.com/file.php
Say I have 2 websites and they all use file.php which is located on mainserver.com/file.php.

I want to use the file like this:
website1.com/file.php
website2.com/file.php

View Replies!   View Related
Warning: Fsockopen() [function.fsockopen]: Unable To Connect To Localhost
Cannot send mail via php mail send

Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:25 in /home/user/public_html/smtpmail/class.smtp.php on line 105

How do I correct this? I'm using Cpanel with php 4.4.8, apache 2.2, mod suphp

View Replies!   View Related
[cPanel] Function Mail(); And Fowarders E-mail - Not Working
I have problem:
1. Function mail(); not working

2. osCommerce e-mail error:

Code:
Gid 32157 is not permitted to relay mail, or has directly called /usr/sbin/exim instead of /usr/sbin/sendmail.

3. Fowarders working only on internal accounts e-mail
fowarder@mydomain.com --> email@mydomain.com - working
fowarder@mydomain.com --> my-emiail123@mail.pl - not working

This is VPS cPanel (OpenVZ) on my dedicated server.

View Replies!   View Related
Real Meaning Of RDNS Or The Real Function?
what is the real meaning of RDNS or the real function?

Because i have an account with reseller, then i need to hide the Name servers of a shared IP into my own name server IP.

View Replies!   View Related
PayPal Or CC On File?
If a hosting company offers both paypal and CC on file (CC on file with auto-subscription/-recurring ability), which payment method do you prefer to use as a customer?

View Replies!   View Related
Clear The File
How to clear all content in e.g file.txt via ssh(OS is Debian)?

I need a script to merge contents of 2 .txt files, e.g file1.txt and file2.txt to 1 file - file3.txt

View Replies!   View Related
File Sharing
Can i share files from linux to linux machine using SAMBA

View Replies!   View Related
File Bandwidth
Can i find how much a file consumes bandwidth when the file is executed on the server or when the request is made on the server?

View Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved