[PHP] Output (Urgent!)

2001-07-17 Thread Fredrik A. Takle
Why doesn't this work? Any ideas?! $resolution = "document.write(screen.width)"; if ($resolution >= '1024') { $resolution = "1024"; } else { $resolution = "800"; } echo $resolution; It always output 1024 Best regards Fredrik A. Takle Bergen, Norway -- PHP General Mailing Li

Re: [PHP] "report" generation with PHP

2001-07-17 Thread Philip Murray
What about using a Windows COM object? There should be one for Access and if not you can use the Word one and generate word documents. It's pretty easy to use and there's lots of (ASP) documentation, but you can translate that to PHP no probs. I myself have done this to create a (VERY) quick (as

RE: [PHP] email counter

2001-07-17 Thread Jorg Krause
Hi, > Brian White [mailto:[EMAIL PROTECTED]] wrote on Tuesday, July 17, 2001 5:52 AM > To: Jack; [EMAIL PROTECTED] > Subject: Re: [PHP] email counter > > > How about changing link to > > Big George > > Where mymailer.php is something like > > /* > Do whatever it is you need to do with $ema

RE: [PHP] "report" generation with PHP

2001-07-17 Thread Jörg Krause
> On Mon, Jul 16, 2001 at 05:19:41PM +0300, Marius Andreiana wrote: > > În 16 Jul 2001 09:07:17 -0500 garman a scris: > > > I forgot to mention that I already looked into the PDF extensions. > > > Although > > > it looks like it would do exactly what I want, the PDFLib > isn't free for > > You can

Re: [PHP] "report" generation with PHP

2001-07-17 Thread Marius Andreiana
În 17 Jul 2001 19:47:23 +1200 Philip Murray a scris: > What about using a Windows COM object? There should be one for Access and if > not you can use the Word one and generate word documents Don't use Words for that... We've had to generate invoices to be snail-mailed, imagine if the address in th

[PHP] Strange Behavior... is it php bug? please help... i'm dying.!!!

2001-07-17 Thread Martin Marconcini
Hi. I'm running Apache 1.3.19/php 4.06 under OpenBSD. I have 30 virtual domains... all plain html (or w/ little php), some date functions and mysql queries. But one of them has a lot of php. It's giving me a strange problem... Here is index.php Simple (the commonHeader / commonFooter idea

[PHP] variables.

2001-07-17 Thread Johan Vikerskog (ECS)
ok, i still am a newbie to this and therefor ill ask this silly question. I have made a small test script which checks the inputted name and pass against my database and if it was successfull it typed out success! and if it wasnt successfull it types out wrong password! My problem is. everytim

RE: [PHP] "report" generation with PHP

2001-07-17 Thread Marius Andreiana
În 17 Jul 2001 09:56:23 +0200 Jörg Krause a scris: > PHP has Java-Support build in, has anybody checked out this with a tool > like FOP (calling Java program from PHP)? Is it stable, good for > production environment? Yes, I'd like an answer to this too. Right now I can only call it with system ca

[PHP] Hi all.

2001-07-17 Thread Johan Vikerskog (ECS)
When i install PHP. Do i have to make anything special to activate the ldap function? //Johan -- 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 PROTE

Re: [PHP] return

2001-07-17 Thread Dave Freeman
On 16 Jul 01, at 15:25, Tyler Longren wrote: > function expDate($date) { > $month = substr("$date", 0, 2); > $len = strlen($date); > $year = substr("$date", $len-2, $len); > return $month; > return $year; > } > expDate("11/2002"); > print "$month $year"; >

[PHP] installation help!!!!!

2001-07-17 Thread Michael P. Carel
Hi, I really have difficulties installing PHP3with mysql support, i've red alot of documentation but i havent installed it successfully. I've compiled it many times but it doesnt work. I've been using RedHat6.2, Apache-1.3.14-6.2.i386.rpm,MySQL-3.23.39-1.i386.rpm,PHP3.0.18. I've compiled this v

[PHP] Error compiling apache / php --with-t1lib

2001-07-17 Thread Sverre Johan Tøvik
Hi, I'm having trouble compiling php with t1lib support. Actually, php compiles fine, it stops when compiling apache. ./configure make make install php works fine. ./configure apache works. But when I make apache, I get: gcc -DLINUX=22 -I/usr/src/network/php-4.0.0 -I/usr/src/network/php-

[PHP] Static vs. module, realworld performance difference?

2001-07-17 Thread Sverre Johan Tøvik
Hi, I've been advised that compiling php static is "faster" than the module version. Can anyone tell me what the realworld performance difference is? If it's not significant, the extra compile time hardly seems worth it. TIA! Regards, Sverre Johan Toevik -- I speak for myself only! "to

Re: [PHP] "report" generation with PHP

2001-07-17 Thread Philip Murray
> În 17 Jul 2001 19:47:23 +1200 Philip Murray a scris: > > What about using a Windows COM object? There should be one for Access and if > > not you can use the Word one and generate word documents > Don't use Words for that... We've had to generate invoices to be snail-mailed, I've also done th

RE: [PHP] Output (Urgent!)

2001-07-17 Thread Morten Winkler Jørgensen
Hi Frederik Run this code. It does what you want it to. In your original code you compared two strings in the IF-statement. When the $resolution gotten from your JavaScript returned '800' it would have a lexical higher value than '1024' and thereby do exacely what you wanted it to - actually the

[PHP] Information about FastTemplate, PHPlib and making big sites.

2001-07-17 Thread Schill, Johannes
Hello, I'm quite new to this list so i guess you've had this subject hundereds of times before(?). Anyway - I'm looking for articles/information about PHPlib, FastTemplate and their clones. I'm also looking for information about how to do big/complex sites. OOP in php, filestructures etc. Right

Re: [PHP] Hi all.

2001-07-17 Thread Christopher Ostmo
Johan Vikerskog (ECS) pressed the little lettered thingies in this order... > When i install PHP. > > Do i have to make anything special to activate the ldap function? > > //Johan > ./configure --with-ldap http://www.php.net/manual/en/install.configure.php Good luck... Christopher Ostmo a.

[PHP] Re: Output (Urgent!)

2001-07-17 Thread Fredrik A. Takle
This fixed it, but I don't like it! If you have any other suggestions, feel free to email me. if (screen.width >= 1024) { var resolution = ("1024") } else { var resolution = ("800") } Best Regards Fredrik A. Takle "Fredrik A -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Output (Urgent!)

2001-07-17 Thread Adrian Ciutureanu
I don't think this code do what he want... You are trying to mix client-side code with server-side code, but you can't do in that way. The ONLY way to obtain client screen resolution into a PHP variable is send data from client to server. > -Original Message- > From: Morten Winkler Jørgen

[PHP] displaying icons

2001-07-17 Thread Petr Jůza
Hi everybody! Please, have somebody any experience with displaying icons (type files *.ico) in web pages? When I have a pure html file that contain , all is OK - the icon is shown. But when I create a html page with assistance PHP, the icon isn't shown. Please, could you help me?? Thank you! Be

Re: [PHP] Output (Urgent!)

2001-07-17 Thread Jason Rennie
> $resolution = " LANGUAGE=\"JavaScript\">document.write(screen.width)"; > > if ($resolution >= '1024') { > $resolution = "1024"; > } else { > $resolution = "800"; > } > echo $resolution; > > It always output 1024 At a guess becasue your mixing and matching languages. If you g

Re: [PHP] Output (Urgent!)

2001-07-17 Thread Joseph
How you want to get a value from client side to php on the same page? Joseph "Orv î?÷inklÏ ²ørÏkîskî" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi Frederik > > Run this code. It does what you want it to. > In your original code you compared two strings

[PHP] RE: Output (Urgent!)

2001-07-17 Thread Tim Ward
all this is happening on the server. on the server $resolution is just a string so "if ($resolution >= '1024')" compares the two strings (using ascii values) and finds that "<"(60) is greater than "1"(49). If you want the server to know the screen width of the client you'll need to dig into the he

Re: [PHP] Output (Urgent!)

2001-07-17 Thread Morten Winkler Jørgensen
>> How you want to get a value from client side to php on the same page? Well. Actually I didn't invent the code. I just correcteded it so it worked on my installation. I must admit I was amazed that it somehow worked, but it did. Kind regards, Morten Winkler -- PHP General Mailing Lis

RE: [PHP] Output (Urgent!)

2001-07-17 Thread Adrian Ciutureanu
How do you know it worked? :) > -Original Message- > From: Morten Winkler Jørgensen [mailto:[EMAIL PROTECTED]] > Sent: 17 iulie 2001 12:54 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Output (Urgent!) > > > > >> How you want to get a value from client side to php on the > same page? >

[PHP] Re: variables.

2001-07-17 Thread elias
Hmm... It seems that you're variables are beeing reposted upon each page reload. yes, some code might help. "Johan Vikerskog" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED].. . > ok, i still am a newbie to this and therefor ill ask this silly question. > > I have

Re: [PHP] "report" generation with PHP

2001-07-17 Thread Marius Andreiana
În 17 Jul 2001 20:41:59 +1200 Philip Murray a scris: > On a side note, is there some Adobe license which prevents people writing > Free for use PDF libraries? don't think so; fop is free Marius Andreiana -- You don't have to go to jail for helping your neighbour http://www.gnu.org/philosophy/

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

2001-07-17 Thread Jennifer
> > > -Original Message- > > > From: SED [mailto:[EMAIL PROTECTED]] > > > 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 color. I > >

[PHP] Adding elements to an array

2001-07-17 Thread Sharat Hegde
Hello, I have a requirement to add elements to an associate array dynamically based on some conditions. I initialize the array with the 1st associate array element $MyArray = array('DATETIME' => $DateTime); How do I add more elements to this associate array. I am using PHP 3 and array_me

[PHP] ldap

2001-07-17 Thread Johan Vikerskog (ECS)
I made a search in ldap. I got one entrie. How do i list the email for that entry? Ill get one answer from this, now i want to print out the email adress for that entry. How do i do that? //Johan LDAP query test"; echo "Connecting ..."; $ds=ldap_connect("SERVER"); $dn = "o=Company, c=SV"; $fi

[PHP] Re: Output (Urgent!)

2001-07-17 Thread elias
Well, Yes... you have to stick to JavaScript + JavaScript and not JavaScript + PHP! You can let PHP talk w/ JavaScript and not the reverse! if (screen.width >= 1024) { var resolution = "1024"; } else { var resolution = "800"; } document.write(resolution); btw, why don't

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

2001-07-17 Thread Jennifer
Jennifer wrote: > it seems to ignore the color that I specify and always came out > grey. (Of course now if I use ImageColorClosest(), some colors > work because they are in my image.) > > > Any idea on how solutions? > Oops. I didn't read far enough. I found the following in a separate t

Re: [PHP] email counter

2001-07-17 Thread Steve Brett
how about using php mail functions if you've got the support on your server then a simple form to send the mail and you can track everything you need to ... Steve "Jorg krause" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > > Brian White [mailto

RE: [PHP] Adding elements to an array

2001-07-17 Thread Adrian Ciutureanu
$MyArray['BUYVAL'] = 1.23; > -Original Message- > From: Sharat Hegde [mailto:[EMAIL PROTECTED]] > Sent: 17 iulie 2001 13:11 > To: [EMAIL PROTECTED] > Subject: [PHP] Adding elements to an array > > > Hello, > > I have a requirement to add elements to an associate array > dynamically ba

[PHP] Re: Adding elements to an array

2001-07-17 Thread Joseph
Try $MyArray = array('DATETIME' => $DateTime); $MyArray["BUYVAL" ] = "1.23"; "Sharat Hegde" <[EMAIL PROTECTED]> wrote in message 30402B4CB8C7D311A3C600C04F1513BC7E8976@bg2ipmail">news:30402B4CB8C7D311A3C600C04F1513BC7E8976@bg2ipmail... > Hello, > > I have a requirement to add elements to an assoc

[PHP] Re: Known bugs with HTTP upload on Windows NT?

2001-07-17 Thread elias
Hmm... do you have write access on that directory? IUSR_xxx and IWAM_ users must be appropriate writes on that folder... "Adam Whitehead" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi All- > > I'm having trouble with a simple script that allows HTTP up

Re: [PHP] mysql_query problem (more suggestions)

2001-07-17 Thread Alvin Tan
Hi Brad, Took another go at it: This works for me: $sql= "SELECT * FROM login_table where Pass = password('$password')"; $testResult = mysql_query($sql) or die ("ouch"); $b = mysql_num_rows($testResult); echo $b; for sure. I password(ed) the INSERT and it shows the encrypted version in the ta

Re: [PHP] Adding elements to an array

2001-07-17 Thread Patrik Wallstrom
On Tue, 17 Jul 2001, Sharat Hegde wrote: > Hello, > > I have a requirement to add elements to an associate array dynamically based > on some conditions. I initialize the array with the 1st associate array > element > $MyArray = array('DATETIME' => $DateTime); > > How do I add more elements

Re: [PHP] passing variables from forms to the same page repetatively

2001-07-17 Thread maatt
I was doing something similar just yesterday. Ended up with a little function to automatically write hidden s for every variable that's submitted, whether posted or thru the url. Goes like this... // put this somewhere in your form // the function itself function get_param_inputs() { global $

[PHP] edit xml with php?

2001-07-17 Thread Jan Grafstrom
Hi! I am trying to edit this xml-file: I want to change one of the li-nodes. per Bylund Semin Axel Timan Semina Lars Berg Seminar - I have tryed to read and explode on "" $fd = fopen($filename, "r"); $stri

[PHP] Extracting from arrays - alphabetically

2001-07-17 Thread Kevin Price-Ward
Hi, A simple problem for you guys (I think), I have 2 arrays - firstname and lastname, both have the same associative index - lastname, I have then performed asort on both to order them alphabetically. Now I just need to extract and display the array elements that have the associative index begi

Re: [PHP] Output (Urgent!)

2001-07-17 Thread Brad Hubbard
This discussion reflects a surprisingly common misunderstanding of client v. server side scripting. PHP, all processing takes place on the server. Javascript, all processing takes place on the client. I've seen this misconception with ASP v. VBscript/javascript too. Strange you would think

Re: [PHP] edit xml with php?

2001-07-17 Thread Brad Hubbard
On Tue, 17 Jul 2001 20:27, Jan Grafstrom wrote: > Hi! > I am trying to edit this xml-file: > I want to change one of the li-nodes. > Your call, but I think you'd be better off using these functions to parse the original file and generate the modified version. Cheers, Brad -- PHP General Mai

[PHP] Re: Output (Urgent!)

2001-07-17 Thread Fredrik A. Takle
Don't like it 'cause it is client-side, but it works fine! ...Fredrik:) "Elias" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Well, Yes... > you have to stick to JavaScript + JavaScript and not JavaScript + PHP! > You can let PHP talk w/ JavaScript and not t

[PHP] SQL in array() ?

2001-07-17 Thread James Holloway
Hey guys, I saw a post in here the other day that's prompted me to ask this question... Because I can't seem to get the solution mentioned to work. Maybe I'm missing something obvious... Anyway, here goes. I have a list of categories contained in one table, and a list of entries in another. S

Re: [PHP] REPOST: converting multiple URL values for the same variable into an array

2001-07-17 Thread Garth Dahlstrom
Kurt, You might have some luck with adding [], I seem to remember that making arrays for form posts, so it might do gets too... http://myhost/playlist.pls?song[]=100&song[]=101&song[]=102 and if you always end up with an array using [], you might change the condition to count($song) > 1 or s

RE: [PHP] edit xml with php?

2001-07-17 Thread Jens Wabnitz
> I am trying to edit this xml-file: Have a look at: http://ww.phpxml.org/ Bye Jens -- 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] Re: REGEXP

2001-07-17 Thread Adrian D'Costa
> > > > This is wrong. It should be > > Content-Type: multipart/mixed; > > boundary="B42DA66C4EC07C9B572A58FC" > > > > I don't know why it is not reading the whole string. It seems to treat > > the *boundary* part as another line. > > It _is_ another line; it just happens to s

Re: [PHP] SQL in array() ?

2001-07-17 Thread Miles Thompson
I'm not going to comment on array processing techniques, but I suggest you are into a situation where you have to rethink your database design from the point of view of performance and normalization. I don't know how many records you will eventually have, but the key to performance in SQL dat

[PHP] Custom Headers?

2001-07-17 Thread Fredrik A. Takle
Can I send like custom headers? header ("Resolution: 1024"); and echo it in the phpscript? Can I do this or is it a silly question? Best Regards Fredrik A. Takle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

[PHP] mail() help

2001-07-17 Thread Patrick W. Rateliff
I am getting this error when using the trying to use the mail function. Any insite will help, I have been up for too long working on a few projects and my brain is damn near melted. mail() is not supported in this PHP build in so when I built PHP 4.06 I am assuming I missed a option, but just

Re: [PHP] SQL in array() ?

2001-07-17 Thread James Holloway
Thanks for your comments, Miles. To answer your question(s), I'll not be wanting to select multiple categories in anything other than the administration section. The main search form has the categories listed, and the user only has the option to select from one category. The reason I need to be

Re: [PHP] Credit card number checker?

2001-07-17 Thread John Monfort
> What companies issue card numbers that are not 16 numbers? Are > they non-US cards? I haven't ever seen a card that wasn't 16 numbers. A valid VISA card has between 13-16 digits. I believe AMERICAN EXPRESS only has 15 digits. -john __John Monfort_ _+

[PHP] fill in inputs control (part II) PHP + JavaScript

2001-07-17 Thread Aniceto Lopez
Hello again: some one told me to control the "input" and "text areas" right filling in from a form using java script and this is what I'm trying but problems appear. Options: the javascript is doing it's work but nothing is inserted in the db if using the javascript checks (only) the filling i

[PHP] Installing CGI --disable-force-cgi-redirect

2001-07-17 Thread tau
Hi all, I have installed PHP 4 pn Redhat 7.0 using an RPM: php-4.0.4pl1-3.i386.rpm As well as making the apache stuff, it has installed a binary at /usr/bin/php, but the binary has been installed with --enable-force-cgi-redirect. I want this binary but without this option... can somebody please

[PHP] Re: mail() help

2001-07-17 Thread Steve Brett
as afr as i know it's a recompile with a path to sendmail ... great when it works though ! Steve "Patrick W. Rateliff" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am getting this error when using the trying to use the mail function. Any > insite will hel

[PHP] LDAP question PLEASE help me.

2001-07-17 Thread Johan Vikerskog (ECS)
People! I am getting nuts here about this thing i am working on right now. I am trying to get make a ldap php script that get information about a user. I can connect to the ldap server and get response on how many entries that was found. But how do i print out something of use. I mean. How do i

[PHP] running php scripts

2001-07-17 Thread Pétur Björn Thorsteinsson
hi, I was wondering if someone could help me with a small problem I'm having. I'm running a script that periodically dumps information from one server to a database on another. We're running suse 7.1 and apache on the server containing the information, and the problem is I don't know how to make

Re: [PHP] LDAP question PLEASE help me.

2001-07-17 Thread Reuben D Budiardja
Use ldap_get_entries. See here: http://www.php.net/manual/en/function.ldap-get-entries.php Check the bottom of your code, I put something in there. On Tuesday 17 July 2001 07:27 am, Johan Vikerskog (ECS) wrote: > People! >>echo "LDAP query test"; > echo "Connecting ..."; > $ds=ldap_connect("loc

RE: [PHP] running php scripts

2001-07-17 Thread Johan Holst Nielsen
> hi, I was wondering if someone could help me with a small problem I'm > having. > > I'm running a script that periodically dumps information from one > server to > a database on another. We're running suse 7.1 and apache on the server > containing the information, and the problem is I don't kn

Re: [PHP] running php scripts

2001-07-17 Thread Johan Holst Nielsen
> >We're running suse 7.1 and apache on the server > > containing the information, and the problem is I don't know how to make > > linux run the php script, or how to set up crobtab with the php > script in > > mind. anyone have any ideas? > > You can use this Tutorial > http://www.faqts.com/know

Re: [PHP] echo vs printf

2001-07-17 Thread hassan el forkani
"whereas to echo it you'd have to concatenate the string." false you don't have to concat strings with echo you can print vars the same way as print regards 16/07/01 17:48:43, "Steve Brett" <[EMAIL PROTECTED]> wrote: >i seem to remember reading somewhere that print acts like (is) a function, >p

RE: [PHP] Problem about PHP

2001-07-17 Thread Mark Roedel
> -Original Message- > From: ChengWen_Yu [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 16, 2001 10:54 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Problem about PHP > > > I want to write a library for the PHP on Solaris. But I > don't know how to do and where I should put this library

[PHP] regexp. king needed (is it possible ???)

2001-07-17 Thread Jeroen Olthof
ereg_replace("$opentag([^*]*)$closetag", $this->OPENTAG.$loopHandle.$this->CLOSETAG, $template); how do I get al hold on the "\\1" part of the replacement. basicly I want to replace opentag1 .any content in between .. closetag1 with opentag2 onewordonly closetag2 but still

[PHP] error on mail.....cjk

2001-07-17 Thread Constantine Koulis
hello all. i configured my php 4.0.5 with the following command on a REDHAT linux 7.0. #./configure --with-apache=../apache_1.3.20 --with-mysql --enable-trackvar --with-ftp. Now i am trying to install/configure a NEWSLETTER php program and i have the following message : Warning: mail() is not su

[PHP] Get filename in php command line

2001-07-17 Thread Reuben D Budiardja
Hello, How do I get the filename or script name if I run it in php comamnd line? For example, if I run this bash$ php test.php I want to get something inside test.php that tells me the filename is test.php, but *without* the actual path. Thanks Reuben D. Budiardja -- PHP General Mailing Lis

RE: [PHP] regexp. king needed (is it possible ???)

2001-07-17 Thread Adrian Ciutureanu
$content = ''; $new_str = '' > -Original Message- > From: Jeroen Olthof [mailto:[EMAIL PROTECTED]] > Sent: 17 iulie 2001 17:38 > To: [EMAIL PROTECTED] > Subject: [PHP] regexp. king needed (is it possible ???) > > > ereg_replace("$opentag([^*]*)$closetag", > $this->OPENTAG.$loopHandle.$

Re: [PHP] running php scripts

2001-07-17 Thread Pétur Björn Thorsteinsson
thanx for the help man, the script is running and I get to keep my job ,) -petur "Johan Holst

Re: [PHP] Output (Urgent!)

2001-07-17 Thread Sheridan Saint-Michel
You aren't getting the value to the PHP script... allow me to walk through what is actually happening $resolution = "document.write(screen.width)"; echo "--".$resolution."--"; You have just set a variable to "document.write(screen.width)" and then echoed that string. so it looks like you have

Re: [PHP] regexp. king needed (is it possible ???)

2001-07-17 Thread Jeroen Olthof
thanks my king :) it works !!! "Adrian Ciutureanu" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... $content = ''; $new_str = '' > -Original Message- > From: Jeroen Olthof [mailto:[EMAIL PROTECTED]] > Sent: 17 iulie 2001 17:38 > To: [EMAIL PROTECTED]

[PHP] Need help. LDAP

2001-07-17 Thread Johan Vikerskog (ECS)
In the ldap script below i get the results when i use the decide function at the bottom. Anyone have a tip on how i can change this so i can push the results into variables instead? Thanks in advance //Johan ", $info[$i]["$what"][$j]); echo "$display: " . $show . ""; } } functio

[PHP] note to PHP developers

2001-07-17 Thread Michael Geier, CDM Systems Admin
I have noticed on the list over the past two months, an increasing number of problems with the mail() function. Mostly, people having this problem don't have sendmail installed. It would seem that PHP's mail() function was written around sendmail. Is there a way to resolve this, with either con

[PHP] wordwrap()

2001-07-17 Thread Tyler Longren
Maybe I'm not using it right, but I'm using the sample in the manual. Here's the code: Here's the output: A very long wooo ord. Here's what the manual says the output should be: A very long wooo ord. Has anyone else had troubles with the wordwrap() function? Do I need to compi

Re: [PHP] note to PHP developers

2001-07-17 Thread Nathan Cook
On a side note, qmail has a wrapper that pretends to be sendmail. You can overwrite the /bin/mail with it and it will behave and accept mail just like sendmail, but send it through qmail-smtp. Nathan Cook [EMAIL PROTECTED] - Original Message - From: "Michael Geier, CDM Systems Admin" <[E

Re: [PHP] note to PHP developers

2001-07-17 Thread Christopher Allen
Also, postfix works fine for me... > On a side note, qmail has a wrapper that pretends to be sendmail. You can > overwrite the /bin/mail with it and it will behave and accept mail just like > sendmail, but send it through qmail-smtp. > > > - changed php.ini path -> qmail path -- PHP General

Re: [PHP] Get filename in php command line

2001-07-17 Thread Jason Bell
$PHP_SELF returns the filename with the full path. from there, you can use split to split the string wherever a / occurs, then call count, to get the total number of values in the array, decrememnt the count by 1 (Arrays begin at 0) then, set a variable to store just the filename, like so: $fullp

RE: [PHP] wordwrap()

2001-07-17 Thread scott [gts]
i know this is a silly question, but you're not looking at it thru a web browser, are you? browsers are for HTML and markup code. the output on my computer is the same as the manual output: A very long wooo ord. > -Original Message- > From: Tyler Longren [mailto:[EMAIL PROTECTED]

[PHP] Storing image/documents in database vs. filesystem

2001-07-17 Thread Bob
What's the pros and cons for storing uploaded images or documents (.doc, .pdf) in a database versus something like http://www.company.com/files/pic.jpg? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com --

Re: [PHP] wordwrap()

2001-07-17 Thread Tyler Longren
Well, that was easy. I never even thought to change the \n to . Thanks for helping me over my mental block... Tyler - Original Message - From: "scott [gts]" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Tuesday, July 17, 2001 10:25 AM Subject: RE: [PHP] wordwrap() > i know

[PHP] Re: wordwrap()

2001-07-17 Thread Henrik Hansen
[EMAIL PROTECTED] (Tyler Longren) wrote: > Maybe I'm not using it right, but I'm using the sample in the manual. > Here's the code: > $text = "A very long wrd."; > $newtext = wordwrap( $text, 8, "\n", 1); > echo "$newtext\n"; > ?> you should use $newtext = wordwrap( $text, 8,

Re: [PHP] Get filename in php command line

2001-07-17 Thread Reuben D Budiardja
Seems that $PHP_SELF is not defined when it's run from the command line. Reuben D. Budiardja On Tuesday 17 July 2001 10:29 am, Jason Bell wrote: > $PHP_SELF returns the filename with the full path. from there, you can use > split to split the string wherever a / occurs, then call count, to get t

RE: [PHP] Get filename in php command line

2001-07-17 Thread Boget, Chris
> Seems that $PHP_SELF is not defined when it's run from the > command line. Try: __FILE__ Chris

[PHP] Getting the current URL (with arguments) as a variable, then removing another variable from that ?

2001-07-17 Thread Justin Colson
Is there a way that I can get the current URL, like myfile.php?sub=web?page=web1 And then remove the ?sub=web from it, even if the value of ?sub is different ? Someone said something about $PHP_SELF but I dont know where to go from there. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Getting the current URL (with arguments) as a variable, then removing another variable from that ?

2001-07-17 Thread ReDucTor
myfile.php?sub=web&page=web1 shouldn't it be?!!?!? - Original Message - From: Justin Colson <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 18, 2001 1:51 AM Subject: [PHP] Getting the current URL (with arguments) as a variable, then removing another variable from that ?

Re: [PHP] Get filename in php command line

2001-07-17 Thread Reuben D Budiardja
I had that before. OK, seems that my problem is not that simple. The thing is , I have something like this in my file test.php: require('my_api.inc'); echo "This is test.php3"; Now, in my_api.inc, I want to know that I run test.php3, when I do bash$ php test.php3 and the filename is test.php3

RE: [PHP] Get filename in php command line

2001-07-17 Thread Boget, Chris
> I had that before. > OK, seems that my problem is not that simple. The thing is , > I have something > like this in my file test.php: > require('my_api.inc'); > echo "This is test.php3"; > Now, in my_api.inc, I want to know that I run test.php3, when I do > bash$ php test.php3 > and the filen

Re: [PHP] note to PHP developers

2001-07-17 Thread teo
Hi Michael! On Tue, 17 Jul 2001, Michael Geier, CDM Systems Admin wrote: > I have noticed on the list over the past two months, an increasing number of > problems with the mail() function. > > Mostly, people having this problem don't have sendmail installed. It would > seem that PHP's mail() fu

[PHP] md5 crypt question

2001-07-17 Thread Jeremy Hansen
I'd like to use php to do what I'm able to do in perl. use String::Random; use Crypt::PasswdMD5; $foo = new String::Random; $rand = $foo->randpattern("ss"); print "Type in your password: "; $password = ; $hash = unix_md5_crypt($password,$rand); $salt = substr($hash,3,2); print "SUBSTR: $s

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

2001-07-17 Thread Matthew Loff
I don't know a way around the problem you're describing with your version of PHP, but PHP 4.0.6 with GD 2.0.1 allows you to call ImageCreateTrueColor(), which eliminates the 256-color limitation with JPEG files-- solved my problem right away. -Original Message- From: Jennifer [mailto:[EM

[PHP] Re: wordwrap()

2001-07-17 Thread Rehuel Lobato de Mesquita
Hey Ty, I had the same problem. I read somewhere that you can use "\r\n" instead. \r returns home and \n adds a new line! It works fine here! Rehuël "Tyler Longren" <[EMAIL PROTECTED]> wrote in message 00aa01c10ed3$a3253ee0$[EMAIL PROTECTED]">news:00aa01c10ed3$a3253ee0$[EMAIL PROTECTED]... > Ma

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

2001-07-17 Thread Jon Yaggie
has this problem check the annoted manual on php.net. i believe there is a work arround posted on imagecolorallocate() and i reposted the same thing under imagecreatefromjpeg. basically you create and image, allocate colors, and then copy your jpeg on it. Thank You, Jon Yaggie www.design-

[PHP] Code running function

2001-07-17 Thread B R
I know there's a function that takes a string argument and runs it as PHP code. i.e. function_name('echo $variable;'); I just can't remember what it is. Does any know? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.ya

[PHP] Re: wordwrap()

2001-07-17 Thread Henrik Hansen
[EMAIL PROTECTED] (Rehuel Lobato De Mesquita) wrote: > Hey Ty, > > I had the same problem. I read somewhere that you can use "\r\n" instead. \r it's windows that uses \r\n so if you run your scripts on a windows machine it might be a good idea to split on them too. -- Henrik Hansen -- PH

[PHP] Re: Code running function

2001-07-17 Thread Inércia Sensorial
eval(); ? -- Julio Nobrega. Because happiness is a warm gun Bang-bang shoot-shoot "B R" <[EMAIL PROTECTED]> wrote in message 005501c10ee3$e82b4740$c6655ad1@Test4">news:005501c10ee3$e82b4740$c6655ad1@Test4... > I know there's a function that takes a string argument and runs it as PHP > code.

[PHP] library GD

2001-07-17 Thread Luiz Fernando \(Tuca\)
I installed Apache 1.3 for windows and php4 (Easywindows). I take a sample of functions GD, but when the program execute don't appear nothing. What's the problem? Thanks Luiz Fernnado -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] ldap

2001-07-17 Thread Dan Lowe
Previously, Johan Vikerskog (ECS) said: > > How do i list the email for that entry? Ill get one answer from this, now > i want to print out the email adress for that entry. > How do i do that? > > $sr=ldap_search($ds, $dn, $filter, $justthese); > $info = ldap_get_entries($ds, $sr); > print $info

RE: [PHP] library GD

2001-07-17 Thread Johan Holst Nielsen
> I installed Apache 1.3 for windows and php4 (Easywindows). > I take a sample of functions GD, but when the program execute don't appear > nothing. > > What's the problem? hmm, did you install GD library? http://www.boutell.com/gd Regards, Johan -- PHP General Mailing List (http://www.php.n

Re: [PHP] Code running function

2001-07-17 Thread Christopher Ostmo
B R pressed the little lettered thingies in this order... > I know there's a function that takes a string argument and runs it as PHP > code. i.e. function_name('echo $variable;'); > > I just can't remember what it is. Does any know? > Are you thinking of eval() ? http://www.php.net/manual/e

[PHP] Send array from php to dll make in vb 6

2001-07-17 Thread Luiz Fernando \(Tuca\)
I make a dll in Vb6 and it have a funcition that have a variable of type VARIANT like parameter. In the program php I call this dll and your method and send a array make in php. Occurs a error : Invoke Failed : "Occured a exception", but if I pass a variable of type integer or string to other meth

Re: [PHP] passing variables from forms to the same page repetatively

2001-07-17 Thread Tim Olsen
Yeah, I had thought about using hidden inputs, but hidden inputs are not really hidden. They still exist on the HTML page, and although not visible in the browser, are visible in the code. This may not be cool if you have sensitive information that is passed, also if you have a lot of variables

  1   2   >