Welcome to Dream.In.Code
Become a PHP Expert!

Join 150,179 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 2,136 people online right now. Registration is fast and FREE... Join Now!




passing parameters while file include

 
Reply to this topicStart new topic

passing parameters while file include

geethalakshmi
27 Aug, 2008 - 03:29 AM
Post #1

New D.I.C Head
*

Joined: 9 Apr, 2008
Posts: 13

Hi
In my script I want to display download count of script to be downloaded. I have written a sperate file 'count.php' to query the database to find the download count and print the result. I have placed the file 'count.php' inside folder HDM.
CODE

Code to display download count
Event Calender(<?php include("HDM/count.php?cnt=HEC_1_2.zip"); ?> )

While executing above code, i got the error
CODE

Warning: main(HDM/count.php?cnt=HEC_1_2.zip): failed to open stream: No such file or directory

even though i have the file 'count.php' inside HDM. Please help me to solve this issue

Regards,
geetha
Free web page scripts



This post has been edited by geethalakshmi: 27 Aug, 2008 - 03:30 AM
User is offlineProfile CardPM
+Quote Post

Computer_
RE: Passing Parameters While File Include
27 Aug, 2008 - 05:43 AM
Post #2

New D.I.C Head
*

Joined: 22 Aug, 2008
Posts: 16



Thanked: 1 times
My Contributions
this is include , not call a script

Your code should look as follows :

CODE

Code to display download count
Event Calender(<?php $_GET['cnt'] = 'HEC_1_2.zip'; include("HDM/count.php); ?> )

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 03:45AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month