|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: php3 Digest 22 Feb 2000 10:45:33 -0000 Issue 1493
From: php3-digest-help
lists.php.netDate: Tue Feb 22 2000 - 04:45:33 CST
- Next message: php3-digest-help
lists.php.net: "php3 Digest 22 Feb 2000 13:06:41 -0000 Issue 1494"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 21 Feb 2000 18:00:01 -0000 Issue 1492"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php3 Digest 22 Feb 2000 10:45:33 -0000 Issue 1493
Topics (messages 77327 through 77364):
a missing row.
77327 by: Maniac <maniac
online.ee>
77330 by: Gregor Welters <gregor
welters.de>
77335 by: idban secandri <idban
satunet.com>
Compile OK, fails to run
77328 by: Aidan Skinner <aidan
skinner.demon.co.uk>
Compiling MCrypt support
77329 by: Conor Boyd <cboyd
i-dmedia.com>
77331 by: Julie Meloni <julie
thickbook.com>
CodeRunner does PHP...
77332 by: Scott Gray <scotty
cm.math.uiuc.edu>
ImageGif() is wrong?
77333 by: Darvin Andrioli <darvin.andrioli
caricese.it>
INFORMIX Support
77334 by: "David Young" <david
echopc.com>
77340 by: eschmid <eschmid+sic
s.netic.de>
77348 by: "Danny Heijl" <danny.heijl
pandora.be>
77349 by: "David Young" <david
echopc.com>
Image creation
77336 by: christopher
moewes.com
77346 by: Gregor Welters <gregor
welters.de>
What about the PHP newsserver?
77337 by: "Greg Brunet" <GBrunet
SemperSoft.com>
GD 1.7.3 questions
77338 by: "Kevin Beckford" <kbeckford
dgdgroup.com>
77347 by: Gregor Welters <gregor
welters.de>
77350 by: "Kevin Beckford" <kbeckford
dgdgroup.com>
77358 by: Gregor Welters <gregor
welters.de>
search query
77339 by: "AbsM" <abs1
cableinet.co.uk>
OT - How safe are frames nowadays
77341 by: "NickM" <terado
hotmail.com>
Installing PHP3
77342 by: "Gregory P. Sherwood" <Greg.Sherwood
talarian.com>
77360 by: Rasmus Lerdorf <rasmus
php.net>
dbase
77343 by: "Rossi Designs" <webmaster
rossidesigns.net>
Good PHP host.
77344 by: Scott Gray <scotty
cm.math.uiuc.edu>
PHP vs ASP
77345 by: Cliff Rowley <dozprompt
onsea.com>
77351 by: "Opec Kemp" <okemp
ozemail.com.au>
Returning a list by start time
77352 by: Geoffrey Makstutis <gmak
localhost.localdomain>
auto date with MySQL form problem
77353 by: Ken Bell <kbell
new-orleans.oilfield.slb.com>
Info on CSS on different browsers?
77354 by: Damien Mc Kenna <damien
mc-kenna.com>
77356 by: Julie Meloni <julie
thickbook.com>
test...
77355 by: "destiney" <destiney
home.com>
PHP 4.0 Beta 4 - expose_php directive
77357 by: "alain samoun" <alain
samoun.com>
Inquiry Basket!!!
77359 by: Mark Lo <markloky
netvigator.com>
is there something like a perl chomp function?
77361 by: Max Pyziur <pyz
panix.com>
PHP training (was: PHP vs ASP)
77362 by: Dax Kelson <dax
GuruLabs.com>
Searching NNTP
77363 by: "WL" <will
localads.net>
Double-byte Character
77364 by: David So <david.so
twc-asia.com>
Administrivia:
To subscribe to the digest, e-mail:
php3-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php3-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php3
lists.php.net
----------------------------------------------------------------------
attached mail follows:
hi!
I made a small script that displays data from a database using a script
that i appended to the end of the message. I'm using mysql
3.22.30/apache 1.3.9/
php 3.0.14 and the database has 4805 rows of data.
now to the problem. when I make a query about a specific headline, it
shows me all the row containing the information (this is in mysql), but
when I use php3 the
first row is missing. let's say, that I have 3 headline with dates
showing 16.02.2000, when I make the query in mysql, it all works, but
when I do the same query in php3, the first row is missing. and when I
have only one row of data with a specific date it doesn't show it (when
I insert an date that has no headlines, it will inform me that on
records found). where should i look?
the script is:
<html>
<body>
<?php
mysql_connect (localhost, xxxxx, xxxxx);
mysql_select_db (kawe);
$result = mysql_query
("SELECT * FROM news
WHERE date LIKE
'16.02.2000'
AND headline LIKE '%'
limit 3
");
if ($row = mysql_fetch_array($result)) {
echo "<table border=0>\n";
do {
$link = $myrow["link"];
echo "<tr><th class=title>date</th><th
class=title>headline</th></tr>\n";
printf("<tr><td class=files>%s</a></td><td class=files><a
href=http://www.tse.ee/news/$link.txt>%s</a></td></tr>\n",
$myrow["date"], $myrow["headline"]);
} while ($myrow = mysql_fetch_array($result));
echo "</table>\n";
} else {
echo "Sorry, no records were
found!";
}
?>
</body>
</html>
any help would be appriciated.
Maniac
attached mail follows:
>
> if ($row = mysql_fetch_array($result)) {
> echo "<table border=0>\n";
> do {
> $link = $myrow["link"];
you used $row instead of $myrow to fetch the result.
mit freundlichen Grüßen,
Gregor Welters
-----------------------------
Welters PC-Service,
Grafenberger Allee 81, 40237 Düsseldorf, Deutschland
Tel: 0211/9660096 Mobil: 0173/2776469 Fax: 0211/9660093
mailto: gwelters
welters.de
look at: http://www.welters.de
attached mail follows:
>[...cut..]
> limit 3
>[...cut..]
try use limit 0,3
-- idban secandri idbansatunet.com
attached mail follows:
Geoffrey Makstutis writes:
> I've just upgraded to php 3.0.14 (on RedHat 6.1) and am having some > problems.
Did you use the rpms on the 6.2 beta distro?
I used them (after patching to use the included manual instead of the tarball in the srpm) without problems.
I'm on a RH6.1 box, with apache-1.3.6, mod_ssl and postgresql and it's all chugging along quite happily.
- Aidan
-- http://www.skinner.demon.co.uk/aidan/ Currently looking for work: CV available on request.
attached mail follows:
i've just compiled with mcrypt-xx-xx-xx-.tar.gz and mhash-xx-xx-xx-.tar.gz and found it no hassle.
gunzip and untar them them...
cd <mcrypt source dir> ./configure make
cd <mhash source dir> ./configure make
just the usual php compile with...
... --with-mcrypt=<mcrypt source dir> --with-mhash=<mhash source dir>
...on the end of your usual
./configure ...
...statement
-/|\-
On Mon, 21 Feb 2000, Scott Pederick wrote:
> G'Day,
>
> I was wondering if someone could help me or at least point me in the right
> direction.
>
> When I try to re-compile php 3.0.12 with libmcrypt 2.4 I get the following
> errors :
>
> -----
> functions/mcrypt.c: In function `php_minit_mcrypt':
> functions/mcrypt.c:136: `BLOWFISH' undeclared
> functions/mcrypt.c:137: `DES' undeclared
> (... etc etc for all encryption types ... )
> -----
>
> I found the following posting relating to this exact problem in the mailing
> list archives but the link is broken :
>
> ------
> libmcrypt`s API changed to be more libmhash-like. Apply the
> following patch to make it work.
>
> http://cvs.php.net/cvsweb.cgi/functions/mcrypt.c.diff?r1=1.10&r2=1.11
> -----
>
> Is there any new status update on this one? I couldn't find anything about
> it in the ChangeLog or see any relevant change in mcrypt.c in php 3.0.14.
>
> Thanks for any help in advance.
>
> Regards,
>
> Scott
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
At 06:05 PM 2/21/00 +0000, Conor Boyd wrote: >i've just compiled with mcrypt-xx-xx-xx-.tar.gz and mhash-xx-xx-xx-.tar.gz and >found it no hassle. > >gunzip and untar them them... > > cd <mcrypt source dir> > ./configure > make > > cd <mhash source dir> > ./configure > make > >just the usual php compile with... > > ... --with-mcrypt=<mcrypt source dir> --with-mhash=<mhash source dir> > >...on the end of your usual > > ./configure ... > >...statement > >-/|\-
Don't forget --disable-posix-threads when compiling mcrypt if you want it to play nice with Apache! :)
- Julie
+------------------------------------------------+
| Julie Meloni |
| Technical Director, i2i Interactive |
| e-mail: jcm
i2ii.com |
| www: http://www.i2ii.com/ |
| |
| author of: |
| "PHP Essentials" ... http://www.thickbook.com/ |
+------------------------------------------------+
attached mail follows:
At http://www.useractive.com they have an online editor for doing PHP and MySQL easily. It has an easy to use PHP preveiw for quick testing of PHP scripts.
Scott Mills Gray
scotty
cm.math.uiuc.edu
attached mail follows:
Yes, it's wrong.
As the PHP says, the GIF support was removed from the Gd library and from PHP. Now you must use the PNG format, but int the Windows port, it doesn't work. So if you want to use the graphic function, you should install an older version ( I made some test using the version 3.0.11 )
For further information, see at http://www.php.net/manual/ref.image.php3, or the ImageGif page.
Darvin
\
-----Original Message-----
From: Ciprian [SMTP:g_zero
nemira.ro]
Sent: Monday, September 19, 2005 6:35 PM
To: php3
lists.php.net
Cc: Jiandy
Subject: Re: [PHP3] ImageGif() is wrong?
The closest thing I can think of is this mention in the PHP manual, under the ImageGif specification:
"Note: Since all GIF support was removed from the GD library in version 1.6, this function is not available if you are using that version of the GD library."
Ciprian
Saturday, February 19, 2000, 18:12, Jiandy wrote: > I'm a newer and I'm learning php3 now! > I installed php3.0.14 for win32 in win98 . > When I used this example > <?php > Header("Content-type: image/gif"); > $im = imagecreate(400,30); > $black = ImageColorAllocate($im, 0,0,0); > $white = ImageColorAllocate($im, 255,255,255); > imageline($im, 1, 1, 350, 25, $black); > imagearc($im, 200, 15, 20, 20, 35, 190, $white); > imagestring($im, 5, 4, 10, "Graph TEST!!", > $white); > ImageGif($im); > ImageDestroy($im); > ?> > I got one error > "Call to unsupported or undefined function > imagegif() "
attached mail follows:
Hi,
Does anyone have any experience using PHP with Informix Support? I went through the PHP manual, but after i compiled everything, it still tells me that the API's are not supported. The first one i tried to use was ix_connect and it returned an "unsupported function" error. can anyone tell me what i may be missing or any parameters i need to put at the command line when i compile PHP?
thanks david
attached mail follows:
On Mon, 21 Feb 2000, David Young wrote:
> Does anyone have any experience using PHP with Informix Support? I went > through the PHP manual, but after i compiled everything, it still tells me > that the API's are not supported. The first one i tried to use was > ix_connect and it returned an "unsupported function" error. can anyone tell > me what i may be missing or any parameters i need to put at the command line > when i compile PHP?
You should use ifx_connect().
-Egon
Besuchen Sie Six auf der CeBIT (24.2.-1.3.) in Halle 10, Stand 425, und auf der Hannover-Messe (20.-25.3.) in Halle 14, Stand J50!
attached mail follows:
Before you run configure make sure that :
- you have a version of the Informix CSDK installed (any ESQL/C version 7.x or 9.x should be OK) - $INFORMIXDIR is properly set and in the environment - $INFORMIXDIR/bin is in your $PATH
Then run configure --with-informix
You might have to add the Informix ESQL/C libraries and library paths to the Apache EXTRA_LDFLAGS when compiling as an Apache module if you get unresolved Informix references linking Apache.
Danny
--- ----- Original Message ----- From: "David Young" Newsgroups: php3.general Sent: Monday, February 21, 2000 7:52 PM Subject: [PHP3] INFORMIX SupportHi, Does anyone have any experience using PHP with Informix Support? I went through the PHP manual, but after i compiled everything, it still tells me that the API's are not supported. The first one i tried to use was ix_connect and it returned an "unsupported function" error. can anyone tell me what i may be missing or any parameters i need to put at the command line when i compile PHP? thanks david
attached mail follows:
oh I did. sorry, it was a typo.
> -----Original Message-----
> From: eschmid [mailto:eschmid+sic
s.netic.de]
> Sent: Monday, February 21, 2000 10:46 AM
> To: David Young
> Cc: php3
lists.php.net
> Subject: Re: [PHP3] INFORMIX Support
>
>
>
> On Mon, 21 Feb 2000, David Young wrote:
>
> > Does anyone have any experience using PHP with Informix Support? I went
> > through the PHP manual, but after i compiled everything, it
> still tells me
> > that the API's are not supported. The first one i tried to use was
> > ix_connect and it returned an "unsupported function" error.
> can anyone tell
> > me what i may be missing or any parameters i need to put at the
> command line
> > when i compile PHP?
>
> You should use ifx_connect().
>
> -Egon
>
> Besuchen Sie Six auf der CeBIT (24.2.-1.3.) in Halle 10, Stand 425,
> und auf der Hannover-Messe (20.-25.3.) in Halle 14, Stand J50!
>
>
attached mail follows:
I haven't tried to use the image creation functions yet because I am a little intimidated. I am wondering if there is a way to do the following.
I have a simple logo. It is 2 rounded rectangles over lapping (different colors) on a transparent backgreoud. Atthis point it is a gif file that is created. I am wondering if there is anyway to open that gif and on the fly assign different color values depending on parameters passed to the function.
TIA
---- Christopher R. Moewes-Bystrom christopher
moewes.com http://www.moewes.com http://www.linuxnovice.org
attached mail follows:
At 19:35 21.02.2000 , christopher
moewes.com wrote:
>I haven't tried to use the image creation functions yet because I am a
>little intimidated. I am wondering if there is a way to do the following.
>
>I have a simple logo. It is 2 rounded rectangles over lapping (different
>colors) on a transparent backgreoud. Atthis point it is a gif file that is
>created. I am wondering if there is anyway to open that gif and on the fly
>assign different color values depending on parameters passed to the function.
open: imagecreatefromgif() assign color: ImageColorSet()
mit freundlichen Grüßen,
Gregor Welters
----------------------------- Welters PC-Service, Grafenberger Allee 81, 40237 Düsseldorf, Deutschland
Tel: 0211/9660096 Mobil: 0173/2776469 Fax: 0211/9660093
mailto: gwelters
welters.de
look at: http://www.welters.de
attached mail follows:
Hi Richard:
I was wondering what you use to post messages to the mailing list. I use Outlook Express to connect to the newsgroup and read selected messages instead of being overloaded with mailings. However, I've noticed that I can't respond to the newsgroup, & the only way I seem to have of entering something is by mailing it. When I do that, I notice that my name (and many others) ends up in "quotes" in the From line, while yours (& others) appear without the quotes. Also, generally, folks without the quotes can do a "pure" reply & the messages are threaded, while the "quoted" ones generally seem to start a new thread. Any ideas or suggestions on this?
Thanks, -- Greg
attached mail follows:
Hello all - I have some questions about the graphics functions
I've compiled php 3.014 with a bunch of stuff including gd 1.73
I want to use these functions to plot data from a mysql database to a png
graphic.
I've seen a lot of reports about problems with this, and I checked the
manual, and I do not see any imagepng() type functions
What is the deal with these?
_____________________
Kevin Beckford
Web Developer
kbeckford
dgdgroup.com
http://www.dgdgroup.com
_____________________________________________
"I'm hoping that nanomachines will allow me to cut the sleep out of my life"
attached mail follows:
At 19:36 21.02.2000 , Kevin Beckford wrote: >Hello all - I have some questions about the graphics functions > >I've compiled php 3.014 with a bunch of stuff including gd 1.73 >I want to use these functions to plot data from a mysql database to a png >graphic. > I've seen a lot of reports about problems with this, and I checked the >manual, and I do not see any imagepng() type functions >What is the deal with these?
phpinfo tells me for my maschine:
gd Version 1.6.2 or higher with FreeType support (linked with ttf library) which supports: PNG
if you get something like this, you can use these functions simply by exchanging gif with png in the function-names.
mit freundlichen Grüßen,
Gregor Welters
----------------------------- Welters PC-Service, Grafenberger Allee 81, 40237 Düsseldorf, Deutschland
Tel: 0211/9660096 Mobil: 0173/2776469 Fax: 0211/9660093
mailto: gwelters
welters.de
look at: http://www.welters.de
attached mail follows:
phpinfo tells me for my maschine:
gd Version 1.6.2 or higher with FreeType support (linked with ttf library) which supports: PNG
if you get something like this, you can use these functions simply by exchanging gif with png in the function-names. ---------------------------------------------------------reply-------------- --------------- Great! I get the same except mine says 1.73 support. I also do not have the freetype stuff compiled in. Is it working for you? Do I need the freetype stuff? I had thought that it should work for simple pictures with the gd support only.
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribelists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
>--------------- >Great! I get the same except mine says 1.73 support. I also do not have the >freetype stuff compiled in. Is it working for you? Do I need the freetype >stuff? I had thought that it should work for simple pictures with the gd >support only.
freetype is only for truetype-font-support, it is only for imagettftext etc.
you CAN generate png-files !
mit freundlichen Grüßen,
Gregor Welters
----------------------------- Welters PC-Service, Grafenberger Allee 81, 40237 Düsseldorf, Deutschland
Tel: 0211/9660096 Mobil: 0173/2776469 Fax: 0211/9660093
mailto: gwelters
welters.de
look at: http://www.welters.de
attached mail follows:
Hi,
could you please assist with this query?
Using Mysql there is a table with various columns containing information, each with unique ID. One of the columns was uploaded with image filenames and the corresponding image copied to the server.
How can i have the pages dynamically generated through a php3 interface to the database content, when a search is done?? There exists images, descriptions, Etc..
Need to control the layout.
E.g Photos displayed to the left of the screen with an extract of the description next to each photo, Trimmed to maybe 15 words. Allow a maximum of 10 such records per screen. Provide as many screens as necessary to display all records.
E.g. 100 records. This should display 10 records per screen for a total of 10 screens. A dynamic scroll needed to keep track of total screens available.
Currently the html front end is as follows: <input type="checkbox" name="foto_name" value="" checked>
Search queries are as below:
$result = mysql_query ("SELECT * FROM test WHERE country_residence like '%' AND country_residence like '$country_residence' AND gender like '$gender' AND (to_days(now())-to_days(dob))/365 >'$min_age' AND (to_days(now())-to_days(dob))/365 <'$max_age' AND current_date - period < '$past_ads' AND height >'$min_height' AND height <'$max_height' AND weight >'$min_weight' AND weight <'$max_weight' AND foto_name like '%' ");
Thankyou
abs1
cableinet.co.uk
attached mail follows:
> I'm almost sure that you can bookmark the the "index" page. That would > be the only one that would concern me. I'm not sure what you mean by > "post a url to a page". If you mean to enter the site "x-pages" in by > typing in a url in your browser, I'd just a soon they *not" do that > anyway.
Ooops, I meant two things by that. Post a URL in the mail to someone and second to place a URL link on another page.
Yes you can bookmark the index page. But if you will have a good few pages it can be very dissorienting when you send a page to someone and then they get send to the index instead of the information being referred to. The same here for bookmarking. Unless you really have a very simple site then think again about frames, they really should be limited in use.
> >If you want to get fancy you could use DIV tags and JavaScript, if they have > >it switched off they will still see this, and when it is on you could make > >the menu collapse. > you've lost me...
With DIV tags and css you can hide content, then using JavaScript you can show and hide it at will. If JavaScript is disabled it will be always shown, so no problem there.
Nick
attached mail follows:
Rasmus,
Thanks for your suggestions. Unfortunately, I just don't have time to mess with this junk anymore.
I deleted everything & started over. Same result.
Something in the build for Stronghold/PHP is extremely screwed up. The fact remains that libmodphp3-so.a builds a static lib that's subsequently used in the libphp3.so build rule to generate a shared library. That's hard coded in Makefile.in and it's a bug.
Back to Perl!
At 2/21/00 11:57 AM, you wrote:
> > Thanks to Rasmus and Richard Lynch for their replies.
> >
> > I changed the .configure & re-built -- same results.
> >
> > <unknown> 0x2df8 libmodphp3-so.a(pcre.o)
> > <unknown> 0x2df4 libmodphp3-so.a(pcre.o)
> > <unknown> 0x2df0 libmodphp3-so.a(pcre.o)
> > ld: fatal: relocations remain against allocatable but non-writable sections
> > collect2: ld returned 1 exit status
> > apxs:Break: Command failed with rc=65536
> > make: *** [libphp3.so] Error 1
>
>This looks like a dependency problem. Try a 'make clean' or start over
>with a fresh tarball.
>
>-Rasmus
>
>
>--
>PHP 3 Mailing List <http://www.php.net/>
>To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
>To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
>To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
> Thanks for your suggestions. Unfortunately, I just don't have time to mess > with this junk anymore. > > I deleted everything & started over. Same result. > > Something in the build for Stronghold/PHP is extremely screwed up. The > fact remains that libmodphp3-so.a builds a static lib that's subsequently > used in the libphp3.so build rule to generate a shared library. That's > hard coded in Makefile.in and it's a bug.
Works fine with vanilla Apache. I haven't checked the StrongHold build for ages.
-Rasmus
attached mail follows:
Hi List, I have a client that wants to use a dbase database for a website. Is using a dbase database on the web efficient enough or should I dump it and create a mysql database.
Rossi Designs (904) 226-8979 P.O. Box 1084, Holly Hill, Florida 32125-1084 http://rossidesigns.net
attached mail follows:
Seems a lot you are having trouble getting PHP up and going. Why don't you just go to http://www.useractive.com and use their hosting and let them deal with it?
They've got PHP, servlets and the works, even mod-perl. I learned PHP from their interactive tutorials and I've used PHP there ever since. Great service.
Scott Mills Gray
scotty
cm.math.uiuc.edu
attached mail follows:
> Hopefully these points will be addressed. There are a number of companies > with a lot of money behind them trying to make sure that there are > adequate OpenSource training courses available. > > -Rasmus
I, for one have just started a project to hopefully make PHP a little more accessible. I'm hoping that in my new venture, www.easyphp.net, I'll be able to convey these points, and help new users through the learning process. If anyone has any ideas for it, let me know.
I've just returned from an interview for a web development job, where I mentioned PHP, and the interviewer obviously knew what PHP was, but it was the kind of reaction that said "I know what you mean, but I've never looked into it". Granted the company is more into the servlet arena, but they do use ASP where I feel PHP would be much more beneficial. You can bet that if I get the job, I'll be touting PHP all the way ;)
Cliff Rowley
- while (!asleep) { code(); }
attached mail follows:
<WARNING> Longpost. If you're not interested please discard this email now </WARNING> Hi,
Having used both languages and platform (NT and *nix) and developing in ASP at the moment (please don't flame me :() here are my personal humble assesment:
<DISCLAIMER> - These are my opinions only. It does not represent views of others on this list - I'll try to present a *constuctive* assessment and stay away from the relegious issues as much as possible :) </DISCLAIMER>
PHP Advantages. - Cheap i.e. Open Source.
- Flexible as the source is open so you can add whatever specialised functions to it.
- Stable and fast. It is a Well know fact that *nix are more stable than Windows.
- Easy to learn syntax. PHP syntax is C like :) So this is quite easy to understand to most programmers (unless you happened to be C++ nuts :):))
- Runs on multiple platforms. Yes even windows :):)
- Crosss platform compatibilies. From what I've heard *99%* of your PHP codes will run on different platforms. Of couse some functions are not avaiable on certain platforms etc. but it's pretty minor. This gives you a wide choice of OSes.
- Did I say OpenSource? :)
PHP Disadvatages. (may not directly to you but they may be "perceived" as disadvantages to your boss :)) - Used on many high trafiic site but lack of high profile make it a bit harder to proof the robustness to the "boss". Eventhough I'm sure there are *many* very high traffic sites out there that use it but the point is your boss is more than likely to overlook this :):)
- Mis-Perception on lack of Support. Sure there are no "commercially" support around (I think) but getting "support" has never been the problem. Once again this is the "boss" factor.
- PHP code can not be complied. This will change with Zend extra tools :)
- Lack of IDE (Intergrated Development Enviroment). It is Not to say that MS Visual Interdev is "the best" but the point is developers has a common, familiar development environment. I mean how many times on this list do you see this question: "Which is the best PHP editors?". Because you have choices so this *could* be "perceived" as a problem to your superior. :)
- Lack of *commercial* third-party software. Example this is the sort of questions you see on this list "I need a shopping cart program", "I need credit card processing program". etc. This *isn't* really a big issue on NT side of things as there are a hughe rage of third-party apps avaiable (at cost). Once again people using *nix/PHP are more inclined to develop thier own apps/modules to do this.
- Lack of common data access functions. Sure you could use ODBC module from OpenLink etc. but it is not built-in and from what I heard on this list, setting up process can be a real challenge. There are packages out there that will help you get over this problem.
ASP Advantages. - Used on many "well-know" and moderately high traffic/profile sites. A big plus when you can use the names like Ebay, MSN, NASDAQ, Intel, Dell etc. sites as your reference/example of the deployments.
- "Perceived" as having a commercially viable support. Well we all heard of MS support stories don't we? That's why I said *perceived* :):) But the fact remains, they have commercial support regardless of how useless it is :).
- Large number Developers avaiable. Lets face it there is nothing worst for your boss when one of thier developers left the project and having to find someone to replace him/her. ASP developers are somewhat easier to find than PHP at the moment (well in Australia here anyway:)).
- Common IDE. Visual Interdev.
- Large thirdparty software avaiables to acheive tasks.
- Built on Object Oriented. If you're an OOP fans then this is great for you.
- COM is "Perceived" as being the industry standard. Claimed of course by noone else but MS themselves :).
- *Relatively* easy Transition from "Interpreted" to "Semi-interpreted". That's to convert from ASP (VBScripts) to VB :). Since ASP is based on VBScripts (a sub-set of VB), converting your ASP codes into COM's DLL *aren't* too difficult. Now converting from VBscript/VB -> VC++ COM is totally different :) Unless you're an experience MS developers this can be very bad for your health :).
- Tightly intergrated into MS multi-tier architechure (Distributed InterNetworking Architechture or DNA -- buzz word :)). You can use other MS technology such as Transaction Server and MS Message Queue thingy (of course you might need *big* $$ for it too). I suppose this buzz word wil make your boss feel all warm and gooey inside, eventhough they'd probabld haven't a clue what the hell DNA means but hey it's sounds cool right? it must be good?. This comes in handly when you're planning a big project.
ASP Disadvantages.
- Closed Source. Need I say more? :)
- Can be very expensive. NT licenses and third party software can cost you dearly.
- NT is know to be less stable than *nix. Of course MS will tell you otherwise but, we all know about thier version of "truth" :)
- Will only run with MS platform. But from you can get thirdparty software to make ASP/COM runs on *nix -- ChilliSoft.
- Monopoly. Once you're on MS platform your pretty much stuck with thier ideology on how you will be developing your software.
- Did I say expensive? :)
Some food of thought for you. :) Should get you going for a while I hope :)
P.S. No flame for ASP stuff please ! :)
> Hi, > > Yes I know this has probably been covered a million times, but I > searched through the mailing list archive and the posts were mostly old > (and presumably out of date) or didn't give me any clue on how to > compare the two languages in any detail. Apart from the obvious (M$ vs > *nix) how could I compare the two languages? At the moment I know > nothing about ASP, but AFAIK the only difference is in platform and > philosophy (Open Source v proprietary). In particular I need to know > what makes PHP a better choice for a large website than ASP. Please let > me know any thoughts on the differences between the two languages.
attached mail follows:
How can I get a list of events for a given date based on start time in php? I've been trying something like:
$stream=mcal_open( "{/mstore}", "gmak", "dogbowl");
####get events for the day $day $events=mcal_list_events($stream,$year,$month,$day,$year,$month,$day);
####step through the events for($x=0;$x<count($events);$x++) { $event=mcal_fetch_event($stream,$events[$x]); $start=$event->start; $time_array[$start->hour]=$hour_array[$start->hour]."<br>$event->title"; $theHour=$start->hour; $theMin=$start->min; $theTime=$start->hour.":".$start->min; } $sHour = 8; $sMin = 30; $eTime = "20:30"; #### build a table with each row holding 1/2 hour while ($time != $eTime){
$time = date("H:i", mktime($sHour,$sMin,0,$month,$day,$year)); echo "<tr><td bgcolor='#dcdcdc' width='50'>".$time."</td><td bgcolor='#dcdcdc' width='350'>";
if ($theTime) { echo $time_array[$start->hour]; }else{ echo " "; } echo "</td></tr>"; $sMin+=30; }
but I'm just getting the same event shown in every hour. I realise that it is something to do with the order of the while and for loops, but I can't seem to see it (staring at the screen too long?).
Any help greatly appreciated.
Thanks.
attached mail follows:
Forgive me if this has already been answered, but it looks like you are trying to stuff a $string in a datestamp field expecting an integer.
rgds,
Ken
On Sat, 19 Feb 2000, Fates wrote:
> I have PHP3 form to populate a MySQL database. The date field is > auto-populated: > > Here is form code for the date which auto-populates the date filed on the > form which works: > <TR><TD align="right">Date</TD><TD> <INPUT NAME='dateupdated' VALUE='<?php > echo date("m/d/Y");?>' </TD> > > > The MySQL stuff: > $query = "INSERT INTO links VALUES ('$ID','$category','$subcategory', > '$name', '$url', '$comments', '$hits', '$dateupdated')"; > > $result = mysql_db_query("addlinks", $query); > > > Column# Column Name Data Type Data Size Null Key > ============================================================ > 7 dateupdated date -- YES NULL > > > > When I add it I get this: > > 0000-00-00 but in the form it shows the correct date before I add it. > >
attached mail follows:
Anyone know of a site that would explain how different browsers interpret CSS, or a site that can check to see how my site fares?
Damien Mc Kenna, Computer Science Student Married to Jen Parent of 4 cats
http://mc-kenna.com damien
mc-kenna.com ICQ:17066133
Please use our new web and email addresses and remove any old ones you have
attached mail follows:
At 06:45 PM 2/21/00 -0500, Damien Mc Kenna wrote: >Anyone know of a site that would explain how different browsers interpret CSS, >or a site that can check to see how my site fares? >
Big Fat Charts of CSS Implementation: http://webreview.com/pub/guides/style/style.html
Browser Compatibility Chart: http://hotwired.lycos.com/webmonkey/reference/browser_chart/index.html
- Julie
+------------------------------------------------+
| Julie Meloni |
| Technical Director, i2i Interactive |
| e-mail: jcm
i2ii.com |
| www: http://www.i2ii.com/ |
| |
| author of: |
| "PHP Essentials" ... http://www.thickbook.com/ |
+------------------------------------------------+
attached mail follows:
test...
attached mail follows:
I installed the binaries for windows, I got the header message: X-Powered-By: PHP/4.0b4 Content-Type: text/html in all my files, I used the new directive 'expose_php= Off' to suppress the first part of the message, but I can't seem to be able to delete the second part: 'Content-Type: text/html'???
Message from Alain Samoun
alain
samoun.com
attached mail follows:
Hi,
I know this is off topic...but a bit related to PHP...because I want to create a system using PHP/MySQL....Please help....The function of the system is that people can pick the items they want like shopping cart and stored in the basket...once they check out each individual item
will send to the supplier that supply the goods (May be more than one supplier).
anyone has the cue!!!!
Thank you
attached mail follows:
Greetings all,
I'm getting my feet wet w/ PHP and have begun developing little apps.
Ran into one roadblock, though, which I'm having a hard time figuring out.
I read a file into an array (as in file($somefilename)) and it works. Basically the file is a text file containing a list of files.
When I try to reference the files using $filetoshow = $files[$count] ;
$fp2 = fopen($filetoshow, "r") ; $section = fread( $fp2, filesize( $filetoshow ) ); echo $section ; fclose( $fp2 );
It comes up with a bunch of "Unable to access" and "No such file or directory" errors. I've done a few string length comparisons and see that if I assign the explicit /path/to/the/file to a variable it comes out one character short than the strlen($filetoshow).
My hunch is that there is a line ending there which needs to be removed. I've spent most of the afternoon looking for this sort of function/command and can't find one.
Any help in either pointing me to the function or giving me an idea as to how to get out of this would be appreciated.
Thanks!
Systems: Solaris 2.6 (production) with Postgres 6.5.2 and PHP 3.0.12 RH5.2 Linux (development) w/ Postgres 6.5.3 and PHP 3.0.5
I get the same error on both systems so I don't think it's there.
Thanks again!
-- Max Pyziur BRAMA - Gateway Ukraine pyzbrama.com http://www.brama.com/
attached mail follows:
Rasmus Lerdorf said once upon a time (Mon, 21 Feb 2000):
> > 5. PHP has a higher training/developer education cost, due to a dearth of > > manuals and training courses available, in comparison to NT/ASP. > > 6. Linux and FreeBSD also have higher training costs, for the same reason. > > Hopefully these points will be addressed. There are a number of companies > with a lot of money behind them trying to make sure that there are > adequate OpenSource training courses available. > > -Rasmus
Guru Labs, a new Linux training company, offers a 5 day "E-Commerce" course which devels deeply into Apache, SSL, PHP, and Databases.
Complete information is available on the website (which of course is implemented in PHP).
Dax Kelson Guru Labs
attached mail follows:
Hi,
I've successfully managed to connect to my NNTP server and display a list of available groups. What I now want to do is search for messages by people - can this be done?
Thanks,
Will
Web Developer and Programmer - SharkDesign.co.uk Lukrative Media Ltd Domains-> http://CreativeNames.co.uk
attached mail follows:
Hi all,
Have any1 tried using PHP with Double-Byte character? e.g Chinese, Japanese, Korean? Anything I have to pay attention to when programming page with these character set?
thanx
David So Developer the webconnection
- Next message: php3-digest-help
lists.php.net: "php3 Digest 22 Feb 2000 13:06:41 -0000 Issue 1494"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 21 Feb 2000 18:00:01 -0000 Issue 1492"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]