VM-F Meeting #1 - Re: VANESSAMAE.ORG
Moderator: zeta
Thanks machalita and El_Guille. I have the flash bit under my belt at the moment but I'll let you know if I require any extra assistance. Possibly when we come to creating some screensavers and multimedia stuff for the downloads section. Do you have any flash stuff I can take a look at?
El_Guille - the new site will be powered by php, but this forum is still in CGI. Well I know absolutely nothing about CGI (yet I managed to install this thing ???), so perhaps I'll need your help with a few things for the forum. I think street_rat was thinking about using the calender with the forum, but I'm not sure how that works yet. I haven't seen the revamped version of your site before, it looks great!
El_Guille - the new site will be powered by php, but this forum is still in CGI. Well I know absolutely nothing about CGI (yet I managed to install this thing ???), so perhaps I'll need your help with a few things for the forum. I think street_rat was thinking about using the calender with the forum, but I'm not sure how that works yet. I haven't seen the revamped version of your site before, it looks great!
-
- VMF Reg
- Posts: 77
- Joined: Thu Jul 18, 2002 1:55 pm
- Location: Buenos Aires, Argentina
- Contact:
Hi Aventine, if your server support SSI (Server Side Include) you can add CGI in your html as the following:
and therefore combine PHP with CGI. In this example, counter.cgi will return the total of visitors, or the number of visitors in the past 15 minutes, or anything you need!
(PD: i don't know anything about flash...)
(PD2: sorry if i'm off-topic...)[/color]
Code: Select all
<!--#exec cgi="/cgi-bin/counter.cgi" -->
(PD: i don't know anything about flash...)
(PD2: sorry if i'm off-topic...)[/color]
- Niccolò Paganini
- VMF Reg
- Posts: 88
- Joined: Sun Nov 10, 2002 11:01 pm
- Location: Toronto, Canada
- Contact:
Whao, I haven't been here for a while, is it just me or did some of the colours change in this forum? ???
I'd like to see the finish product of this new site when it is done, it'll be interesting to see it. I don't know any scripting but I have a few wallpapers that I can contribute if you are interested.
I'd like to see the finish product of this new site when it is done, it'll be interesting to see it. I don't know any scripting but I have a few wallpapers that I can contribute if you are interested.
Uh... no of course not... :p
Ok I accidentally replaced the CSS file with the new one for the brand new site, but that's ok, a bit of grey against brown for a few months won't hurt.
For our multimedia section we will include screensavers and wallpapers etc. and we definitely want a lot of fan contributions in this section! I'll announce it on the new site when it is launched so you can start sending them in then.
Ok I accidentally replaced the CSS file with the new one for the brand new site, but that's ok, a bit of grey against brown for a few months won't hurt.
For our multimedia section we will include screensavers and wallpapers etc. and we definitely want a lot of fan contributions in this section! I'll announce it on the new site when it is launched so you can start sending them in then.
-
- VMF Elite
- Posts: 379
- Joined: Tue Jul 16, 2002 11:05 am
- Location: Adelaide
-
- VMF Reg
- Posts: 77
- Joined: Thu Jul 18, 2002 1:55 pm
- Location: Buenos Aires, Argentina
- Contact:
Hi Street_Rat. I'm sorry if I wasn't clear enough. You don't "combine" PHP with CGI, I mean you can't write PHP and CGI in the same script neither use the same variables. Let me explain a little bit more: If you have a specific CGI-script that prints a value or something similar (like the number of visitors), you can insert this value in your HTML or PHP with the code
Here is an example:
This's a very primitive CGI script (hello.cgi)
Next, you add the following code in your PHP / HTML
And it will print "HELLO WORLD" in your php or html, but ONLY if your sever support SSI (secure server include).. Don't worry, almost every paid server support this.
PD: I guess we're off-topic here. I think it will be much better if we continue this chat in another "room" in this forum.[/color]
Code: Select all
<!--#exec cgi="cgi-bin/script.cgi"-->
Here is an example:
This's a very primitive CGI script (hello.cgi)
Code: Select all
#!/usr/bin/perl ## THIS LINE IS NECESSARY
print "Content-type:text/html\n\n"; ## THIS LINE IS NECESSARY
print "HELLO WORLD";
Code: Select all
<!--#exec cgi="cgi-bin/hello.cgi"-->
PD: I guess we're off-topic here. I think it will be much better if we continue this chat in another "room" in this forum.[/color]
-
- VMF Elite
- Posts: 379
- Joined: Tue Jul 16, 2002 11:05 am
- Location: Adelaide
ahh, ok, that clears it up.
what about with functions, if u include a cgi program inside a php script, and have the cgi return somthing, and assign that to a php variable, something like
$thisVar = <!--#exec cgi="cgi-bin/script.cgi"-->
is that possible? i dont think it is, but it would nice if something like this was.
can a cgi script return values?
ur right though, this isnt really the place.
but this will probabbly be the end of this.
what about with functions, if u include a cgi program inside a php script, and have the cgi return somthing, and assign that to a php variable, something like
$thisVar = <!--#exec cgi="cgi-bin/script.cgi"-->
is that possible? i dont think it is, but it would nice if something like this was.
can a cgi script return values?
ur right though, this isnt really the place.
but this will probabbly be the end of this.
Street_Rat
--> a simple man with a simple wish
--> a simple man with a simple wish
-
- VMF Reg
- Posts: 77
- Joined: Thu Jul 18, 2002 1:55 pm
- Location: Buenos Aires, Argentina
- Contact:
I never tried to use this $thisVar = <!--#exec cgi="cgi-bin/script.cgi"--> code, and i think it won't work. 
Yes, CGI returns values, but i don't know if these values could be considered by PHP.... again, I guess not.
I think the only way to combine both languages is through a printed variable or printed text (like the "Hello World" example). Another way could be writing data into a text file with php and then reading this file with the CGI-script.
I don't know much about PHP, and our site runs 100% CGI. So i can't help you with the PHP-CGI integration... But if you need a specific script, i'm offering my CGI knowledge.

Yes, CGI returns values, but i don't know if these values could be considered by PHP.... again, I guess not.
I think the only way to combine both languages is through a printed variable or printed text (like the "Hello World" example). Another way could be writing data into a text file with php and then reading this file with the CGI-script.
I don't know much about PHP, and our site runs 100% CGI. So i can't help you with the PHP-CGI integration... But if you need a specific script, i'm offering my CGI knowledge.
-
- VMF Elite
- Posts: 379
- Joined: Tue Jul 16, 2002 11:05 am
- Location: Adelaide
-
- Active Member
- Posts: 65
- Joined: Sat Jan 18, 2003 4:23 pm
- Location: Shropshire