473,503 Members | 3,045 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Include for a php.cgi? (Strato.de)

Hi there,

My provider (strato.de) offers me this cgi, which contains some php
elements as far as I guess. I am running my page with php and would
like to include in the over all design the formmanager (contact page)
However, I cannot include it from inside a page

Here is the code I use (without the // obviously)

// <?php
// include("/cgi-bin/formmanager.php.cgi?action=ext_preview&fid=2");
// ?>
The error reported is:

Warning: main($/cgi-bin/formmanager.php.cgi?action=ext_preview&fid=2):
failed to open stream: No such file or directory in
/mnt/am2/02/236/00000005/htdocs/ic-cms/kontakt.php on line 31

Warning: main(): Failed opening
'$/cgi-bin/formmanager.php.cgi?action=ext_preview&fid=2' for inclusion
(include_path='.:/opt/RZphp4/includes') in
/mnt/am2/02/236/00000005/htdocs/ic-cms/kontakt.php on line 31

Can any one help, the help desk at Strato is not particularly helpful
Jul 17 '05 #1
1 2586
Dirk Grutzmacher wrote:
// <?php
// include("/cgi-bin/formmanager.php.cgi?action=ext_preview&fid=2");
// ?>


when including a file, PHP expects the given argument to be the actual file
name and location.

So, in your case, a file with a name matching the argument should exist:

/cgi-bin/formmanager.php.cgi?action=ext_preview&fid=2

To solve your problem, there are two options:

1. Use HTTP to call the script (can be done with include when the url_open
wrappers allow it, or use file/file_get_contents/fsockopen/curl instead)
2. Use system call functions like exec() to invoke the script with command
line arguments, e.g.:

exec("/cgi-bin/formmanager.php.cgi action=ext_preview fid=2");

Of course, the script should then be capable of parsing the command line
arguments.
JW

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
5039
by: steve | last post by:
I am quite frustrated with php’s include, as I have spent a ton of time on it already... anyone can tell me why it was designed like this (or something I don’t get)? The path in include is...
0
6075
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
60
8208
by: Derrick Coetzee | last post by:
It seems like, in every C source file I've ever seen, there has been a very definite include order, as follows: - include system headers - include application headers - include the header...
9
6397
by: zolli | last post by:
Hi, I've been banging my head against this for a while now. Hoping someone here can shed some light on what's going on. On including stdlib.h in a file, I'm seeing the following errors: ...
5
2493
by: David Mathog | last post by:
One thing that can make porting C code from one platform to another miserable is #include. In particular, the need to either place the path to an included file within the #include statement or to...
1
7457
by: Minh | last post by:
I've just installed VS.NET 2003 on my Athlon XP 1800+. However I couldn't get any project with STL includes to compile even if I create a new empty project (and added #include <string>). It gave me...
1
4543
by: ya man | last post by:
when i use #include <iostream.h> in some files i get lots of error messages of the kind 'ambiguous symbol this is solved when i use #include <iostream why is that ? and can i use #include...
3
2690
by: Arpi Jakab | last post by:
I have a main project that depends on projects A and B. The main project's additional include directories list is: ...\ProjectA\Dist\Include ...\ProjectB\Dist\Include Each of the include...
6
2092
by: tshad | last post by:
In my User control, I tried to do this: *************************************************************************** <Script runat="server"> Public ClientName As String = "<!-- #include file =...
0
7067
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5562
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4992
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.