Teen Programmers Unite  
 

 

Return to forum top

need php help!

Posted by mjcason [send private reply] at January 14, 2002, 04:44:19 PM

I need some help. actually I need someone to help me convert my website to php. I have the genearl design layed out and complete the only problem is its gonna be a pain to update when theres like 30 pages. So if anyone can convert www.coldoc.com, which is currently all in html, to php then please lmk by email at mj_cason@hotmail.com. Fastest responce would be AIM my SN is MikeJc8725. There will be some free hardware involved if you can be of use to me. Might need you to answer questions down the road also. So please help, I know someone out there knows php and wants free hardware....

Posted by gian [send private reply] at January 15, 2002, 02:40:48 AM

If you have specific questions, post them here, and I will be happy to help, but sorry, I only work for bandwidth :-)

Posted by DakeDesuDx [send private reply] at January 15, 2002, 02:39:00 PM

What type of hardware?

Posted by buzgub [send private reply] at January 15, 2002, 06:13:19 PM

I'd work for bandwidth as well, but not for hardware.

Posted by AngelOD [send private reply] at January 16, 2002, 10:57:08 AM

Hehe.. Well it certainly depends on the hardware involved here. ;)

Posted by mjcason [send private reply] at January 16, 2002, 01:16:17 PM

what type of bandwidth, like image hosting or something, I could host some small files under 5megs for the person who does it. Also the kind of hardware would vary from heatsinks to motherboards and anything else i can mail out to you. Please contact me on AIM my screen name is MikeJc8725 if your interested. And please only expierienced people. if you cant reproduce my site perfectly using php then your not expierienced.

Posted by vladimir_l [send private reply] at January 16, 2002, 02:59:05 PM

What so PHP , thats great , but the only problem is - why ??? Why do you need PHP, as far as I know if you don't need its dynamic features , or its database connectivity or its ability to reproduce webpages , why ? Please answer !

Posted by mjcason [send private reply] at January 16, 2002, 03:18:21 PM

so i can reproduce pages my site will end up having like 100-300 pages with in a couple weeks and if i have to make a update to the menu it would be a lot easier if i only had to change the php file instaed of editing everypage. you know what i mean now id there anyone willing to do this for me. just convert one page into php and then help me if a need any help all for some free bandwidth and hardware.

Posted by Psion [send private reply] at January 16, 2002, 04:37:09 PM

That is a ridiculous use for PHP or any scripting language. You should use SSI for something that simple.

Posted by DakeDesuDx [send private reply] at January 16, 2002, 04:59:22 PM

I was taking it to mean he wanted the site to be web updatable, which is a decent use for PHP, possibly storing information in databases (which I am more of a flat file guy), only to construct the page when it is asked for....

But as a replacement for SSI?

Sorry, I must stop assuming that most people are capable of rational though.

Like using PHP this way, is like using an F1 race car to go to the corner store (Yes! I AM exagerating. There is no way that they ratios of this comparision are alike, php is not as fast as a F1 car).

Posted by DakeDesuDx [send private reply] at January 16, 2002, 05:02:00 PM

Just so you know for future referances on my langauge behaviour, I listened to too much Frank Zappa when I was younger. One of the songs I liked was "Valley Girl," which has ultimately ruined my ability to communicate in the english langauge. This is a strange phenomon primarly cause most guys do not talk that way.

Perhaps I should go to hairdressor school to be with my kind?

Posted by mjcason [send private reply] at January 16, 2002, 05:57:11 PM

ok then tell me how i can use ssi so that when my site has 300 pages i only need to update one and then all the otheres will look alike. minus a center part that will differ depending on what page it is. but i have used php for this before and it works wonderfully as you only would need to update one file and then everypage that points to it would be changed acourdingly,,, corect?

Posted by buzgub [send private reply] at January 16, 2002, 07:23:00 PM

SSI stands for server side includes. It means that before the server delivers any of your pages, it will read the page, substitute any included files in to the file, then send the result to the web browser. As for the syntax, take a look at http://www.wdvl.com/Authoring/SSI/Intro/format.html.

