Re: [PHP] What the heck is this

2001-07-10 Thread Brian White
If you have an object, it is the operator that allows you to pick out attributes and methods of the object: eg: class A { // constructor function A( $text ) { $this->text = $text; } function Print() { print $this->text; } } $anA = new A("BOO

RE: [PHP] What the heck is this

2001-07-10 Thread Warren Vail
When all else fails, check the mainual; http://www.php.net/manual/en/language.oop.php appears to be an instance reference (not sure that is the term). Warren Vail -Original Message- From: Adam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 11:35 PM To: [EMAIL PROTECTED] Subjec

[PHP] Re: MAIL to a Bcc: ???

2001-07-10 Thread Adam
> How do I change the value of the "TO:" in a mail() function to a value > of Bcc: ? > > Or at least trick the mail to a Bcc:So the recipients emails aren't > shown? if you use a database to manage the emails to be sent to, perhaps you could create a repeating statement that sends mail to e

Re: [PHP] What the heck is this

2001-07-10 Thread Adam
I've done quite a bit of php coding in the past few months but never had the need to use this and therefore never learned anything about it. It's hard to ask about it because i have NO idea what it is at all. Is it to give spanning values? I was woundering if anyone knew specifically what it did.

RE: [PHP] Variables

2001-07-10 Thread Adrian Ciutureanu
That's IMPOSIBLE! > -Original Message- > From: James Bartlett [mailto:[EMAIL PROTECTED]] > Sent: 11 iulie 2001 05:27 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Variables > > > I have tried that also...it still does not want to work... > - Original Message - > From: Dallas

Re: [PHP] What the heck is this

2001-07-10 Thread Chris Anderson
The way you have it leads me to believe you are talking about for..each loops - Original Message - From: "Brian White" <[EMAIL PROTECTED]> To: "Adam" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 2:12 AM Subject: Re: [PHP] What the heck is this > That's a classy

Re: [PHP] What the heck is this

2001-07-10 Thread Brian White
That's a classy question . At 23:11 10/07/2001 -0700, Adam wrote: >I've seen this around alot ($a->$z) and i'm woundering what it is and what >it does. I'm specifcally talking about the arrow thingy "->". I've never >seen it before so i was kinda curious. > >thanks >-Adam > > > >-- >PHP Gener

[PHP] What the heck is this

2001-07-10 Thread Adam
I've seen this around alot ($a->$z) and i'm woundering what it is and what it does. I'm specifcally talking about the arrow thingy "->". I've never seen it before so i was kinda curious. thanks -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

[PHP] Re: GetImageSize

2001-07-10 Thread Adam
> For some reason, at random and without warning, the function just seems to > stop working and does nothing but wait and timeout at 80 seconds. When you > go to the page say www.somedomain.com it just waits and does not load > anything for 80 seconds, and when it does, the images that use GetImag

[PHP] ODBC Function equivalent to MySql_Fetch_Array

2001-07-10 Thread Bob Horton
Hi, I'm trying to write a function (see below) that will provide equivalent functionality between ODBC and MySQL for mysql_fetch_array based upon a preset variable. I've written something that works but A) I'm afraid it might be quite slow; and B) I'm hoping that there is an existing function to

Re: [PHP] regex questions

2001-07-10 Thread Christian Reiniger
On Tuesday 10 July 2001 23:04, Jerry Lake wrote: > the only pattern that they share is > that the end of the line ends with a number, > quotes and a closing bracket i.e. 7"> > I can match that pattern, with .\d"> but > when I try to replace it, I also replace > the number at the end, and not just

Re: [PHP] using image place holders in a database field?

2001-07-10 Thread Brian White
I am going to take this sideways and push my own agenda. :-) In your position, I would consider storing the newsletter text as blobs of XML. Keep it dead simple to start with: which would make your article text: the article text image_name some more article text and you could then use er

Re: [PHP] using image place holders in a database field?

2001-07-10 Thread Philip Murray
Oops. That should've been $string = ereg_replace("##([^#]+)##", "", $string); - Original Message - From: "Philip Murray" <[EMAIL PROTECTED]> To: "Matthew Delmarter" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 3:57 PM Subject: Re: [PHP] using image place ho

