Re: [PHP] Is PHP the language for me???

2005-09-24 Thread Gustav Wiberg
- Original Message - 
From: Emily McCall [EMAIL PROTECTED]

To: php-general@lists.php.net
Sent: Friday, September 23, 2005 11:07 PM
Subject: [PHP] Is PHP the language for me???


I am trying to figure out whether php will help me to set up a website which 
is essentially just links to donwloadable material.


I have directories in place and am using flash to auto fill the directory 
names on to an index page, however i cant use this to access the files 
themselves. So I am after a language i can use to read all the file names in 
the directory and display them with a bit of 'niceness' onto a webpage so as 
they can be used as links to the files.


Thanks





No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.5/110 - Release Date: 2005-09-22

Hi there!

I have read some posts about this issue, but one point that is essential 
that I've not read about is the future! I mean, what are your plans in the 
future? Or what plans is it for the website. Just because it's only simple 
links now, it might be right to consider if for example object-oriented 
programming would be an issue in the future. PHP5 has that implementation, 
but not PHP4 so this might depend on the webserver/webhost...


This was just a spontanious thought! And yes, I just love PHP if I compare 
with ASP which maybe is the most relevant!? comparision.. (The two largest 
languages for dynamic web out there? Don't know if maybe Perl is larger 
though).


/G
http://www.varupiraten.se/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Is PHP the language for me???

2005-09-24 Thread Jasper Bryant-Greene

Gustav Wiberg wrote:
I have read some posts about this issue, but one point that is essential 
that I've not read about is the future! I mean, what are your plans in 
the future? Or what plans is it for the website. Just because it's only 
simple links now, it might be right to consider if for example 
object-oriented programming would be an issue in the future. PHP5 has 
that implementation, but not PHP4 so this might depend on the 
webserver/webhost...


PHP4 has OO as well. It's just an inferior and slower implementation. OO 
does not suit every case and you need to decide whether the additional 
time and work spent writing the code in OO is going to pay off in the 
future. If it isn't likely to, then I would suggest procedural might be 
a better choice.


This was just a spontanious thought! And yes, I just love PHP if I 
compare with ASP which maybe is the most relevant!? comparision.. (The 
two largest languages for dynamic web out there? Don't know if maybe 
Perl is larger though).


ASP isn't actually a language, it's just a framework for dynamic 
(active) server pages, that provides a bunch of common objects and 
stuf. In classic ASP you can write VBScript or JScript, and in ASP.NET 
you can write VB.NET, JScript or C#. Both classic and .NET allow you to 
add additional languages of your choice with a bit of work.


I still prefer PHP though; just thought I'd point out the difference...

--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Is PHP the language for me???

2005-09-24 Thread Gustav Wiberg
- Original Message - 
From: Jasper Bryant-Greene [EMAIL PROTECTED]

To: php-general@lists.php.net
Sent: Sunday, September 25, 2005 1:38 AM
Subject: Re: [PHP] Is PHP the language for me???



Gustav Wiberg wrote:
I have read some posts about this issue, but one point that is essential 
that I've not read about is the future! I mean, what are your plans in 
the future? Or what plans is it for the website. Just because it's only 
simple links now, it might be right to consider if for example 
object-oriented programming would be an issue in the future. PHP5 has 
that implementation, but not PHP4 so this might depend on the 
webserver/webhost...


PHP4 has OO as well. It's just an inferior and slower implementation. OO 
does not suit every case and you need to decide whether the additional 
time and work spent writing the code in OO is going to pay off in the 
future. If it isn't likely to, then I would suggest procedural might be a 
better choice.


Ok, I didn't know that PHP4 had OO-support and yes, I agree that it is 95% 
always better to use OO


This was just a spontanious thought! And yes, I just love PHP if I 
compare with ASP which maybe is the most relevant!? comparision.. (The 
two largest languages for dynamic web out there? Don't know if maybe Perl 
is larger though).


ASP isn't actually a language, it's just a framework for dynamic 
(active) server pages, that provides a bunch of common objects and stuf. 
In classic ASP you can write VBScript or JScript, and in ASP.NET you can 
write VB.NET, JScript or C#. Both classic and .NET allow you to add 
additional languages of your choice with a bit of work.
Of course! Wrong of me to say that ASP is a language... I meant VBScript... 
which I have been working with.




I still prefer PHP though; just thought I'd point out the difference...

Who doesnt? :-)


/G
http://www.varupiraten.se/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Is PHP the language for me???

2005-09-23 Thread Emily McCall
I am trying to figure out whether php will help me to set up a website which is 
essentially just links to donwloadable material.

I have directories in place and am using flash to auto fill the directory names 
on to an index page, however i cant use this to access the files themselves. So 
I am after a language i can use to read all the file names in the directory and 
display them with a bit of 'niceness' onto a webpage so as they can be used as 
links to the files.

Thanks 

Re: [PHP] Is PHP the language for me???

