PHP Q
#1
Scooby Regular
Thread Starter
Yes, ASP is only relevant to extremely poor performing, broken and insecure webservers
Steve.
[Edited by stevencotton - 7/1/2002 3:27:26 PM]
Steve.
[Edited by stevencotton - 7/1/2002 3:27:26 PM]
#2
I started to learn ASP and thought it was needlessly complicated. PHP is more similar to other languages such as C++; therefore it made more sense to me. As dsmith is saying, we all have our own preferences.
I have also found that ASP hosting tends to be more expensive than *nix, especially if you want a decent database (not Access in other words).
Companies only want ASP because they don't know any better, they just think "duh... we need a website, what technology do we need... best use Microsoft because other companies are". I have nothing against ASP - if you're confident using it and can produce the results then great; but I have found it to be an obstructive language and it has not performed as well as PHP in my experience.
In conclusion, I would say that PHP is the better of the two (from my own experience before I get flamed ).
[Edited by legacyPete - 7/2/2002 1:09:56 AM]
I have also found that ASP hosting tends to be more expensive than *nix, especially if you want a decent database (not Access in other words).
Companies only want ASP because they don't know any better, they just think "duh... we need a website, what technology do we need... best use Microsoft because other companies are". I have nothing against ASP - if you're confident using it and can produce the results then great; but I have found it to be an obstructive language and it has not performed as well as PHP in my experience.
In conclusion, I would say that PHP is the better of the two (from my own experience before I get flamed ).
[Edited by legacyPete - 7/2/2002 1:09:56 AM]
#3
Starting to experiment with basic PHP scripts.
I want to read a file that has several lines each with
filename.jpg,"Description text here"
I can open the file, loop through and read all the lines etc. but what is the best/easiest way to parse each line into 2 variables
Tried sscanf($tempstring,"%s,%s",$var1,$var2);
But $var2 - which I want to be the description cuts off at the 1st space.
Suggestions ?
Thanks
Deano
I want to read a file that has several lines each with
filename.jpg,"Description text here"
I can open the file, loop through and read all the lines etc. but what is the best/easiest way to parse each line into 2 variables
Tried sscanf($tempstring,"%s,%s",$var1,$var2);
But $var2 - which I want to be the description cuts off at the 1st space.
Suggestions ?
Thanks
Deano
#4
This might do it:
<?
$fcontents = file ('file.txt');
while (list ($line_num, $line) = each ($fcontents)) {
$myline = explode(",",$line);
echo "$myline[0]<br>";
echo "$myline[1]<br>";
}
?>
<?
$fcontents = file ('file.txt');
while (list ($line_num, $line) = each ($fcontents)) {
$myline = explode(",",$line);
echo "$myline[0]<br>";
echo "$myline[1]<br>";
}
?>
Trending Topics
#9
Although of course we should be using explode() not split() since you aren't trying to use regular expressions, just a string. Both take exactly the same arguments anyhow.
Bit braindead today, car with clutch fliud backing up, train crash causing nice delays to work, then tube ****ed, then rained on and now my favourite lunch place has a power cut so no nice toastie sarnie for lunch, pffft!
Bit braindead today, car with clutch fliud backing up, train crash causing nice delays to work, then tube ****ed, then rained on and now my favourite lunch place has a power cut so no nice toastie sarnie for lunch, pffft!
#13
I've just started my fifth role doing ASP.
I do PHP as well (all my own sites run PHP ) but as yet I've not found anyone who'll pay me to do it.
Everyone want to use ASP it would appear!
I do PHP as well (all my own sites run PHP ) but as yet I've not found anyone who'll pay me to do it.
Everyone want to use ASP it would appear!
#15
I would say PHP is better, I haven't done any ASP in a while though. Business like to use things you pay for, hence using MS/IIS/ASP, now if only they wouldn't keep coming out with so many security notices for IIS
#16
Super_si (ever thought your user name was a tad optimisitic ?)
There is no "better" - some people will use one in some situations - others will prefer something else. yet more people will prefer another option.
Arguments about which programming language is best are just slighty further up the futility scale than "Impreza vs Evo etc." arguments.
If you beleive you'll make one choice about which language to learn as a professional developer and that will be that, then I would suggest you'll find keeping a job when you finish your degree quite hard.
I'm not a dveloper myself - I'm just keen to learn a new skill so I've picked PHP to start with.
Deano
There is no "better" - some people will use one in some situations - others will prefer something else. yet more people will prefer another option.
Arguments about which programming language is best are just slighty further up the futility scale than "Impreza vs Evo etc." arguments.
If you beleive you'll make one choice about which language to learn as a professional developer and that will be that, then I would suggest you'll find keeping a job when you finish your degree quite hard.
I'm not a dveloper myself - I'm just keen to learn a new skill so I've picked PHP to start with.
Deano
#20
Scooby Regular
Join Date: Mar 2002
Location: www.scoobyzone.co.uk
Posts: 2,082
Likes: 0
Received 0 Likes
on
0 Posts