Re: [PHP] using image place holders in a database field?

2001-07-10 Thread Philip Murray
This should do it for you ", $string); print($string); // prints 'Here is a picture of some flowers' ?> The "##(.+)##" parts matches any string with two # at the start and the end, the part replaces the ##string## with . The \\1 is a reference to the string matched with (.+) in the first par

[PHP] using image place holders in a database field?

2001-07-10 Thread Matthew Delmarter
Hi all, I want to use image place holders in a mysql field. The field will store a newsletter article and I want to include and display an image in the article. For example I will have: "the article text ##image_name## some more article text". I will use str_replace to replace ##image_name## wi

[PHP] using image place holders in a database field?

2001-07-10 Thread Matthew Delmarter
Hi all, I want to use image place holders in a mysql field. The field will store a newsletter article and I want to include and display an image in the article. For example I will have: "the article text ##image_name## some more article text". I will use str_replace to replace ##image_name## wi

[PHP] examples of using PHP to control .htaccess

2001-07-10 Thread Kurt Lieber
does anyone have/know of any existing code that allows PHP to control .htaccess files? I'm aware of SPHPAT on sourceforge, but I'm looking for something a little more mature. I don't really have a set of requirements other than what I've already stated -- I'm just looking for some examples to he

[PHP] Re: Variables

2001-07-10 Thread Adam
try this little form example out: --example.php-- t1 t2 -/example.php-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

RE: [PHP] Variables

2001-07-10 Thread Don Read
On 11-Jul-01 James Bartlett wrote: > Hi, > > This might sound really simple but plz humour me :) > > How can I tell if two text variables are equal to one another? > > If I use.. > > if($text1 = $text2) > { > echo "The variables are equal"; > } > else > { > echo "The variables are not equal";

RE: [PHP] Variables

2001-07-10 Thread Matthew Loff
You could always do... If(!strcmp($text1, $text2)) { equal; } else { not equal; } -Original Message- From: James Bartlett [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 10:21 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Variables No it doesn't seem to like th

Re: [PHP] Variables

2001-07-10 Thread James Bartlett
I have tried that also...it still does not want to work... - Original Message - From: Dallas K. To: James Bartlett ; [EMAIL PROTECTED] Sent: Wednesday, July 11, 2001 5:43 AM Subject: Re: [PHP] Variables don't use the quotes if($test1 == $test2) {echo "True";

RE: [PHP] Blind Carbon Copies? with mail ()???

2001-07-10 Thread Matthew Loff
I'm not sure what you mean by that... You could easily do: $headers = "From: Optional Name of List <[EMAIL PROTECTED]>\nBCC: ". $bcc_addresses; (The dot "." will concatenate the strings together) If you didn't want the "From: " Header in there, you could always just: $headers = "BCC: " . $bcc_

Re: [PHP] Variables

2001-07-10 Thread Dallas K.
don't use the quotes if($test1 == $test2) {echo "True"; } else {echo "False"; } - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 7:21 PM Subject: Re: [PHP] Variables No it doesn't seem to like that either

Re: [PHP] Variables

2001-07-10 Thread James Bartlett
No it doesn't seem to like that either... The weird thing is that if I used <> instead of = it's fine...although that is not the result I want... - Original Message - From: Tyler Longren To: James Bartlett Cc: [EMAIL PROTECTED] Sent: Wednesday, July 11, 2001 3:21 AM Subje

Re: [PHP] Variables

2001-07-10 Thread rick
Same as with two numerical values... use the == operator if($text1 == $text2) /* only true if the 2 vars are equal */ if($text1 = $text2) /* this sets $text1 to the same value as text2 and is always true unless $text2 = false */ http://php.net/manual/en/language.operators.comparison.php -

Re: [PHP] Variables

2001-07-10 Thread Tyler Longren
Try if($text1 == "$text2") { echo "The variables are equal"; } else { echo "The variables are not equal"; } notice the change in the if() Tyler On Wed, 11 Jul 2001 03:12:56 +0100 "James Bartlett" <[EMAIL PROTECTED]> wrote: > Hi, > > This might sound really simple but plz humour me :) > > Ho

[PHP] Variables

2001-07-10 Thread James Bartlett
Hi, This might sound really simple but plz humour me :) How can I tell if two text variables are equal to one another? If I use.. if($text1 = $text2) { echo "The variables are equal"; } else { echo "The variables are not equal"; } then the code in the else state is always printed even if I kn

