27, May 2012

anyone familiar with PHP switch, read this - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: anyone familiar with PHP switch, read this
« previous next »
Pages: 1 [2] Print
Instabuck - The easy way to sell digital products online

Author Topic: anyone familiar with PHP switch, read this  (Read 1900 times)
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 886
1148 credits
Members referred : 4



« Reply #20 on: Dec 21, 2005, 09:11:58 pm »

tlove2.com is my windows xp server which is gonna be changed to windows 2000 server soon, and WSS is linux i believe, both use Apache


Last blog : phpHaze 1.59.1 in Development
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #21 on: Dec 21, 2005, 09:14:23 pm »

In the linux machine, is the cgi working when you run it alone?

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 886
1148 credits
Members referred : 4



« Reply #22 on: Dec 21, 2005, 09:42:26 pm »

yes of course cgi works on the linux server.. and it works when u call them alone on my windows server going to tlove2.com/hosting/new.cgi...  it works just fine


Last blog : phpHaze 1.59.1 in Development
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #23 on: Dec 21, 2005, 09:52:55 pm »

Then you should redirect the user to the script, instead of including it. This will solve the problem.

If you want to show the cgi results into your index.php page then you can try something like :

Code:
<?php
 
echo file_get_contents 'http://www..........com/pathToCgi.cgi' );

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 886
1148 credits
Members referred : 4



« Reply #24 on: Dec 21, 2005, 09:56:48 pm »

i dont want to redirect them, because that way they will be taken out of the layout.. but the get file contents code u just showed, works. i suppose it will work the same as before, accepting accounts and allowing people to login. sucks, i cant figure out how to show the results of those forms inside the layout..


Last blog : phpHaze 1.59.1 in Development
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=1033
Tags : forums apache linux php.ini httpd.conf Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: 1 [2] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: anyone familiar with PHP switch, read this
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 09:30:03 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 62.814
Total Topics: 11.028
Total Members: 21.451
Tutorials : 58
Resources : 929
Designs : 395
Latest Member: sobbin

109 Guests, 2 Users online :

12 users online today:




Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.