2005-09-23 Thread Kirk . Johnson
Emily McCall [EMAIL PROTECTED] wrote on 09/23/2005 03:07:39 
PM:

 I am trying to figure out whether php will help me to set up a 
 website which is essentially just links to donwloadable material.

Emily, you certainly came to the right place to get an endorsement of PHP 
;)

Yes. PHP will handle your task nicely, and IMHO, it is the easiest 
language to learn and use for dynamic web programming. Dig in and enjoy!

Kirk 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Is PHP the language for me???

2005-09-23 Thread Scott Noyes
 I have directories in place and am using flash to auto fill the directory 
 names on to an index page, however i cant use this to access the files 
 themselves. So I am after a language i can use to read all the file names in 
 the directory and display them with a bit of 'niceness' onto a webpage so as 
 they can be used as links to the files.

PHP is capable of doing that.  I'd start with the dir() function, and
maybe a bit of printf.
http://www.php.net/dir
http://www.php.net/printf

--
Scott Noyes
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Is PHP the language for me???

2005-09-23 Thread Greg Donald
On 9/23/05, Emily McCall [EMAIL PROTECTED] wrote:
 I am trying to figure out whether php will help me to set up a website
 which is essentially just links to donwloadable material.

 I have directories in place and am using flash to auto fill the directory
 names on to an index page, however i cant use this to access the files
 themselves. So I am after a language i can use to read all the file names
 in the directory and display them with a bit of 'niceness' onto a webpage
 so as they can be used as links to the files.


Yeah, PHP can do that.  Toss this in a web directory and pull it up in
a browser.

?php

$files = array();

$d = dir( './' );

while( false !== ( $entry = $d-read() ) )
{
if( $entry != '.'
 $entry != '..'
 !is_dir( $entry ) )
{
$files[] = $entry;
}
}

sort( $files );

foreach( $files as $file )
{

echo EOF
a href=$file$file/abr /
EOF;

}

?


--
Greg Donald
Zend Certified Engineer
MySQL Core Certification
http://destiney.com/


Re: [PHP] Is PHP the language for me???

2005-09-23 Thread Ryan A

On 9/24/2005 12:14:55 AM, Greg Donald ([EMAIL PROTECTED]) wrote:
 On 9/23/05, Emily McCall [EMAIL PROTECTED] wrote:
  I am trying to figure out whether php will help me to set up a website
  which is essentially just links to donwloadable material.
 
  I have directories in place and am using flash to auto fill the
 directory
  names on to an index page, however i cant use this to access the files
  themselves. So I am after a language i can use to read all the file
 names
  in the directory and display them with a bit of 'niceness' onto a
 webpage
  so as they can be used as links to the files.



Yep, PHP can certainly do that, and once you start you wont find a
friendlier place
if you need help...without this list I wouldnt be a programming in PHP
todayokay, maybe I would
but it would be a LOT harder :-)

Cheers,
Ryan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Is PHP the language for me???

2005-09-23 Thread Thorsten Suckow-Homberg

Yep, PHP can certainly do that, and once you start you wont find a
friendlier place
if you need help...without this list I wouldnt be a programming in PHP
todayokay, maybe I would
but it would be a LOT harder :-)


Sooo... how much did they pay you to make you say this? :P

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Is PHP the language for me???

2005-09-23 Thread Ryan A

On 9/24/2005 12:46:39 AM, Thorsten Suckow-Homberg ([EMAIL PROTECTED]) wrote:
  Yep, PHP can certainly do that, and once you start you wont find a
  friendlier place
  if you need help...without this list I wouldnt be a programming in PHP
  todayokay, maybe I would
  but it would be a LOT harder :-)

 Sooo... how much did they pay you to make you say this? :P

Nothing actuallythey pay in kind :-D

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Is PHP the language for me???

2005-09-23 Thread Rory Browne
On 9/23/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Emily McCall [EMAIL PROTECTED] wrote on 09/23/2005 03:07:39
 PM:

  I am trying to figure out whether php will help me to set up a
  website which is essentially just links to donwloadable material.

 Emily, you certainly came to the right place to get an endorsement of PHP
 ;)

Kirk:
While I agree with you to a certain extent, I think you should have a
little more faith in the professionalism(and honesty) of many of the
subscribers to this list. I've personally(I think), as have many
others, pointed out situations on this list, where another language
would be a better tool for the job than PHP.

This however is not one of those situations. This type of job is what
PHP was made for, and what PHP is extremely suitable for. This is the
type of job, for which I have no problem whatsoever endorsing PHP.

Emily:
I hope this goes some way towards answering your question. I cannot
answer it conclusively because this may be a one off project, and the
rest of your coding may be better suited to a different language. Look
into Perl and Python. I think you should still choose PHP, but would
hope that you do so on its merits, and not because it was the first
one you considered.




 Yes. PHP will handle your task nicely, and IMHO, it is the easiest
 language to learn and use for dynamic web programming. Dig in and enjoy!

 Kirk

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php