[PHP] http referer

2001-07-10 Thread Jack
Dear folks I was told that http referer can tell me where the user come from. But it does not work all the time, is there anything else that work better than this? Jack [EMAIL PROTECTED] "Love your enemies, it will drive them nuts"

Re: [PHP] How to generate Automatic Reports ?

2001-07-10 Thread Daniel Fassnauer
Well, either use the windows own "sheduled task" option or get a version of cron for win32. a quick search on google came up with the following: http://www.dwgsoftware.com/help/task_scheduler.html http://www.kalab.com/freeware/cron/cron.htm Manisha wrote: > > hi, > > I want to generate some r

Re: [PHP] Blind Carbon Copies? with mail ()???

2001-07-10 Thread Marcus James Christian
Man that is awesome! Can the Bcc in the headers somehow be a $variable ? Thanks, Marcus Matthew Loff wrote: > (Have the To: address be yourself, or a mail account that simply dumps > to /dev/null) > > $to = "[EMAIL PROTECTED]"; > $subject = "Subject of Message"; > $message = "blah blah blah..

Re: [PHP] PHP implementation of associative arrays

2001-07-10 Thread Rasmus Lerdorf
Yes > is it possible to delete an item from an associative array by using > unset(thearray["item1"]); ? > if the array item is in turn a large object, does this free up the memory > that the object was taking up? > thanks, > -kevin bullaughey > > > -- PHP General Mailing List (http://www.php.n

[PHP] How to generate Automatic Reports ?

2001-07-10 Thread Manisha
hi, I want to generate some reports every night at 12.00 o'clock in the night. The reports should get generated automatically without administrator clicking the option. It should run some PHP file which will do the actual report generation stuff, but how to activate this file every nigh ? pla

[PHP] PHP implementation of associative arrays

2001-07-10 Thread Kevin Bullaughey
is it possible to delete an item from an associative array by using unset(thearray["item1"]); ? if the array item is in turn a large object, does this free up the memory that the object was taking up? thanks, -kevin bullaughey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-

RE: [PHP] How to add a new color to JPEG

2001-07-10 Thread Matthew Loff
I believe the problem is GD previous to version 2.0.1... They could only create images with indexed (256?) colors... I had a PHP script that used GD to resize JPEGs to smaller thumbnails automatically... And it would always reduce them to 256 colors, until I upgraded to PHP 4.0.6, GD 2.0.1, and

RE: [PHP] Blind Carbon Copies? with mail ()???

2001-07-10 Thread Matthew Loff
(Have the To: address be yourself, or a mail account that simply dumps to /dev/null) $to = "[EMAIL PROTECTED]"; $subject = "Subject of Message"; $message = "blah blah blah..." $headers = "From: Optional Name of List <[EMAIL PROTECTED]>\nBCC: [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]"

RE: [PHP] weird behaviour with ("Z" <= "Z")

2001-07-10 Thread Christian Dechery
that is exactly what I did... it worked perfectly... At 01:40 11/7/2001 +0900, Maxim Maletsky wrote: >I would rather go for the following solution: > > > for($i=ord('A'); $i<=ord('Z'); $i++) > echo chr($i).' '; > >I know it's same and even slower as it takes two more func

RE: [PHP] How to add a new color to JPEG

2001-07-10 Thread SED
I have version 4.0.5 so I need to upgrade :) However, I found work around on the PHP-website: -- I experienced the same, but i use following workaround: Create a new Jpeg, Allocate your colours, and copy your original jpg into the new one. then you have all the colours you have allocate

Re: [PHP] Apostrophe's

2001-07-10 Thread David Robley
On Wed, 11 Jul 2001 03:32, Dave Stewart wrote: > Hi, > > I have a script that let's me update news on my site but recently > whenever I use ' apostrphe's or " speechmarks I end up with a slash i.e > Jack's becomes Jack\'s > > From reading here and in the archives it appears I have to edit the > sc

