|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Article Dicussion: Creating a News System with PHP
If you have any questions or comments about this article please post them here.
This forum post relates to this article |
|
#2
|
|||
|
|||
|
Notice: Undefined index: submit in c:\inetpub\wwwroot\news.php on line 3
That's the error that I get when running the addnews.php part of this. |
|
#3
|
|||
|
|||
|
Code for news.php
PHP Code:
This code worked for me. The Error you recieved Quote:
Could have occured when you first opened the page. To fix this you may simply replace, PHP Code:
with PHP Code:
I hope this helped |
|
#4
|
|||
|
|||
|
Keep on addding when refresh
Hallo, anybody can help me..
when i refresh my browser, it keep posting new news... How to prevent this |
|
#5
|
|||
|
|||
|
I am confused. You don't say what file the php scripts go in, help me!
|
|
#6
|
|||
|
|||
|
Warning: fopen(news.txt): failed to open stream: Permission denied in D:\Websites\URL on line 116
thats what i get, line 116 is PHP Code:
|
|
#7
|
|||
|
|||
|
Spacious,
Do you have write permissions set on that folder? Make sure you do, otherwise, you would be receiving that error. Also, what's the line above 116? Can you post a block from that area. Thanks. |
|
#8
|
|||
|
|||
|
PHP Code:
if i dont do you know of another way to do something similar? |
|
#9
|
|||
|
|||
|
Hi, I have a little problem in that I can not edit or delete any news posts?
Here is a direct link here. I have also included the source as a zip if needed. Please help, what could be wrong? Regards, TinnyFusion. |
|
#10
|
|||
|
|||
|
I have now totally reinstalled everything and updated all server applications to the latest as follows: Apache Server v2.0.48, ActivePerl v5.8.2.808, PHP v4.3.4, MySQL v4.0.17, and phpMyAdmin v2.5.4 but I still can not edit or delete any of my posts...?
Any help regarding this matter would be great. Regards, TinnyFusion |
|
#11
|
|||
|
|||
|
mmm, I turn 'register_globals' to on and everything works without any issues?
But is this not a securityrisk? How do I get the same effect but with register_globals turned off? |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Article Dicussion: Creating a News System with PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|