Posted by mjcason [send private reply] at January 16, 2002, 07:29:41 PM

http://www.coldoc.com/index2.shtml
i got it working with shtml o well i guess it works well. i wanted to use php but who cares, lol

Posted by AngelOD [send private reply] at January 17, 2002, 01:34:57 AM

DakeDesuDx -> Be with 'your kind'? What *are* you talking about?

Posted by vladimir_l [send private reply] at January 17, 2002, 10:56:09 AM

Noble use for PHP , there are other languages , PHP is not really the best language ( script ) for reproduction of webpages , there are many to choose from. But if you want to use Perl ( similar to PHP in some ways ) I can help.

Posted by gian [send private reply] at January 17, 2002, 04:12:07 PM

I know! In your httpd.conf file, find the line that has something like "AddType Server-Parsed .shtml .shtm" and add ".php" in there... then you can use SSI, but it can _look_ like you're using php!

Posted by vladimir_l [send private reply] at January 17, 2002, 04:15:21 PM

What is SSI ( sorry I left the world of web scripting some time ago ) , is it a skin of C? I mean is it made on C? I dont see why people just dont you see as their server-side or why not use execuatables , I have been thinking for weeks , can some fill me in PLEASE !

Posted by vladimir_l [send private reply] at January 17, 2002, 04:16:17 PM

Sorry got carried away not "see" , C , the lanuguage !

Posted by taubz [send private reply] at January 17, 2002, 04:30:30 PM

Because SSI isn't a programming language. SSI is an "extension" to HTML so that you can add rudimentary server-parsed things into the document.

So, as I said to Dake... vladimir, don't start commenting on things that you dont know anything about. Ask what SSI is, and get an answer, before saying people should just use C.

In SSI, to have the server insert another file into the current file, you use: <--#include virtual="filename"-->. It looks like an HTML comment, but the server inserts filname at that location.

- taubz

Posted by vladimir_l [send private reply] at January 17, 2002, 05:06:52 PM

I wasnt meaning SSI , but HTML ismade on C right ? Well I dontknow , if it is then it only has acess to the things C does , right ? So a language built ( completely , lets say ) on it would have only combinations of its fuctions. Thats what I meant as a skin. I dont know SSI , you are right , I'm not that into web programming , I stick to mathmatics and other stuff like that. And avout C was a different Q. , I meant it as a replacement for Perl. Is SSi Server Side ?

Posted by DakeDesuDx [send private reply] at January 17, 2002, 05:55:37 PM

If you use ASP you might recognise SSI. ASP uses something that looks awfully similar to SSI.

As for that off colour "Be with my kind" comment. It was a bad humour joke about men who talk like valley girls being hair dressers. *Really* bad humour.

Of course you would have to know what a valley girl talks like to understand...

Posted by gian [send private reply] at January 17, 2002, 06:21:04 PM

vlad, your statement made absolutely no sense... "HTML ismade on C right ?"... hmmmm...

Posted by DakeDesuDx [send private reply] at January 17, 2002, 07:26:57 PM

Now excuse me if people do not understand what I think is simplistic speech in this post.

HTML I beleive is a langauge created by using SGML.
The current standard xhtml (a w3c recommendation) is created in XML.
The browser that displays the markup can be written in any langauge. The first Java application was a web browser.

(/me waits to see what people thinks he said here.)

Posted by taubz [send private reply] at January 18, 2002, 01:00:12 AM

I'm sure the first Java application was a "Hello world" program.

- taubz

Posted by buzgub [send private reply] at January 18, 2002, 01:10:31 AM

Presumably, the first java program was testing some of the first features in the virtual machine and the compiler, so my guess is that the *first* ever Java program was adding numbers together.. what fun:)

Posted by vladimir_l [send private reply] at January 18, 2002, 11:00:51 AM

I know what SGML is , was it created from scratch or on C ?

Posted by taubz [send private reply] at January 18, 2002, 11:20:18 AM

HTML and SGML are not languages, they are file formats. They have nothing to do with programming languages.