RE: [PHP] weird behaviour with ("Z" <= "Z")

2001-07-10 Thread Christian Dechery
well... I think u may be wrong if "Z" is a string and there's nothing bigger or lower than it what is the result of strcmp("Z","a")??? I guarantee you it will not be 0... At 01:09 11/7/2001 +0900, Maxim Maletsky wrote: >what??? > >are you sure it does that to you? >You sound so confident th

RE: [PHP] weird behaviour with ("Z" <= "Z")

2001-07-10 Thread Christian Dechery
Yeah... I solved it using ord() in the for clause and chr() in the output... it worked just fine... thanks anyway... At 11:57 10/7/2001 -0400, Jack Dempsey wrote: >Perhaps not a great answer, but this issue has been brought up before, >and it has to do with the incrementing of a string...search

[PHP] Blind Carbon Copies? with mail ()???

2001-07-10 Thread Marcus James Christian
Hello, I want to send Blind Carbon Copies or Bcc: to a huge 100-200 person mailing list. But the PHP mail() has a to, subject, body format. How can I get a Bcc: in there? Thanks, Marcus -- Marcus James Christian - UNLIMITED - Multimedia Internet Design http://mjchristianunlimited.co

Re: [PHP] How to fetch a "group by" Query?

2001-07-10 Thread David Robley
On Tue, 10 Jul 2001 22:10, Frédéric Mériot wrote: > Hello (again) > > I've got a query which extract titles and categories with a group by on > the categorie. Is there a simple way to display rows like this (without > doing a second query ): > > Categorie A > -titi > -toto > -tutu > >

RE: [PHP] How to add a new color to JPEG

2001-07-10 Thread SED
I'm not sure I follow. I know this is how I would do it if I had a GIF-image, but this does not include JPEG. That’s the main issue. The JPEG is saved as an RGB-image, not index colored like GIF, therefore I'm asking about how to add a RGB color to a non-index-color-image (JPEG). Are you sure you

[PHP] MAIL to a Bcc: ???

2001-07-10 Thread Marcus James Christian
Hello, How do I change the value of the "TO:" in a mail() function to a value of Bcc: ? Or at least trick the mail to a Bcc:So the recipients emails aren't shown? Thanks, Marcus -- Marcus James Christian - UNLIMITED - Multimedia Internet Design http://mjchristianunlimited.com Proudly p

[PHP] Enabling short tags in PHP 4.0.6

2001-07-10 Thread Coulee Web
I have just installed PHP 4.0.6 on my server and although the php.ini file shows that short open tags should be on, a look at phpinfo() shows they are off and of course the don't work. I have a huge site already developed using short tags and must turn them on. Does anyone know what is wrong? I ev

[PHP] Upgrade to Apache 1.3.20 on Win2k

2001-07-10 Thread Inércia Sensorial
Hi all, I have Windows 2000 running Apache 1.3.19. When I run the most recent 1.3.20 windows binary, it says "There's already a version of Apache. Go to add/remove programs". Asking me to uninstall it. But, will I lose any mods or confs if I do this and install the new version? And have

Re: [PHP] Fetching binaires from an e-mail

2001-07-10 Thread Brad Hubbard
On Wed, 11 Jul 2001 06:54, Nicklas af Ekenstam wrote: > > If anybody here has seen or written something like that and wouldn't > > mind sharing that code with me I'd be forever grateful. Hey, this is just about exactly the opposite of what you're after! http://www.heyes-computing.net/scripts/4/

RE: [PHP] deletion of temp files

2001-07-10 Thread Jon Snell
One way to do this is to create a special directory in htdocs reserved only for temporary files. Add the following line to crontab or a user with permissions to delete: 0 * * * * find /usr/local/apache/sitename/htdocs/specialdir/ -cmin +1440 -exec -rm -f {} Every hour this script will delete al

RE: [PHP] How to add a new color to JPEG

2001-07-10 Thread Matthew Loff
Is this only a problem with PHP/GD versions previous to 4.0.6/2.0.1? Does the new ImageCreateTrueColor() function fix this issue? http://www.php.net/manual/en/function.imagecreatetruecolor.php -Original Message- From: James Cox [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001

