473,395 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

public_html/get.php on line 24

11
HI
please help me
I get this erro on my website ==>

Warning: fopen(the-includes/counternya.db) [function.fopen]: failed to open stream: Permission denied in /home/admin/domains/mydomain.com/public_html/get.php on line 24

Warning: fwrite(): supplied argument is not a valid stream resource in /home/admin/domains/mydomain.com/public_html/get.php on line 25

Warning: fclose(): supplied argument is not a valid stream resource in /home/admin/domains/mydomain.com/public_html/get.php on line 26

Expand|Select|Wrap|Line Numbers
  1. $data1 = file_get_contents("the-includes/counternya.db") + "1";
  2. 24- $fp = fopen("the-includes/counternya.db", "w");
  3. 25- fwrite($fp, $data1);
  4. 26- fclose($fp);
how do solve this problem ?

Thank you

pitgo
Apr 17 '10 #1
3 1685
Dormilich
8,658 Expert Mod 8TB
change the file permission, so you’re allowed to write.
Apr 17 '10 #2
pitgo
11
@pitgo
Hello
thanks for respond , is solved
thank a lot
////////////////////
on another script i have this problem ,
after corect database details,username/password but i get this error==> Could not connect: Access denied for user 'yourdb_username'@'localhost' (using password: YES)

pitgo
Apr 17 '10 #3
Atli
5,058 Expert 4TB
Hey.

Please post new, unrelated questions into new threads. Having more than one question in a single thread can get very confusing.

Thanks.
Apr 18 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: acrux14 | last post by:
Hi, I'm trying to include PEAR's Net_IPv4 module in a web PHP script I'm coding. Using PHP v4.4.0. Other scripts on this web server (not personal user scripts, but main site ones) call it...
1
by: Leszek | last post by:
Hi. Is it possible to pass to a script a path to a file which is outside public_html? I have this function : function okno( film ){ gora = screen.height/2-315; lewy = screen.width/2-350;...
2
by: theSammy95 | last post by:
I have a small Linux webserver, and want to find a (php) script that lets my users download files located outside of the public_html folder Anyone that knows how or have a readymade solution? ...
3
by: sickboy | last post by:
$channels=$_GET; if (empty($channels)) { $channels='blank'; } changechannels($channels); $theatre=$_GET; if (empty($theatre)) { $theatre='splash'; } changetheatre($theatre); $info=$_GET; if...
10
by: goodguyjam | last post by:
Hi again. I now get the above error with the exact same code as in my previous question. All I did was to rearrange the lines...no code changes...help! To assist you experts, line 11 contains this...
6
by: goodguyjam | last post by:
Hi all, I'm having trouble with mysql. I've just finished my php coding for HTTP authentication and with some help am now getting a login window pop up whenever I click on a link on my website...
11
by: salmobytes | last post by:
Perhaps this is an apache server question, rather than a php question. But I want to use a simple php upload script in a user-home-sub-document-root dir on a standard linux box. If php is a...
6
by: proudlyphp | last post by:
unexpected T_VARIABLE in /home2/swhisa/public_html/suggestion/sugadddb.php on line 8 My code is the following and I get the error message above. Please help <?php ob_start(); include...
9
by: exoduses | last post by:
Hi, I was wondering if anyone could help me. This site is for college, and I have everything else working, except for this PHP thingy. This is the error message I get: Parse error: syntax error,...
1
by: Lan Mind | last post by:
If anybody could give me some pointers, I haven't been able to figure out how to place a php_config file (it's all fake right now) higher than the public_html folder. Info: Host-...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.