Posted by DakeDesuDx [send private reply] at January 18, 2002, 11:34:08 AM

taubz: that really explains the: "Markup Langauge" part of those arconyms. Yes it is a confusing subject... gets even more confusing once you bring the "application/xhtml+xml" mimetype into the whole picture.

Posted by vladimir_l [send private reply] at January 18, 2002, 02:08:51 PM

That is understood , I think you got me wrong , I those file formats , or their interpreters made on C? And you really have me wrong the original question was :

Why do people still use Perl as a Server Scripting Language , why do they not use C? But I found an answer already. How can people mislead that far.....

Posted by vladimir_l [send private reply] at January 18, 2002, 02:09:44 PM

And taubz , doesnt everuthing , well ( more or less ) , have to do with programming languages , if they are made on it !

Posted by vladimir_l [send private reply] at January 18, 2002, 02:10:16 PM

I mean programs , we all rely on programs....

Posted by DakeDesuDx [send private reply] at January 18, 2002, 03:02:03 PM

vladimir: ah! It becomes so clear!

The browsers AND servers can be done using just about any langauge. That is why I mention the first java app being a webbrowser (To say it like a certain thread on GameDev: "i red bok!!!! i cant b rog!!~!~"). As for a HTML interpretor that is a nice way to put it. Browsers just have a tendency to be written in C, cause its a langauge that is not platform specific (NOTE! The langauge is not platform specific, but the compiled stuff is! lets cut that off at the bud!).

As for why server stuffs written in perl: Because it is a glue app. It is a quick (and dirty) way to take stuff from the browser and tell the server what to do. It is relatively cheap to install. Using C for serversides is also an option. A lot of pay hosts allow you to do it, you just need to compile it for the OS and architecture of your server. PHP, Java, ruby, tcl, python and ASP are a couple other options (PHP != Perl), there are also many others.
Also, a lot of open source sites are using PHP more than Perl, cause it is easier to write in.
(Note: if in this post I do not sound like I know what I am talking about, it is cause it is a quick and dirty overview, you cannot tell somebody about the history, ideals, etc., of the web in one post)

Posted by gian [send private reply] at January 18, 2002, 03:13:53 PM

I happen to be writing a webserver right now in C... it could just as easily be done in any language with socket support...

Posted by vladimir_l [send private reply] at January 18, 2002, 03:20:34 PM

Thanks , for understanding ! Finally ! I know the history of early HTML and Mosaic browsers and that but I never knew that , I found some free servers that support C . I am not sure but I think one site used Fortran CGI. I use to be into that , but now I am more confined to GUI Fortran.

Posted by DakeDesuDx [send private reply] at January 18, 2002, 03:39:25 PM

Step away from the free server!

Put the sign up form down, and step away from the free server...

Chances are, if a free server supports more than regular HTML, its either got A)Massive Downtime B) Not likely to be permanent, C) All of the above.

Posted by vladimir_l [send private reply] at January 18, 2002, 03:46:18 PM

Oh yes gian will your server support wap ( will is be a wap gateway ) is it that lhttpd. Gaurang programmed a server , it is very unstable , as it is made on VB. He has a site you might want to contact him www.gaurang.cjb.net , I dont think he has a TPU login.

Posted by vladimir_l [send private reply] at January 18, 2002, 03:48:15 PM

No it seems to be ok , althought I have difficulties with perl execution , if you are after a very , very stable server for free try www.holm.ru and www.hut.ru , unfortunately they are both russian.

Posted by gian [send private reply] at January 19, 2002, 04:20:32 PM

What seems to be okay, lhttpd or guarang? I have no real desire to do wap, for now... maybe later, if you can fill me in on the wap protocol...

Posted by vladimir_l [send private reply] at January 19, 2002, 05:30:35 PM

lhttpd is ok , but gaurang's server is very faulty and has many errors with winsock and internal errors that make the server malfunction and stop working.

Posted by gian [send private reply] at January 19, 2002, 11:14:26 PM

Glad to hear that you got it working then...

Posted by vladimir_l [send private reply] at January 20, 2002, 06:13:22 AM

ok

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.