RE: [PHP] How to add a new color to JPEG

2001-07-10 Thread James Cox
That's something you would need to do in photoshop. open your image, select save for web, look to the left of the image, you should see some buttons and a black box. you need to click on the black box, select the yellow you want, and then click ok. Then, click the button above the yellow - that w

[PHP] How to select a line from a web page source?

2001-07-10 Thread Luis Simoes
Hi there: I wanna select a line from a table which is in a php page resulted of a mysql_query So far what i have is a way to search the text from only line and then limit the characters in substr ( ) Thats a really wierd way to do it, i think, and my problem its the page im trying to do its a te

RE: [PHP] How to add a new color to JPEG

2001-07-10 Thread SED
How can I add colors to JPEG-palette? I never new It had a special palette (until now :). -Original Message- From: James Cox [mailto:[EMAIL PROTECTED]] Sent: 10. júlí 2001 22:38 To: Jeff@Hyrum. Net Cc: [EMAIL PROTECTED]; Php-General@Lists. Php. Net Subject: RE: [PHP] How to add a new col

RE: [PHP] stripping white space?

2001-07-10 Thread Brian White
You just gotta love religious wars. How many people know about SGML? HTML is a standard implemented in SGML, and so has many of the possible features of SGML which got excluded for XML such as * ommissible end tags * optional quotes on attribute values that don't contain spaces or quote

Re: [PHP] Newbie. Help on installation on a Win2K

2001-07-10 Thread Kurt Lieber
get the PHP 4.0.6 installer at http://www.php.net/downloads.php -- it will install everything you need to work with IIS. Works great. Also has detailed readmes to discuss other installation methods/options. --kurt - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Se

Re: [PHP] how to find out the mysql version from php?

2001-07-10 Thread Aaron Bennett
or the more simple: mysql_get_server_info($dbh); // where $dbh is optional. http://www.php.net/manual/en/function.mysql-get-server-info.php Note: this is a new function for 4.0.5+. cheers, Aaron - Original Message - From: "Aaron Bennett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Jak

Re: [PHP] how to find out the mysql version from php?

2001-07-10 Thread Aaron Bennett
Jakob, See if this does what you're looking for. // returns a string with the current mySQL version connecting handled by $dbh. $mysqlver = pos(mysql_fetch_row(mysql_query("SELECT VERSION()",$dbh))); -- Aaron - Original Message - From: "Jakob" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED

[PHP] Newbie. Help on installation on a Win2K

2001-07-10 Thread jemer
Newbie. Help on installation on a Win2K im a newbie on this and i want a complete detail on PHP Installation on a Win2K thnx -- 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 admin

Re: [PHP] PHP Conference in California

2001-07-10 Thread Aaron Bennett
Well the exhibit hall is free... So if you're in town, and have a day or two sick-leave stored up, you might want to go... I'm still unclear if exhibit passes get you into any of the keynotes, but there will be a (heated) debate with MS sr. VP Craig Mundie and RedHat's Michael Tiemann... (http://c

RE: [PHP] How to add a new color to JPEG

2001-07-10 Thread James Cox
hmm. If what I understand from your ImageColorClosest(); function, why don't you just add yellow to the palette? that way it can be found by the function, but isn't used in the image? HTH, James Cox apologies jeff for sending it twice to you :) > -Original Message- > From: Jeff Lewis

Re: [PHP] Algorithm for repeating calendar events

2001-07-10 Thread Rasmus Lerdorf
> Have any of you seen those calendar applications that let you program > events that repeat periodically? You can set it to repeat every > thursday, every week, every third week, every six months, and so on? > > I am developing such an application in PHP and I know that the client > will ask for

[PHP] Algorithm for repeating calendar events

2001-07-10 Thread rodrigo
Have any of you seen those calendar applications that let you program events that repeat periodically? You can set it to repeat every thursday, every week, every third week, every six months, and so on? I am developing such an application in PHP and I know that the client will ask for this featur

[PHP] Mcrypt fails to run

2001-07-10 Thread Dixie Flatline
Greetings! I'm running Debian Potato 2.2.19 with php 4.0.4-pl1. I'd recently compiled an Mcrypt.so module, then added the extension line into my php.ini file. After reloading Apache and trying to run any php script which includes ANY mcrypt related function, the code immediately halts and no outp

RE: [PHP] how to find out the mysql version from php?

2001-07-10 Thread Chadwick, Russell
SELECT version() AS version -Original Message- From: Jakob [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 2:57 PM To: [EMAIL PROTECTED] Subject: [PHP] how to find out the mysql version from php? several people seem the have the "case sensitivity problem" regarding different m

RE: [PHP] How to add a new color to JPEG

2001-07-10 Thread Jeff Lewis
Hmm, I create my image from scratch and haven't tried drawing on an existing pallette. If your start image is always a blank black box you could always create it on the fly... > -Original Message- > From: SED [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 10, 2001 1:52 PM > To: [EMAIL

[PHP] how to find out the mysql version from php?

2001-07-10 Thread Jakob
several people seem the have the "case sensitivity problem" regarding different mysql versions - see this extract from the mysql manual: " Prior to MySQL Version 3.23.4, REGEXP is case sensitive, and the previous query will return no rows. To match either lowercase or uppercase `b', use this qu

Re: [PHP] PHP Conference in California

2001-07-10 Thread Uri Even-Chen
Is it worth going there for the exhibit hall only? I am also interested in the sessions & tutorials, but it looks quite expensive to participate in them. By the way, do you live in San Diego? Uri. Aaron Bennett wrote: > > Well, exhibit hall is free... I'll be there.. of course, its only 10 mi

[PHP] random number problem...

2001-07-10 Thread James Bartlett
Hi, I've written a picture rotation script, file paths are stored in a file and are called depending on a random number generator.. The problem is that out of 14 possible numbers only 7 are been generated. the code I'm using is... srand ( (double) microtime()*1000); $numbertodisplay = r

RE: [PHP] Authentication

2001-07-10 Thread David Baldwin
Well, I am using htpasswd files for the passwords but I took all the htaccess or mod_auth directives out of httpsd.conf. I guess I could learn mysql (yeay), and infact, that looks like a real good idea, but the double prompting is due to the fact (I think) that I have the following in the beginni

RE: [PHP] Removing quotes (was stripping white space?)

2001-07-10 Thread Navid A. Yar
My thoughts exactly Comrade --Navid Yar -Original Message- From: Kurt Lieber [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 9:27 AM To: Maxim Maletsky; [EMAIL PROTECTED] Subject: [PHP] Removing quotes (was stripping white space?) Will IE 6 support this non-standard coding styl

[PHP] regex questions

2001-07-10 Thread Jerry Lake
ok, I'm having some continual regex issues and perhaps someone can help me out with this. I've got a series of line of html that I am changing to xhtml and in doing so, each of those lines need to be appended with a " /" before the closeting bracket. the only pattern that they share is that the e

Re: [PHP] Fetching binaires from an e-mail

2001-07-10 Thread Nicklas af Ekenstam
Nicklas af Ekenstam wrote: > Hi > > I'm currently trying to rewrite one of my old perl applications to php > and everything works great except one thing: > I can't figure out how to write a piece of code that will fetch and > unencode all binaires, if any, from an e-mail message in an imap stream

[PHP] Groupwise calendar interface?

2001-07-10 Thread Chris Worth
Hello All, is there anyway to get a PHP script to "talk" to Groupwise? I'd like to be able to make some of my web info be able to be "entered" into a groupwise calendar. I really don't use Gwise but I've had people ask about this. any suggestions are appreciated. chris worth -- PHP Gen

[PHP] Re: Object oriented if statements

2001-07-10 Thread Lasse
Maybe it contains whitespaces... Have you tried: if (trim($record->Subject2) == "posters") { echo ("PrintFormat1"); } else { echo

[PHP] Problems with PHP_GD.DLL

2001-07-10 Thread Marius Pertravčius
Sveiki, php-general, Could someone remind me, how to enable graphic in PHP. I have Apache server on Win32. Does someone know any www page where i could read about it. 2001.07.10, antradienis Marius Pertravèius [EMAIL PROTECTED] -- PHP General Mailing List

[PHP] Re: flat file db

2001-07-10 Thread Lasse
Put it outside webscope, that way it won't be possible to browse the db-file directly... -- Lasse "Jon Yaggie" <[EMAIL PROTECTED]> wrote in message 030101c1095b$f235f1a0$0100a8c0@piiimonster">news:030101c1095b$f235f1a0$0100a8c0@piiimonster... i am setting up a flat file database. i want to res

RE: [PHP] stripping white space?

2001-07-10 Thread Chadwick, Russell
there is a limit of # of root entries. But the number of files per directory is much higher. Running RH6.2 I tried this test: I have an SGI xfs partition that does billion of entries per directory, like reiser, but for an ext2 partition this perl script is for testing for ($index = 1; $index <=

[PHP] mcrypt for win32

2001-07-10 Thread Troy Moreland
Can anyone explain how to install the Win32 version of mcrypt? I've downloaded the Win32 zip file and there are no docs on how to install. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Re: include nubie question - need help

2001-07-10 Thread Rehuel Lobato de Mesquita
Hey Ivo When PHP find an empty string, it returns this message In this case no one has logged in, so, it doesnot find "user_name" Include: Make sure the path of the file within the () is correct. So if the file is in the same directory, this might be good, but if it's in a different folder, you

Re: [PHP] how to hide dbconnect file if its in published directory?

2001-07-10 Thread teo
Hi Thomas! On Tue, 10 Jul 2001, Thomas David Kehoe wrote: > > include ('http://www.friendshipcenter.com/Objects/swordfish.inc'); > echo "Your password is ", PASSWORD; > > it works, i.e., prints "Your password is swordfish." > > When I use the following lines > > include ('http://ww

[PHP] key length in an array

2001-07-10 Thread Matthew Hanna
Hey! I was wondering if anyone knows if there is a limit to how long a string can be when used as a key in an array. Also, what if they are the same up to some point? For example, $string = "SomeStringUsedAsKey"; $string2 = "SomeStringUsedAsKeyAgain"; $myArray[$string] = "some value"; $myArray[$

Re: [PHP] how to hide dbconnect file if its in publisheddirectory?

2001-07-10 Thread Chris Lambert - WhiteCrown Networks
I didn't read the first parts of this thread, but the reason for it working in the first example and not the second is because the web server/php engine process php files when they're called over HTTP. This means that the define() call is being executed, but your primary script only includes what

Re: [PHP] how to hide dbconnect file if its in publisheddirectory?

2001-07-10 Thread Thomas David Kehoe
The suggestion to use the ".php" extension instead of the ".inc" extension doesn't work. I created to identical files, swordfish.php and swordfish.inc, containing the following script: When I use the following lines include ('http://www.friendshipcenter.com/Objects/swordfish.inc');

Re: [PHP] deletion of temp files

2001-07-10 Thread Chris Lambert - WhiteCrown Networks
Sessions support garbage removal, where the temp files will be deleted at a random time after the user has left. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Anurag Bhalla

[PHP] Re: deletion of temp files

2001-07-10 Thread Henrik Hansen
[EMAIL PROTECTED] (Anurag Bhalla) wrote: > 1. (*) text/plain > > Hi list > > In my application,I need to generate some files for each > user who comes to my site.These files need to be deleted > once the user logs off. Pls suggest some way to delete these > files once the

Re: [PHP] PHP Conference in California

2001-07-10 Thread Chris Lambert - WhiteCrown Networks
It didn't look like much is being exhibited, though. It'd be quite a trip coming from Israel, but I'm sure Zeev's doing it... ;-) You just need to evaluate how much the sessions & tutorials are worth to you or your company. If there's nothing that interests you, its probably not worth going. Oth

Re: [PHP] security

2001-07-10 Thread Chris Lambert - WhiteCrown Networks
But the advantage of checking user agents would be that they'd either have to write a new flash script, or manually post to the form via sockets, as using I.E. to go to game.php?winner=me wouldn't work. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Appli

[PHP] deletion of temp files

2001-07-10 Thread Anurag Bhalla
Hi list In my application,I need to generate some files for each user who comes to my site.These files need to be deleted once the user logs off. Pls suggest some way to delete these files once the user logs off ; perhaps with the use of sessions Regards Anurag

[PHP] deletion of temp files

2001-07-10 Thread Anurag Bhalla
Hi list In my application,I need to generate some files for each user who comes to my site.These files need to be deleted once the user logs off. Pls suggest some way to delete these files once the user logs off ; perhaps with the use of sessions Regards Anurag

Re: [PHP] PHP Conference in California

2001-07-10 Thread Aaron Bennett
Well, exhibit hall is free... I'll be there.. of course, its only 10 minutes away. *grin* -- Aaron - Original Message - From: "Uri Even-Chen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 9:11 AM Subject: [PHP] PHP Conference in California > I have heard about

Re: [PHP] security

2001-07-10 Thread py
But remember that once a user has accessed the .swf once, they can then get the path and call the file directly afterwards. Even worse, the .swf is in the computer's cache. py - Original Message - From: Chris Lambert - WhiteCrown Networks <[EMAIL PROTECTED]> To: AVisioN:::nomoremedia::: <

Re: [PHP] HTML/PHP's static state problem.

2001-07-10 Thread Aaron Bennett
And don't forget the 'no-no' of requiring javascript for basic functionality... Split it onto 2 pages, or have it resubmit to $PHP_SELF with a hidden field (how about a button that says "Get Cities >>"?) and populate from there.. If you're hell-bent on having it auto-populate the second select bo

[PHP] Apostrophe's

2001-07-10 Thread Dave Stewart
Hi, I have a script that let's me update news on my site but recently whenever I use ' apostrphe's or " speechmarks I end up with a slash i.e Jack's becomes Jack\'s >From reading here and in the archives it appears I have to edit the script with the stripslashes function. I was wondering if any

RE: [PHP] How to add a new color to JPEG

2001-07-10 Thread SED
That’s the problem, if I do that and the color is not used before in the image, I get only the closest match. Note, if I add a yellow pixle into the JPEG-image with Photoshop, save it and try it again, then I can use the yellow for my text. However, I don’t want to have the yellow dot in my pictur

[PHP] Re: Object oriented if statements

2001-07-10 Thread Patterson Liddle
I wonder if someone would be kind enough to explain why, if $record->Subject2 sometimes contains the word posters this echo $record->Subject2; accurately prints the word or words in the field Subject2 from the found record but this if ($record->Subject2 == "posters

RE: [PHP] How to add a new color to JPEG

2001-07-10 Thread Jeff Lewis
Could try this: $blue = ImageColorAllocate($image, 0, 0, 255); Substitue blue for yellow and you'll be the appropriate RGB values for the numbers. Jeff > -Original Message- > From: SED [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 10, 2001 1:27 PM > To: [EMAIL PROTECTED] > Subject:

[PHP] How to add a new color to JPEG

2001-07-10 Thread SED
Lets say I have a black JPEG-image and I want to add yellow text to it, how can I define the yellow color? According to the manual, you can only get closest value of your desired color by letting the ImageColorClosest() find it. Therefore, if the image is totally black, you can not get the yellow

Re: [PHP] Image manipulation

2001-07-10 Thread Chris Lambert - WhiteCrown Networks
www.php.net/GetImageSize list($width, $height) = getimagesize("file.gif"); /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Kevin Pratt <[EMAIL PROTECTED]> To: <[EMAIL PROTEC

AW: [PHP] Image manipulation

2001-07-10 Thread Sebastian Stadtlich
http://www.php.net/manual/en/function.getimagesize.php sebastian > -Ursprüngliche Nachricht- > Von: Kevin Pratt [mailto:[EMAIL PROTECTED]] > Gesendet: Dienstag, 10. Juli 2001 19:05 > An: [EMAIL PROTECTED] > Betreff: [PHP] Image manipulation > > > Does any one know if you can check the

[PHP] Image manipulation

2001-07-10 Thread Kevin Pratt
Does any one know if you can check the dimensions of a GIF file? Thanks Kevin -- 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] Line by Line , Word by Word

2001-07-10 Thread Chris Lambert - WhiteCrown Networks
www.php.net/fgetcsv Use a space as the deliminator. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: alfareees alfareees <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tue

  1   2   3   >