[PHP] Search for PHP Motivation Studies

2001-08-18 Thread Björn Schotte
Hi, for a well-known PHP advocacy site we are searching for motivation studies of (big) companies who decided to use PHP. A PHP motivation study is not like a normal case study where you tell the reader about the application foobar.com. Instead, you tell 'em about why, when and how you decided

[PHP] SQL Highlighting in PHP?

2001-08-18 Thread Chris Lambert
Hey all, I'm wondering if anyone's created a custom function that'll perform SQL highlighting, similar to the highlight_file/string functions for PHP source. I made a quick hack, but I'd love to have something more consistent. Any ideas? /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown

[PHP] array_unique() and count issue

2001-08-18 Thread CGI GUY
OK, I want to count the number of unique elements in an array, then print the total. However, both methods I've tried return 1; the man pages explain that the count() function will return 1 if the var is set but not an array. But if you look at the 2nd method esp., I've set an if-else !is_set()

[PHP] advantage of php

2001-08-18 Thread nafiseh saberi
hi. php good for design web server because ,it use the best function of java,perl,html,...in itself. but I dont know about difference between cgi and php?? love your enemies,because they cause to work harder. nafiseh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] advantage of php

2001-08-18 Thread pierre-yves
Hello, it is quite simple, php is a programming language. CGI is an interface that execute programming language, usually Perl, but can be C, C++... py - Original Message - From: nafiseh saberi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 18, 2001 4:46 AM Subject: [PHP]

[PHP] cgi 2 php

2001-08-18 Thread Steven Dowd
Has anyone ever come across a cgi 2 php program at all, similar to the asp2php program ? or has anyone got a quick and easy tutorial for me to read through on what needs converting to what , language 2 language . Steven -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] FW: Large sites using PHP

2001-08-18 Thread pierre-yves
Dear PHP fans, Knowing large sites that use php is one thing (it shows the language can support heavy loads). But what I would really like to know is the time difference to design, code and implement web application in PHP versus java solution, or ColdFusion, or another language. I switch to

RE: [PHP] FW: Large sites using PHP

2001-08-18 Thread Quentin Gillet
I come from asp world, too, but I wouldn't say php is quicker to develop. Sometimes it can take longer. But it's really worth it. -Message d'origine- De : pierre-yves [mailto:[EMAIL PROTECTED]] Envoyé : samedi 18 août 2001 14:45 À : [EMAIL PROTECTED] Objet : Re: [PHP] FW: Large sites

[PHP] Re: cgi 2 php

2001-08-18 Thread Jamie Burns
cgi is not actually a programming langauage, but is a way of accessing programs through a webserver. php can be run as a 'cgi' if you like. i think what you mean is, has anyone seen a 'perl' to 'php' converter. perl is one of the most common languages used through cgi, and many of the scripts

[PHP] accents and postgresql

