Function.file-get-contents

Mar 25, 2009

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 2 Replies


ADVERTISEMENT

File Get Contents :: Internal Server Error

Jun 22, 2008

When some jobs done via php scripts which use file get contents , page gives internal server error without waiting.

View 3 Replies View Related

Ngix To Serve Static File Contents On CPanel Servers

Jun 17, 2009

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 12 Replies View Related

Plesk 12.x / Linux :: Unable To Add Certificate To Site - File Put Contents Failed

May 23, 2015

When i add the private key and certificate via plesk panel, i get the following error:

ERR [panel] Unable to set the certificate: Unable to put certificate file: Unable to arrange cert file: file_put_contents failed:

View 1 Replies View Related

Zipping The Contents Of Directory

Jul 28, 2008

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 3 Replies View Related

Actual Images And Contents Do Not Show Up

Jun 26, 2008

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 5 Replies View Related

What Is Linux Command For Compressing The Contents Of A Directory?

Oct 13, 2009

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 7 Replies View Related

Simple Bash Command To Copy Only Directory Contents

Sep 15, 2007

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 1 Replies View Related

Plesk 12.x / Linux :: Deny User Upload File Via File Manager Or Hidden File Tab?

Feb 10, 2015

I'm build Plesk Panel for Linux and Presence Builder, I don't want my user can upload their website to hosting via File Manager. How can I do it...

View 2 Replies View Related

Move The Entire Contents Of A Directory Tree To Another Directory

Sep 18, 2008

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 4 Replies View Related

1.com/file.php, 2.com/file.php Where File.php Is Hosted On Main.com/file.php

May 26, 2008

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 2 Replies View Related

Disable Function

Dec 3, 2008

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 2 Replies View Related

Diasbled Function In Php.ini

Apr 12, 2007

suppose that i am a costumer. is it possible to see disabled function in php.ini?
(using any script)

View 1 Replies View Related

Function Checking

Mar 5, 2007

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 7 Replies View Related

Function : Curl_init()

Jul 30, 2007

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 5 Replies View Related

How To Copy My Current Drive Contents To A New Drive

Dec 28, 2007

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 8 Replies View Related

Disable Mail Function

May 21, 2008

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 14 Replies View Related

Using Crypt Function In C++ On Linux

Apr 23, 2008

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 1 Replies View Related

Some Ajax Function Not Working

May 13, 2008

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 5 Replies View Related

Mail Function Not Work

Apr 5, 2008

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 14 Replies View Related

PHP Mail() Function Not Working

Dec 10, 2007

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 13 Replies View Related

PHP Mail() Function Does Not Work

Jul 25, 2007

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 2 Replies View Related

How Much Can Php's Mail Function Really Handle

Apr 15, 2007

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 7 Replies View Related

Function.include Error

Jan 8, 2007

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 2 Replies View Related

Php Virtual() Function Doesn't Work

May 28, 2009

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 5 Replies View Related

How To Enable/disable Mail() Function

Feb 16, 2009

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 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved