Donate SIGN UP

Any .php Peeps On Here ?

Avatar Image
bazwillrun | 00:25 Sat 07th Nov 2015 | Technology
10 Answers
Trying to get an online form to work and keep getting the following on "submit"

anybody have any ideas or point me in the right direction ?
thanks

Warning: include(send_it/config.inc.php) [function.include]: failed to open stream: No such file or directory in /home/content/83/12186383/html/*******/send_it.php on line 4

Warning: include() [function.include]: Failed opening 'send_it/config.inc.php' for inclusion (include_path='.:/usr/local/php5_3/lib/php') in /home/content/83/12186383/html/*******/send_it.php on line 4

Warning: include(send_it/email.inc.php) [function.include]: failed to open stream: No such file or directory in /home/content/83/12186383/html/*******/send_it.php on line 5

Warning: include() [function.include]: Failed opening 'send_it/email.inc.php' for inclusion (include_path='.:/usr/local/php5_3/lib/php') in /home/content/83/12186383/html/*******/send_it.php on line 5

Warning: include(send_it/send_email.inc.php) [function.include]: failed to open stream: No such file or directory in /home/content/83/12186383/html/*******/send_it.php on line 6

Warning: include() [function.include]: Failed opening 'send_it/send_email.inc.php' for inclusion (include_path='.:/usr/local/php5_3/lib/php') in /home/content/83/12186383/html/*******/send_it.php on line 6

Warning: include(send_it/send_mysql.inc.php) [function.include]: failed to open stream: No such file or directory in /home/content/83/12186383/html/*******/send_it.php on line 7

Warning: include() [function.include]: Failed opening 'send_it/send_mysql.inc.php' for inclusion (include_path='.:/usr/local/php5_3/lib/php') in /home/content/83/12186383/html/*******/send_it.php on line 7

Warning: include(send_it/thankyou.inc.php) [function.include]: failed to open stream: No such file or directory in /home/content/83/12186383/html/*******/send_it.php on line 8

Warning: include() [function.include]: Failed opening 'send_it/thankyou.inc.php' for inclusion (include_path='.:/usr/local/php5_3/lib/php') in /home/content/83/12186383/html/*******/send_it.php on line 8
Gravatar

Answers

1 to 10 of 10rss feed

Best Answer

No best answer has yet been selected by bazwillrun. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
These links are nothing more than the results of a bit of googling but I hope that you'll find something relevant:

http://stackoverflow.com/questions/8634543/warning-include-config-config-php-function-include-failed-to-open-stream

http://stackoverflow.com/questions/11108333/failed-to-open-stream-include-what-is-causing-this

In particular, I note the reference (in the second link) to the problem being related to having one folder nested inside another. Perhaps that's relevant in your case?
What code lines are contained in your send_it.php file?

The warning messages appear to indicate that it is failing to find a number of program 'Include' extensions that are declared within your 'send_it.php' coding file, defined at lines 5,6,7 & 8 in send_it.php. If that is the case then check the that the include files & file paths such as 'send_it/send_email.inc.php' actually exist in those locations.
Question Author
thanks both...

php isnt my usual cup of tea...i gathered it was a file /path issue but not sure.
Trouble is im still none the wiser...

Here is the send_email.inc.php :


****************************

and here is the send_it.php :



and in the same folder are the following files:

config.inc.php
ccjoin.php (this is the actual form)
email.inc.php
send_msql.inc.php (this file is totally blank)
thankyou.inc.php

all the files are in one folder called ccjoin which i uploaded to the server from my Windows 10 desktop
Question Author
Its removed the code

heres a pic link...

http://i68.tinypic.com/zvy4cg.jpg
First thing, take a look on your Server to determine if the following files exist on the Server located in the directory "send_it" :-

- 'config.inc.php'
- 'email.inc.php'
- 'send_email.inc.php'
- 'send_mysql.inc.php'
- 'thankyou.inc.php'

Are those files located in the directory "send_it" ?
Question Author
Unfortunately I cant look right now as Im out, but I know for a fact they arent , all the files are in a folder called "ccjoin" ...

Ill create a folder inside ccjoin named "send_it" and put those files in it and try again.

thanks ..will report back....
Ok, with all the files being in the same directory as the main 'send_it.php' program file, which I am assuming all sits at the root directory "/" of your server and there is no 'send_it' directory, use a text editor to modify the 'send_it.php' file and change the 'include' statements to read as:

include('./config.inc.php')
include('./email.inc.php')
include('./send_email.inc.php')
include('./send_mysql.inc.php')
include('./thankyou.inc.php')

So to clarify, for the above to have some success of finding the 'include' files, a directory listing of your Server root "/" would be expected to list the files:-

send_it.php
config.inc.php
email.inc.php
send_email.inc.php
send_mysql.inc.php
thankyou.inc.php

Another point to consider is that if the 'include' files have other references embedded within them to file directory paths in order to perform its function correctly and those file paths are incorrect, it will fail for the same reason you are currently encountering.

As such, best to use a text editor and check each of those files to confirm correct file paths.
Question Author
Ok, went with the original instruction of putting the files in a folder and now all error messages have gone, and a screen with thankyou appears and after a fixed delay it then goes to a given url, in this case im just going back to the form, so that part of the process all seems to be in order.

Only one problem now its not sending the form !...
Another can of worms...
Theres email addresses where they should be but nada...nothing being sent.
Having a root around in the files to see if theres anything amiss
Any other help greatly appreciated..

Give me plain HTML and CSS any day !
Question Author
Ok all working now.
It was sending but purely by chance there was a delay...seems my ISP was having issues...

Thanks for the help
Good to hear you are ok now!

1 to 10 of 10rss feed

Do you know the answer?

Any .php Peeps On Here ?

Answer Question >>

Related Questions

Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.