2001-08-18 Thread Florian Blaser
[I already sent this message to the php-db mailing list, but since it seems to be a low-traffic list, I thought I'd also send it to this list, thanks a lot for your answers :-)] Hi everybody ! I've got a quite confusing problem : Yesterday, I upgraded my postgresql server from 7.0.3 to 7.1. I

[PHP] error: input in flex scanner failed

2001-08-18 Thread PeterOblivion
anyone got any inside info on waht this error means? I changed one line of code.. and caboom.. - Peter

Re: [PHP] accents and postgresql

2001-08-18 Thread Martín Marqués
On Sáb 18 Ago 2001 10:19, Florian Blaser wrote: Hi everybody ! I've got a quite confusing problem : Yesterday, I upgraded my postgresql server from 7.0.3 to 7.1. I did some pg_dumps and created the DBS on the new server. Everything went fine. But now, I've got some problems : When

[PHP] Overlaying text on jpegs

2001-08-18 Thread Seb Frost
I hear this is achievable via php. My GD information is: GD Support enabled GD Version 1.6.2 or higher FreeType Support enabled FreeType Linkage with TTF library GIF Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled So could someone show me an example of how to

php-general Digest 18 Aug 2001 16:31:47 -0000 Issue 823

2001-08-18 Thread php-general-digest-help
php-general Digest 18 Aug 2001 16:31:47 - Issue 823 Topics (messages 63266 through 63288): question from a php newbie 63266 by: 602e23 63269 by: Maxim Maletsky Re: looong date formatting for MySQL 63267 by: Maxim Maletsky Re: debugger_on() undefined? 63268

[PHP] Re: [PHP-DB] Help with update...

2001-08-18 Thread Florian Blaser
Well, might not be the good answer, since it's been a long time I haven't used mysql. But, does mysql is case sensitive on table names ? try using albums instead of ALBUMS in your update query. Just my .002 cents Florian Le Samedi, 18 Août 2001 18.21, vous avez écrit : I'm working under the

Re: [PHP] accents and postgresql

2001-08-18 Thread Florian Blaser
Le Samedi, 18 Août 2001 16.45, Martín Marqués a écrit : Which locale are you using (I think this has nothing to do with the problem, but who knows). fr_CH iso-8859-1 I just checked a database which is been loaded with phpPgAdmin 2.3 and I got the acents OK. I did further testing : - I

Re: [PHP] IDE

2001-08-18 Thread Chris Lambert
Are you using NuSphere's version of PHPEd, or the old free one? So far, the best Windows IDE I've used has been NuSphere's upgraded PHPEd. Zend's 2.0 IDE also looks promising, though. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security -

[PHP] MySql or flat database using PHP ?

2001-08-18 Thread David Ovens
Before I start creating an Sql table/database, thought I would ask for advice first. I am creating a directory online, with urls information, links, email addresses etc etc. What do you think is best a MySql database or writing it to a file using fopen/fwrite (flat file) ??? Your thoughts

[PHP] Re: MySql or flat database using PHP ?

2001-08-18 Thread Emilio Panighetti
It depends... if you have a handful of records, you might start with a flat file. but if you think you'll get to hundreds of records, go with a database. Even if all you want is a small array of data, go with a database. If all you want is a simple array, you might consider use DBM files (Look

[PHP] Slow LDA Queries

2001-08-18 Thread Emilio Panighetti
I have OpenLDAP and PHP 4.0.4p1 on a RedHat 7.1 (plain distribution, didn't recompile anything, and I use MOD_LDAP to authenticate users to an intranet site. I want PHP pages to show the real username so I have this function I call when I want to know the username. the mod_ldap queries and ldap

RE: [PHP] Search for PHP Motivation Studies

2001-08-18 Thread Ralph Guzman
IN the book Web Application Development with PHP 4.0 There is an entire chapter towards the end of the book that describes such case studies. Hope this helps. -Original Message- From: Björn Schotte [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 11:36 PM To: [EMAIL PROTECTED]

Re: [PHP] Re: MySql or flat database using PHP ?

2001-08-18 Thread Hugh Danaher
Dear Emilio, For about 20 years, I've wanted to develop a mineral identification program. I bought a PHP tutorial book on June 25th, and had the site running by July 14th. if you're planning something similar to http://www.ironorchid.com/minerals/ , then php with mysql is the way to go. Oh, and

Re: [PHP] Re: MySql or flat database using PHP ?

2001-08-18 Thread Hugh Danaher
Sorry Emilio, this should have gone to Dave. - Original Message - From: Hugh Danaher [EMAIL PROTECTED] To: Emilio Panighetti [EMAIL PROTECTED] Cc: Php-General [EMAIL PROTECTED] Sent: Saturday, August 18, 2001 5:16 PM Subject: Re: [PHP] Re: MySql or flat database using PHP ? Dear

[PHP] PHP 4.0.6 Problem with ImageTTFText

2001-08-18 Thread Richard Morris
Hello all, I have just recently found out that there is a bug in the function ImageTTFText regarding the font name. Apparently no matter what you enter, the font is unable to be loaded regardless if you put an absolute path or not to the filename. I read some where that it was fixed in the

[PHP] security concerns using PHP in shared, name based virtual server setup

2001-08-18 Thread Dave VanAuken
currently only offer full php, postgres, mysql, et al access with virtual server accounts (chrootd hacks, or jailed environments) these are cumbersome though. Anyone have input regarding the potential security concerns with allowing users (right now only chrooted ftp users with no permissions)

[PHP] Ayuda para hace funcionar PHP

2001-08-18 Thread Edgar Baldiviezo
Hola amigos necesito ayuda para hacer funcionar PHP en mi maquina Utilizo Windows 98SE y PWS y no me reconoce las paginas PHP cuando le doy que ejecute el browser me sale el siguiente error Error 403 de HTTP 403.1 Prohibido: prohibido el acceso de ejecución Este error puede producirse si

[PHP] class variables and methods

2001-08-18 Thread Joe Sheble \(Wizaerd\)
I've been doing some reading up on OOP in PHP, and looking at some of the classes available on the web, and I've got what is probably a stupid question. I've seen this many many times.. class someclass { var $somevar = someval; function set( $key, $val ) {

Re: [PHP] Slow LDA Queries

2001-08-18 Thread Andrew Libby
Emilio, Few thoughts: o Is the call syntax you're using for ldap_read() correct? The online manual page describes the second parameter as being the base dn, you're passing the user's username. ( getenv(REMOTE_USER)). I'm surprised that this code works. o

Re: [PHP] MySql or flat database using PHP ?

2001-08-18 Thread Andrew Libby
Dave, IMHO, a major consideration for Web apps is contention and s synchronization. If you intend to allow users to update data on in the app it becomes important to coordinate writes (with locking) so that no two users can write to the same (region) of the file at the same time. An RDBMS

[PHP] Display Image

2001-08-18 Thread Andonny
Hi, I tried below to display the picture on the webpage. I have in the pcture column a http address. echo img src=\$row[picture]\ . $row[description] . and I get this: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' Your help is very much appreciated. Andonny

RE: [PHP] Display Image

2001-08-18 Thread Seb Frost
well you've got that unmatched at the end... - seb -Original Message- From: Andonny [mailto:[EMAIL PROTECTED]] Sent: 19 August 2001 03:28 To: [EMAIL PROTECTED] Subject: [PHP] Display Image Hi, I tried below to display the picture on the webpage. I have in the pcture column a http

Fw: [PHP] Display Image

2001-08-18 Thread Chris Schneck
echo img src=\.$row[picture].\ . $row[description] . - Original Message - From: Andonny [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 18, 2001 7:27 PM Subject: [PHP] Display Image Hi, I tried below to display the picture on the webpage. I have in the pcture

[PHP] Help with weird error..

2001-08-18 Thread PeterOblivion
Hey guys, anyone know what Fatal error: input in flex scanner failed in /home/k/kyle/public_html on line means? thanks

Fw: [PHP] Display Image (correcting myself) :P

2001-08-18 Thread Chris Schneck
echo img src=\.$row[picture].\ . $row[description] . ; - Original Message - From: Chris Schneck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 18, 2001 7:29 PM Subject: Fw: [PHP] Display Image echo img src=\.$row[picture].\ . $row[description] . - Original

Re: [PHP] Display Image

2001-08-18 Thread Andonny
Thanks for your reply. This is the whole line and I am not sure which one to take out echo img src=\$row[picture]\ . $row[description] . /A/bBR; Andonny Seb Frost [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... well you've got that unmatched at the end... -

Re: [PHP] class variables and methods

2001-08-18 Thread Andrew Libby
Joe, There are varying opinions on this issue. The argument for methods is that it hides the internal structure of your class. This is always a good thing. This means that the internals of the class can be changed, but the user interface (the user is the programmer here) does not change.

RE: [PHP] Display Image

2001-08-18 Thread Seb Frost
I always split it up if I'm having errors... echo img src=\; echo $row[picture]; echo \; echo $row[description]; - seb - Original Message - From: Chris Schneck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 18, 2001 7:29 PM Subject: Fw: [PHP] Display Image echo img

[PHP] Extract email address from string

2001-08-18 Thread Gaylen Fraley
I need to parse a string and extract only the email address. What is the best way to do this? i.e. $string = Please send all email to [EMAIL PROTECTED] with a subject line of Test.; $email_addr would be equal to [EMAIL PROTECTED] . Thanks. -- PHP General Mailing List

RE: [PHP] Extract email address from string

2001-08-18 Thread Seb Frost
Well you need to search for @ then search forwards and backwards till you get to whitespaces store those positions then use the substr function. - seb -Original Message- From: Gaylen Fraley [mailto:[EMAIL PROTECTED]] Sent: 19 August 2001 03:37 To: [EMAIL PROTECTED] Subject: [PHP]

Re: [PHP] Extract email address from string

2001-08-18 Thread Andrew Libby
Seb, Seomthing like ?PHP $string = Please send all email to [EMAIL PROTECTED] with a; ereg('.* (.*@[^ ]* )',$string,$m); echo $m[1] . \n Might be a start. Andy On Sun, Aug 19, 2001 at 03:44:35AM +0100, Seb Frost wrote: Well you need to search for @ then search forwards and backwards

[PHP] Need Regex Help

2001-08-18 Thread Craig Westerman
I'm reading a book and have a little confusion in my mind. Consider the following table. Assume that I grabbed it from another web site using: ? $url = 'http://www.abc123xyz.com'; $lines_array = file($url); $lines_string = implode('', $lines_array); ? ===

Re: [PHP] Need Regex Help

2001-08-18 Thread Andrew Libby
I'd take the results of file() and then walk through the array looking for the lines for the various fruit you're concerned with. Then I'd grab the next two lines and process them, with something like: $line = td align=left.46/td; ereg('^td align=(left|right)([^]+)/td',$line,$m); echo $m[1] .

[PHP] Protecting include files

2001-08-18 Thread Sid
Hi, I have a php script which includes .inc files. Is there any way in which I can prevent a normal surferfrom viewing these files. Is there any command that I can add to a .htaccess file. Thanks ~~~ \\__ ! SIDDHARTH HEGDE

[PHP] Re: code to see files in directories

2001-08-18 Thread Sid
Try this -- shorter. I only tested it out in Win(32)though ? $handle=opendir('.'); echo Directory handle: $handle\n; echo Files:\n; while ($file = readdir($handle)) { echo $file\n; } closedir($handle); ? At 03:00 PM 8/8/01 +0200, you wrote: [EMAIL PROTECTED] (Eduardo Kokubo) wrote: I think I

Re: [PHP] Protecting include files

2001-08-18 Thread Rasmus Lerdorf
Files ~ \.inc$ Order allow,deny Deny from all /Files On Mon, 14 Aug 2000, Sid wrote: Hi, I have a php script which includes .inc files. Is there any way in which I can prevent a normal surferfrom viewing these files. Is there any command that I can add to a .htaccess file. Thanks

Re: [PHP] Protecting include files

2001-08-18 Thread John Meyer
At 08:26 PM 8/18/01 -0700, Rasmus Lerdorf wrote: Files ~ \.inc$ Order allow,deny Deny from all BTW, .inc files can include PHP code that is executed, right? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] Uploading Image to Database

2001-08-18 Thread Richard Lynch
database ... the script seems to be working, in that its not giving errors You're not asking it to give you error messages :-) ?php if ($submit) { MYSQL_CONNECT(localhost,user,pass); ... or die(Could not connect to database) mysql_select_db(binary_date); ... or die(Could not

[PHP] Re: newbie installation help needed - LinuxPPC

2001-08-18 Thread Richard Lynch
I've been playing around a little with php/mysql/apache on my NT box but I have just set up one of my Macs as a LinuxPPC machine. I have downloaded PHP-4.0.6 but now I want to install it to work with the apache server software already installed. I'm a complete newbie as far as linux is

[PHP] Re: Putting Include files outside of document root

2001-08-18 Thread Richard Lynch
If my document root is something like /home/myname/dir/ (as per phpinfo()), and I put my include files in /home/myname/includes/, is that actually outside of the document root, or is anything under /home/myname/ actually the document root? Yes, that's outside. If phpinfo() says:

[PHP] Re: cookie expire...

2001-08-18 Thread Richard Lynch
Could I expire a cookie on a determinate date?? I mean tell the cookie that will expire on 17/08/2001... Unless I'm missing something, that's trivial using: http://php.net/manual/en/function.setcookie.php -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED]

[PHP] Re: Help.

2001-08-18 Thread Richard Lynch
You may be able to use http://php.net/exec Alas, I'm not sure it works under Windows anymore... Or maybe only thread-safe versions of Windows. Or maybe... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD:

[PHP] Re: Invoking PHP scripts from a redirect location

2001-08-18 Thread Richard Lynch
1) Within Apache's httpd.conf file I have the following set: DocumentRoot D:/Program Files/Apache Group/Apache/realdocs Directory D:/Program Files/Apache Group/Apache/realdocs RedirectMatch permanent ^/$ P:/Main Projects/Test/index.php ScriptAlias /php/ d:/php/ AddType

[PHP] Re: Reload - erase ------------- please help!

2001-08-18 Thread Richard Lynch
SHORT: how can I erase the content of a page currently displayed in client's browser? Or other solutions (see LONG) I don't understand big chunks of this question... You can't erase what they have. You can set no-cache and expiration headers. See http://php.net/header -- WARNING [EMAIL

[PHP] Re: mysql_db_name not working

2001-08-18 Thread Richard Lynch
The command mysql_db_name is not working in our installation. We get no error, but no database listing either if we use this command. - // This is the code which does NOT work: $dbs = mysql_list_dbs(); ... or die(mysql_error()); $num_dbs = mysql_numrows($dbs); for($i=0; $i$num_dbs;

[PHP] Re: HTTPS w/ header() ?

2001-08-18 Thread Richard Lynch
Is there is a way with PHP (most probably headers) to go HTTPS mode? I don't want to specify https://www.myserver.com/secured_page.php I just want it normal but in it's header to tell the browser to initiate an HTTPS mode. I don't think you can do that... You could send a header to do:

Re: [PHP] hacks we should know about

2001-08-18 Thread Richard Lynch
just found this article and the author recommends the following for secure php scripting. what do the expects think? This article has been discussed in excruciating detail on [EMAIL PROTECTED] and the expert's opinions are archived... http://php.net/support.php should lead you to this

[PHP] Re: Reload a page when a user press the back button

2001-08-18 Thread Richard Lynch
not show after the user press the reload button. Is there a way that the page reaload automatically the data from the database without the user pressing the reload button? Thanks Not really -- You can send no-cache and expiration headers, so they'll *HAVE* to reload to see anything at all, but

[PHP] Re: passing variables from PHP to Perl script

2001-08-18 Thread Richard Lynch
I'm trying to integrate an Internet Telephony service for a client. I have a number of variables I need to dump into the clients database and then to pass to the Internet Telephony service via a Perl script they have provided for me that will reside on the client's server. Can I somehow pass

[PHP] Re: to richard lynch

2001-08-18 Thread Richard Lynch
Warning to all: I usually ignore a thread once I threw in my 2 cents... Emailing me off-list to continue is always kosher though. :-) Emailing me off-list with a whole new question is silly, but I try to respond... No promises to continue that practice. on response to a question about

[PHP] Re: Problems with cookies....

2001-08-18 Thread Richard Lynch
? $pav='nustatymai.php'; if ( $nustatymaslangas == 1 ) { setcookie(nustlangas, 1, time()+3600*24*30); } else { setcookie(nustlangas, 0, time()+3600*24*30); } if ( $nustatymaspastas == 1

[PHP] Re: PHP and Perl script in same file?

2001-08-18 Thread Richard Lynch
Can php and perl code reside in the same file? When the document is served up it parses the PHP and then the Perl? No. Apache does not allow stacked handlers. Actually, Apache 2.0 was to offer this feature, IIRC. Dunno if it made it through the process though... http://apache.org --

[PHP] Re: ISO-8859-2 to Windows-1250

2001-08-18 Thread Richard Lynch
Try these: http://www.php.net/manual/en/ref.recode.php http://php.net/manual/en/function.convert-cyr-string.php -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little

[PHP] Re: Auth atalk and samba

2001-08-18 Thread Richard Lynch
I *THINK* somebody worked out the Samba stuff... Search the archives. http://php.net/support.php Also ask on [EMAIL PROTECTED] for the Samba. There's a Mac list for PHP, and they might have some ideas on the AppleTalk stuff. http://www.dynapolis.com (It's called AMP or Apache/MySQL/PHP) --

[PHP] Re: mysql_db_name not working (followup)

2001-08-18 Thread Richard Lynch
Does Apache with static compiled PHP not work on Solaris 8? Since the pages behave really crazy, we think it has something to do with our PHP. Does someone have a similar installation - which versions? Or any help? Ding! This just set off a ringer in my head. :-) Go back to your

[PHP] Re: Attempt At Prev/Next Links

2001-08-18 Thread Richard Lynch
$max_row = 5; if ($op == next) { $low = $low + $max_row; $high = $low + $max_row; Either this... $result = mysql_query(SELECT * FROM TABLENAME where Post='yes' LIMIT $low, $high); while($row = mysql_fetch_row($result)) { echo b$row[1] writes/b:br\n; echo nbsp nbsp

[PHP] Re: need Working... pop up dialog

2001-08-18 Thread Richard Lynch
I'm trying to get a working... informational dialog or window going with my PHP page but I'm not getting anywhere. Here's the situation: When the user clicks on a link that has to gunzip a very large file, I want a popup to say Working... while the file is uncompressing. Then, when the

[PHP] Re: Using cURL on windows?

2001-08-18 Thread Richard Lynch
How would I go about installing cURL for PHP on windows box? Start searching for a file named curlphp.dll or similar. First your PHP install, then http://php4win.de if it's back up, then http://php.net then, like Google or http://dogpile.com or whatever. If all of that fails, then probably

[PHP] Re: SESSION question.

2001-08-18 Thread Richard Lynch
You should be able to configure Apache to force the www. to appear, no matter what they type, or to keep using what they typed, if you didn't use any full URLs. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD:

[PHP] Re: Help with linux / apache / php

2001-08-18 Thread Richard Lynch
We have just (in the last month or so) leased a cobalt raq all for our own use. Great. However, the sites using this box are setup and maintained using a web interface that comes as default with the box. when setting up sites (subs or otherwise), it adds sites (and you have to specify

[PHP] if then else?

2001-08-18 Thread Glyndower
-Original Message- From: Glyndower [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 19, 2001 12:12 AM Cc: [EMAIL PROTECTED] Subject: Ok, here we go I'm new to PHP and also to MySql, but i'm making a pretty good go so far. Until now, lol I have a mysql database with several

[PHP] Accessing an array of objects

2001-08-18 Thread Athas Nikolakakos
I can't seem to figure out the correct syntax of acessing an array of objects with creating a temp. variable... Is there a workaround for not creating it, or do I just need to deal with using $tempvar = $test[1]; $tempvar-variable? here is an example of code // Start Code Snipet: for ($i = 0;$i

[PHP] Shuffle Cards Function

2001-08-18 Thread Robert Schultz
I've written a ShuffleCards function that will actually shuffle a deck of cards just like would happen in real life (divide the deck in half and stick them into each other with 1-3 cards between each other card) function ShuffleCards($cardsArray, $times) { // Randomizes where to split

Re: [PHP] Accessing an array of objects

2001-08-18 Thread Rasmus Lerdorf
echo $test[1]-variable; Get rid of the quotes, they are useless and just confuse the parser. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

Re: [PHP] Protecting include files

2001-08-18 Thread Dan Lowe
Previously, John Meyer said: BTW, .inc files can include PHP code that is executed, right? Any file can contain such code, if the server is configured to interpret the file as a PHP file, or if another file which is PHP include()'s the file in question. The .inc extension just happens to be a

Re: [PHP] Printf fails on large files

2001-08-18 Thread Moriyoshi Koizumi
Hello, I don't think the problem you have is not the size of the file. It seems to depend on the content of that. (line 1) $a = 'abc%d'; (line 2) printf( "$a" ); will cause too-few-arguments error because variable $a contains the sequence of '%','d', which should be interpreted as formatting

RE: [PHP] if then else?

2001-08-18 Thread Glyndower
btw...this is the code i'm trying Please keep the laughter to a minimum...ah heck with it...laugh all you want...its good for ya ?php if ($prof_exp_1 = not null) { ? H4Professional Experience: /H4li ?php printf(mysql_result($result,0,prof_exp_1)); ?br ?php } else if ($prof_exp_1 =

[PHP] force download in IE

2001-08-18 Thread David Minor
Can anybody tell me why this doesn't work in IE? I need to force download mp3 files instead of IE5.5 trying to apply a helper app. This code works fine for NN. // detect for MSIE bug if (strstr($HTTP_USER_AGENT, MSIE)) $attachment = ; else $attachment = attachment;; //

[PHP] function like exit?

2001-08-18 Thread nafiseh saberi
hi. do we have function like exit in php?? for exit from program. best regards. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Slow LDAP Queries

2001-08-18 Thread Emilio Panighetti
Andrew, Thanks for your input. Comments below... Andrew Libby [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Emilio, Few thoughts: o Is the call syntax you're using for ldap_read() correct? The online manual page describes the second