[PHP] LDAP compile problem.

2001-07-17 Thread Johan Vikerskog (ECS)
When i try to activate ldap on a UNIX system something goes wrong but i dont even know were to begin looking. i use the "--with-ldap" when i compile but it doesnt give me any errors and yet it doesnt work. Any suggestions? On my PC it worked great. //Johan -- PHP General Mailing List (http

[PHP] count number of email sent to us

2001-07-17 Thread Jack
Dear people, I have an email link on my page like this mailto:[EMAIL PROTECTED]";> Big George and I want to know how may people click on on this particular link to keep the record, may be insert this record into a table as well ( but don't erally have to) Is there any technique at all to achiev

[PHP] Re: Force new page in browser and wait commands

2001-07-17 Thread elias
a simple example: "; } ?> test! name: In this example you won't see the comment in the start of the page unless the user processes the form. "Hugh Danaher" <[EMAIL PROTECTED]> wrote in message 002501c10f17$876cbf40$2afeb3d1@default">news:002501c10f17$876cbf40$2afeb3d1@default... Help, I'm

[PHP] Command line args HELP!!!

2001-07-17 Thread Paul A. Procacci
Hey all, I tried passing an argument to a php script that had a plus sign (+) in one of the arguments. Observe the following: http://altavista.com/sites/search/web?q=task+management&pg=q&kl=XX As it turns out the argument gets split into two seperate arguments, but I would like to keep it

[PHP] Re: Cannot copy a file to a dynamic folder

2001-07-17 Thread elias
Hi! when you use the "\" character in a string you have to escape it by putting "\\" instead of one! > $default_dir = ("D:\www\Proj\$textfield2\"); would become: $default_dir = "D:\\www\\Proj\\$textfield2\\"; do the same for the $filename variable. "Vincent Chew" <[EMAIL PROTECTED]> wrote in m

Re: [PHP] PHP based statistics/Graphs

2001-07-17 Thread eschmid+sic
On Tue, Jul 17, 2001 at 10:48:24PM -0700, Rasmus Lerdorf wrote: > I like Vagrant. See http://vagrant.sourceforge.net I prefer R :) http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html It is IMHO the best language for statistic. -Egon > On Wed, 18 Jul 2001, Chris Aitken wrote: > > > Hi everyone..

Re: [PHP] displaying icons

2001-07-17 Thread Dave Freeman
On 17 Jul 01, at 16:30, Yassel Omar Izquierdo Souchay wrote: > Put the same text inside php example > echo "" the next code and if you want it to work reliable do is this way: echo ""; and away you go... CYA, Dave ---

Re: [PHP] PHP and XHTML

2001-07-17 Thread Zak Greant
Hi Daniel, Set short_open_tag = Off in your php.ini file and the problem will go away. --zak Rose, Daniel wrote: > Hi, > I have looked through the history of the list, and I see that several people > have said that PHP fully supports XHTML. I have some problems using XHTML > with PHP, namely pa

[PHP] PHP code produces ocasional segfaults.

2001-07-17 Thread Santiago Romero
Hi all... I'm new to PHP and I needed to implement some PHP functions on a php webmail. I readed the PHP MANUAL and I found a code that suits my needs in an example, but it produces segfaults. I added the following code: $ds=ldap_connect("ldap.server.com"); if ($ds) { $r=ldap_bind(

Re: [PHP] PHP based statistics/Graphs

2001-07-17 Thread Rasmus Lerdorf
I like Vagrant. See http://vagrant.sourceforge.net -Rasmus On Wed, 18 Jul 2001, Chris Aitken wrote: > Hi everyone.. > > Just wondering if anyone can suggest any methods, or even pre-made packages > which can be manipulated to show various statistics, charts, graphs etc on > a whole range of th

[PHP] PHP based statistics/Graphs

2001-07-17 Thread Chris Aitken
Hi everyone.. Just wondering if anyone can suggest any methods, or even pre-made packages which can be manipulated to show various statistics, charts, graphs etc on a whole range of things. What im looking to do is run a whole bunch of statistics pages for where I work. Client stats, plan pop

Re: [PHP] how to include a remote file and change relative links to non-relative

2001-07-17 Thread Aral Balkan
I've been working on Hans Anderson's Browser class and I've adapted it to do what you're looking for. It's not complete but there should be a lot here for you to go on. Again, I haven't had time to fine tune things at all so it's a very rough hack right now. Hope it helps. The dirty on how to use

RE: [PHP] Regular expressions

2001-07-17 Thread Jack Dempsey
Checkout www.php.net/strtr -Original Message- From: Philip Murray [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 1:31 AM To: PHP General List Subject: [PHP] Regular expressions In Perl you can do this: $foo =~ tr/012/mpf/; Which is the same as: $foo = str_replace("

[PHP] Regular expressions

2001-07-17 Thread Philip Murray
In Perl you can do this: $foo =~ tr/012/mpf/; Which is the same as: $foo = str_replace("0", "m", $foo); $foo = str_replace("1", "p", $foo); $foo = str_replace("2", "f", $foo); in PHP. Is there a more elegant way of doing this in PHP? I tried preg_replace but it didn't seem to

[PHP] PHP and XHTML

2001-07-17 Thread Rose, Daniel
Hi, I have looked through the history of the list, and I see that several people have said that PHP fully supports XHTML. I have some problems using XHTML with PHP, namely parse errors, such as a parse error on the first line of every XHTML doc. Version of PHP is 4.0.6, and it was compiled like

[PHP] To overwrite or unregister session variables

2001-07-17 Thread Joseph Blythe
Hey, Was just wondering if it was better practice to unregister session variables before writing new values to them or if it was fine to just overwrite their values? Regards, Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: [PHP] MySQL Query.....

2001-07-17 Thread py_sympatico
Try, "select '$TableItem'.list where id = 1"; py - Original Message - From: Deependra B. Tandukar <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 18, 2001 12:14 AM Subject: [PHP] MySQL Query. > Greetings ! > > I have following tables in MySQL: > > TableItem > id

[PHP] MySQL Query.....

2001-07-17 Thread Deependra B. Tandukar
Greetings ! I have following tables in MySQL: TableItem idlist 1 Banana 2 Orange 3 Mango Other tables are: Banana, Orange, Mango Instead of selecting Table Banana directly I need to select it as "select $TableItem.list where id=1" or something like that for editing or deleting

[PHP] how to include a remote file and change relative links to non-relative

2001-07-17 Thread Brett
I am trying to create a page that will get a remote file and email it to me. All works fine using several different methods (include,file,fread) only relative links for images and links get my server address instead of the actual address the images should be retrieved from. Is there a way I c

Re: [PHP] gd lib question.

2001-07-17 Thread Rasmus Lerdorf
> Just a quick question for anyone that uses GD-Lib prior to the > latest true-colo(u)r version (specifically v. 1.6.1) - if I try to > load a jpeg that has more than 256 colours in it, will it succeed? I > know the obvious answer is to try it and see...but I don't have it > here on my machine

RE: [PHP] note to PHP developers

2001-07-17 Thread Michael Hall
No, they're two seperate things. In addition to being incredibly easy to install and configure, Postfix can be made fairly secure and it has a better (=more 'open') license of some kind. Mick On Wed, 18 Jul 2001, Jason Murray wrote: > > Me too. I've never had a problem with Postfix. It just >

[PHP] gd lib question.

2001-07-17 Thread Dave Mariner
Hi, Just a quick question for anyone that uses GD-Lib prior to the latest true-colo(u)r version (specifically v. 1.6.1) - if I try to load a jpeg that has more than 256 colours in it, will it succeed? I know the obvious answer is to try it and see...but I don't have it here on my machine, a

[PHP] Re: Problem

2001-07-17 Thread tttk
header("location:name_page.asp"); "Rhony V." <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In Asp i have this > response.redirect "name_page.asp", it's used to go to another page > > what is the similar function in PhP? > > Regards > > -- PHP General Mail

Re: [PHP] email counter

2001-07-17 Thread Jack
> Try to use javascript: > > > x = window.open("mailto:", "Site"); > > > It's easy to combine it with PHP to count the send mails. > In order to do the mail counter using javascript above, how would that work? What is "Site" for? and Does this script execute when peopl

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

2001-07-17 Thread Adam_Whitehead
Hi Elias- Yes I have write access on all directories. It doesn't seem to matter which directory it copies to either.. because it crashes before the is_uploaded_file() and moveuploadedfile() calls. -Adam

Re: [PHP] mysql_query problem (FINALLY FIXED !!!!!!!)

2001-07-17 Thread Brad Wright
Hi all (he says with a sheepish grin:), To all of those who tried to help with this thread, I thank you from the bottom of my heart Unfortunatly , the problem was not one of syntax, but rather one of gross stupidity on my behalf. The Field where I had been keeping the (encrypted) passwords w

RE: [PHP] question

2001-07-17 Thread Jochen Kaechelin
> In Asp i have this > response.redirect "name_page.asp", it's used to go to another page > > what is the similar function in PhP? header("Location: http://www.your.domain/foo.php";); -- phpArbeitsgruppe in Gruendung - Jochen Kaechelin Stuttgarter Str.3, D-73033 Goeppingen Tel. 0716

Re: [PHP] md5 crypt question

2001-07-17 Thread Jeremy Hansen
On Tue, 17 Jul 2001, tc lewis wrote: > > On Tue, 17 Jul 2001, Jeremy Hansen wrote: > > On Tue, 17 Jul 2001, tc lewis wrote: > > > try: > > > > > > > > > > > > or: > > > > > > > > > > > > you should get output of 12 and 1 (not 2 and 0) if md5 is supported in > > > crypt(), i think. > > > > Yea

Re: [PHP] question

2001-07-17 Thread Alex Piaz
At 20:19 17/7/2001 -0500, Rhony V. wrote: >In Asp i have this > response.redirect "name_page.asp", it's used to go to another page > >what is the similar function in PhP? A good look at the manual would satisfy your needs http://www.php.net/manual/en header("location:wheredoyouwanttogo.php

Re: [PHP] md5 crypt question

2001-07-17 Thread tc lewis
On Tue, 17 Jul 2001, Jeremy Hansen wrote: > On Tue, 17 Jul 2001, tc lewis wrote: > > try: > > > > > > > > or: > > > > > > > > you should get output of 12 and 1 (not 2 and 0) if md5 is supported in > > crypt(), i think. > > Yeah, I'm getting 2 and 0. Lame. What's the answer to this. i'm not

[PHP] Problem

2001-07-17 Thread Rhony V.
In Asp i have this response.redirect "name_page.asp", it's used to go to another page what is the similar function in PhP? 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 lis

[PHP] question

2001-07-17 Thread Rhony V.
In Asp i have this response.redirect "name_page.asp", it's used to go to another page what is the similar function in PhP? 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 li

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

2001-07-17 Thread Dave Freeman
On 17 Jul 01, at 0:11, Tim Olsen wrote: > So far, I can only use variables on the next page (form) that is written > out. After that those variables have no value. Is there some way to submit Investigate using form tages - very useful for passing around additional args between pages/forms.

[PHP] method=post destroys PHPSESSID??

2001-07-17 Thread Dan Harrington
Hello all, I'm having a heck of a time with a file uploader page. When I set method=post on the file uploader form, the PHP session is somehow corrupted during the upload, and any links made in the in the resulting page (photoupload.php) don't pass along the session even though they have the exa

Re: [PHP] a simple question

2001-07-17 Thread Rasmus Lerdorf
$variable = << Hi, > > Can anyone tell me please what is the equivelant of this statement from > perl, in PHP? > > $variable = qq~a value with any "quotes" which doesnt need \'\'s~; > > i use it to get away with all the s\lashes behind quotes. can anyone tell me > how to do that in php? > > Regard

RE: [PHP] note to PHP developers

2001-07-17 Thread Jason Murray
> Me too. I've never had a problem with Postfix. It just > dropped in in Sendmail's place and has worked wonderfully > ever since. Great piece of software. I was led to believe Postfix is what Qmail evolved into? Jason (running Postfix from day 1, no problems at all with it...) -- Jason Murr

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

2001-07-17 Thread Michael Hall
What about registering some session variables? Sessions use cookies and/or URLs to propagate info across multiple pages. Not really secure, though, but they are easy to use. Mick On Wed, 18 Jul 2001, Tim Olsen wrote: > Yeah, I had thought about using hidden inputs, but hidden inputs are not >

Re: [PHP] note to PHP developers

2001-07-17 Thread Michael Hall
Me too. I've never had a problem with Postfix. It just dropped in in Sendmail's place and has worked wonderfully ever since. Great piece of software. Mick On Wed, 18 Jul 2001, Christopher Allen wrote: > Also, postfix works fine for me... > > > > On a side note, qmail has a wrapper that preten

[PHP] Re: a simple question

2001-07-17 Thread Philip Hallstrom
you can't. at least the last time I wanted to you couldn't. I think Rasmus said it would require a lot of work in the parser... If I'm wrong, I'll be very happy. On Wed, 18 Jul 2001, Hamed wrote: > Hi, > > Can anyone tell me please what is the equivelant of this statement from > perl, in PHP?

Re: [PHP] md5 crypt question

2001-07-17 Thread Jeremy Hansen
On Tue, 17 Jul 2001, tc lewis wrote: > > try: > > > > or: > > > > you should get output of 12 and 1 (not 2 and 0) if md5 is supported in > crypt(), i think. Yeah, I'm getting 2 and 0. Lame. What's the answer to this. -jeremy > you compiled php on the system it's running on? if you used

[PHP] a simple question

2001-07-17 Thread Hamed
Hi, Can anyone tell me please what is the equivelant of this statement from perl, in PHP? $variable = qq~a value with any "quotes" which doesnt need \'\'s~; i use it to get away with all the s\lashes behind quotes. can anyone tell me how to do that in php? Regards Hamed -- PHP General Mai

Re: [PHP] md5 crypt question

2001-07-17 Thread Jeremy Hansen
On Tue, 17 Jul 2001, tc lewis wrote: > > try: > > > > or: > > > > you should get output of 12 and 1 (not 2 and 0) if md5 is supported in > crypt(), i think. > > you compiled php on the system it's running on? if you used a binary rpm > or something, and the system it was compiled on didn't s

Re: [PHP] md5 crypt question

2001-07-17 Thread tc lewis
try: or: you should get output of 12 and 1 (not 2 and 0) if md5 is supported in crypt(), i think. you compiled php on the system it's running on? if you used a binary rpm or something, and the system it was compiled on didn't support md5, then it won't work. -tcl. On Tue, 17 Jul 2001,

Re: [PHP] md5 crypt question

2001-07-17 Thread Jeremy Hansen
Well, I'm assuming, perhaps incorrectly that the perl modules I used derived its md5 capabilities from the system. I did see all the comments on the crypt() page and basically copied each one. When passing a md5 looking salt, crypt() doesn't seem to do anything special with it and my salt remai

Re: [PHP] md5 crypt question

2001-07-17 Thread tc lewis
not sure if you've gotten any help on this yet. perhaps test the CRYPT_SALT_LENGTH and CRYPT_MD5 constants to make sure that your system and compiled php support md5 via crypt(). also, what salts did you try? note the comments at the bottom of http://php.net/manual/en/function.crypt.php about d

Re: [PHP] learning PHP from scratch

2001-07-17 Thread Matthew Garman
On Tue, Jul 17, 2001 at 04:55:11PM +1000, Jason Rennie wrote: > > > This approach worked pretty well with previous people i teached > > > PHP, but they already had some sort of programming background. > > > This guy hasn't. I find that he has some difficulties picking > > > it up. And I have so

[PHP] How make the time

2001-07-17 Thread David Tandberg-Johansen
Hello! I am trying to make an online booking script for a client (restaurant), and I am using MySQL to store the booking information The restaurant have openings hour from 11:00 -> 01:00, but do only take reservation between 11:00->22:30. The client wants to get a report written out over each hou

[PHP] libxslt ?

2001-07-17 Thread Regenfeld
hi, just a few questions ;-) will there be a libxslt-extension available in the near future? I heard it will be featured in v.4.1? Or are there any alternatives to sablotron? thanx, regenfeld -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For a

[PHP] Force new page in browser and wait commands

2001-07-17 Thread Hugh Danaher
Help, I'm new to php, and to writing software in general. Enough said on that. What I want to do, is to have my program wait for user input on a and once data is submitted, to have the browser (IE5) generate a new page. Right now, my program runs straight through input forms and appends eve

[PHP] Setting title with header ?

2001-07-17 Thread Beric Slobodan
I have this code: $size = filesize("$file"); $fh = fopen("$file", "r"); $name = basename($file); header("Content-Type: application/octet-stream"); header("Content-Length: $size"); header("Content-Disposition:$attachment filename=$name")

Re: [PHP] Time that db´s connection is keep alive

2001-07-17 Thread Christopher Ostmo
Marcos Mathias pressed the little lettered thingies in this order... > People! > > Someone can tell me if PHP 4 closes their connections to the DB > automatically at the end of the script? > Or I need to use the mssql_close function each time my work is done? > > Best Regards! > From: http://

[PHP] Cannot copy a file to a dynamic folder

2001-07-17 Thread Vincent Chew
I get a parse error every time and I've modified the scripts a bunch of times already. // Make new directory function $default_dir = ("D:\www\Proj\$textfield2\"); if(file_exists($default_dir)) rmdir($default_dir); mkdir($default_dir, 0777); // Copy template.html to new directory $filename = D:Au

[PHP] Time that db´s connection is keep alive

2001-07-17 Thread Marcos Mathias
People! Someone can tell me if PHP 4 closes their connections to the DB automatically at the end of the script? Or I need to use the mssql_close function each time my work is done? Best Regards! Marcos Mathias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL P

Re: [PHP] GET Command

2001-07-17 Thread Andrew Brampton
that is basically going to the URL www.whatever.com/scripts/..%255c..%255cwinnt/system32/cmd.exe?/c+dir+c:\ so do what the other guy said > $site = fopen(http://www.whatever.com/, "r"); > $contents = fread($site, 102400); > fclose($site); but like this: > $site = fopen(http://www.whatever.com/

[PHP] How is the management of memory by PHP?

2001-07-17 Thread Luiz Fernando \(Tuca\)
Somebody know how it is the management of memory by PHP? Thanks Luiz Fernando -- 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] 50 SEX Sites in ONE Affiliate Portal.................

2001-07-17 Thread [EMAIL PROTECTED]
on 7/17/01 4:32 PM, Christopher Ostmo at [EMAIL PROTECTED] wrote: > But I do! I do! I LOVE Adult Entertainment. The Godfather and > Shawshank Redemption are two of my favorite movies! Oh my god! So do I. Let's go for it Chris! Susan -- [EMAIL PROTECTED] http://futurebird.diaryland.com --

[PHP] imap+php

2001-07-17 Thread halmi yasin
hi, i need to create a web form to add an email account for imap uw-imap server. how to store userid and password for email accounts into the server? have anyone ever done this before? can anyone show me how to do this? i really have no idea. reading imap's rfc and docs doesnt help me. HELP.

[PHP] PHP is cool by me.

2001-07-17 Thread Sterling Hanenkamp
Just thought I'd send in my testimonial. I run a web site for a relatively small business (4 employees including the President ;). Anyway, I had been using JSP and Servlets to manage our smallish web site, but in preparation for graduation and moving on to another job, we need a web site that

Re: [PHP] displaying icons

2001-07-17 Thread Yassel Omar Izquierdo Souchay
Put the same text inside php example " the next code - Original Message - From: "Petr Jůza" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 17, 2001 2:47 PM Subject: [PHP] displaying icons > Hi everybody! > Please, have somebody any experience with displaying icons (

Re: [PHP] displaying icons

2001-07-17 Thread Jason Bell
how are you trying to use PHP to output the html? AFAIK, there shouldn't be any difference between: HTML document: PHP document: print ""; You should note however that within the PHP print statement, you should to refrain from the use of quotation marks... if you must quote something, us

RE: [PHP] Need help with formatting time

2001-07-17 Thread Jack Dempsey
Once again, a reminder of the smartest way to code php: 1) think for 2 seconds 2) check out php.net for documentation on functions 3) use a function (or 2) already written instead of spending time yourself... jack -Original Message- From: Christopher Ostmo [mailto:[EMAIL PROTECTED]] Sen

[PHP] PHP- Smoething i don't understand

2001-07-17 Thread Yassel Omar Izquierdo Souchay
Hi friends thanks averybodoy for help me i used the solition of "Jason Bell" [EMAIL PROTECTED] thanks Jason with this > try this: > > mysql_connect("YOUR_DB_HOST","DB_USERNAME","DB_PASSWORD"); > mysql_select_db("DB"); > $query = "select * from info where FirstName='$FirstName' and > LastName='

[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] Need help with formatting time

2001-07-17 Thread scott [gts]
This will convert minutes to hours, then convert to 12-hour am|pm based time. all hours have 60 minutes. it's simple mathematics to convert. $m = 780; $h = 0; // convert to hours:minutes while ($m >= 60) { $h++; $m -= 60; } print "$h:$m \n"; // convert to 12-hour am|pm if (!$h) { $suf

[PHP] Thank you all: Need help with formatting time

2001-07-17 Thread John Holcomb
Thank you all for your help and immedate responses. The following worked: $current_time = date("h:ia", mktime(0,780)); Thank ye all again :) --- John Holcomb <[EMAIL PROTECTED]> wrote: > Hello and thank you. > > I'm trying to find a function(method) or existing > code taht takes the nu

RE: [PHP] Need help with formatting time

2001-07-17 Thread Christopher Ostmo
Jack Dempsey pressed the little lettered thingies in this order... > $hours = $time / 60; > $minutes = $time % 60; > > if($hours >= 12){ > $meridian = 'pm'; > $hours -= 12; > } > else{$meridian = 'am';} > if($hours == 0){$hour = '12';} > > echo "$hours:$minutes$meridian"; > > try som

Re: [PHP] Need help with formatting time

2001-07-17 Thread Rasmus Lerdorf
That's rather simple: echo date("H:i:s",mktime(0,$minutes,0)); -Rasmus On Tue, 17 Jul 2001, John Holcomb wrote: > Hello and thank you. > > I'm trying to find a function(method) or existing > code taht takes the number of minutes that have passed > in a day and returns the time of the day.

RE: [PHP] Need help with formatting time

2001-07-17 Thread Jack Dempsey
$hours = $time / 60; $minutes = $time % 60; if($hours >= 12){ $meridian = 'pm'; $hours -= 12; } else{$meridian = 'am';} if($hours == 0){$hour = '12';} echo "$hours:$minutes$meridian"; try something like that...haven't tested it, but it should be close... -Original Messa

Re: [PHP] Need help with formatting time

2001-07-17 Thread Christopher Ostmo
John Holcomb pressed the little lettered thingies in this order... > Hello and thank you. > > I'm trying to find a function(method) or existing > code taht takes the number of minutes that have passed > in a day and returns the time of the day. For > example: > > 780 minutes == 1pm, > 0 mi

Re: [PHP] Re: echo vs printf

2001-07-17 Thread brother
Steve Brett wrote: > > don't echo and printf do different jobs ? > > as i understand it echo will dump anything to screen, fprint will accept > formatted text args like "you owe me %d dollars",$owed_amount) or something > like that. > > i kind of use print by itself (harking back to the old day

Re: [PHP] Need help with formatting time

2001-07-17 Thread Jason Bell
try looking here: http://www.php.net/manual/en/function.mktime.php then here: http://www.php.net/manual/en/function.date.php -JB - Original Message - From: "John Holcomb" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, July 17, 2001 12:53 PM Subject:

[PHP] Need help with formatting time

2001-07-17 Thread John Holcomb
Hello and thank you. I'm trying to find a function(method) or existing code taht takes the number of minutes that have passed in a day and returns the time of the day. For example: 780 minutes == 1pm, 0 minutes == 12am, etc,etc. so I'm looking for code that when you enter the number o

Re: [PHP] php- something that i don't understand

2001-07-17 Thread Sheridan Saint-Michel
If you call it with no parameters it just uses the defaults... host:port = 'localhost:3306' username = name of the user that owns the server process password = empty password Check out http://www.php.net/manual/en/function.mysql-connect.php Sheridan - Original Message - From: Sam Masie

Fw: [PHP] php- something that i don't understand

2001-07-17 Thread Jason Bell
Oops.. forgot to CC the group.. - Original Message - From: "Jason Bell" <[EMAIL PROTECTED]> To: "Yassel Omar Izquierdo Souchay" <[EMAIL PROTECTED]> Sent: Tuesday, July 17, 2001 12:42 PM Subject: Re: [PHP] php- something that i don't understand > try this: > > mysql_connect("YOUR_D

RE: [PHP] php- something that i don't understand

2001-07-17 Thread Sam Masiello
Pardon my ignorance if you can really do it this way (because I have never seen it done like this): In line 4, I wasn't aware that you could call mysql_connect() without any parameters. Can you? HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED]

Re: [PHP] php- something that i don't understand

2001-07-17 Thread Miles Thompson
Yassel, Do two things: 1. Echo $query, to ensure that it actually is what you think it is 2. Run the query, if you have access, at the mysql console and see what it returns. Then you'll know what to fix. Miles At 03:37 PM 7/17/01 -0500, Yassel Omar Izquierdo Souchay wrote: >Hey guys >here is

Re: [PHP] php- something that i don't understand

2001-07-17 Thread Christopher Ostmo
Yassel Omar Izquierdo Souchay pressed the little lettered thingies in this order... > Hey guys > here is my code > > 4: mysql_connect() or die ("Problemas conectandose a la base de datos"); 5: > $query="select * from info where FirstName='$FirstName' and 6: > LastName='$LastName' and email='$em

[PHP] php- something that i don't understand

2001-07-17 Thread Yassel Omar Izquierdo Souchay
Hey guys here is my code 4: mysql_connect() or die ("Problemas conectandose a la base de datos"); 5: $query="select * from info where FirstName='$FirstName' and 6: LastName='$LastName' and email='$email'"; 7: $result = mysql_db_query("users", $query); *8: $r=mysql_fetch_array($result); *

Re: [PHP] Get filename in php command line

2001-07-17 Thread Reuben D Budiardja
On Tuesday 17 July 2001 11:14 am, Boget, Chris wrote: > in "my_api.inc", have the following code: > > echo "Currently Running file is: "; > echo ( $CurrentRunningFile ) ? $CurrentRunningFile : __FILE__; > > in test.php > >$CurrentRunningFile = __FILE__; > > include( "my_api.inc" ); > echo

Re: [PHP] 50 SEX Sites in ONE Affiliate Portal.................

2001-07-17 Thread Christopher Ostmo
Dolores pressed the little lettered thingies in this order... > > Ask yourself these questions: > OK... > Would a few thousand dollars extra each month make a difference? > Yes! > Can you spare a few hours each week to earn the extra dollars? > Yes! > > If the answer is yes to these si

[PHP] Cannot connect to db when running PHP as Cron

2001-07-17 Thread Reuben D Budiardja
Hello, I have a php script that connect to database and retrieve something, or do something with the db. I can run the script from the command line, it works just fine. But when I run it as cron, it gives error cannot connect to the database. Here is the script looks like: Here is the cront

RE: [PHP] PHP- something tha i don't understand

2001-07-17 Thread Boget, Chris
> 8:$result = mysql_db_query("users", $query); > 9:$r=mysql_fetch_array($result); > 10: $count=$r["count"]; > And the error message is > Warning: Supplied argument is not a valid MySQL result > resource in > c:\inetpub\wwwroot\PhpAndMysqlTest\test2\reg1.php3 on line 9 You need to validate th

Re: [PHP] PHP- something i don't undestand

2001-07-17 Thread Jason Bell
your query needs to be an actual query, such as a select statement... - Original Message - From: "Yassel Omar Izquierdo Souchay" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 17, 2001 1:28 PM Subject: [PHP] PHP- something i don't undestand > Hi > I'm having > trou

[PHP] PHP- something tha i don't understand

2001-07-17 Thread Yassel Omar Izquierdo Souchay
Hi again Here is the part of before code 8:$result = mysql_db_query("users", $query); 9:$r=mysql_fetch_array($result); 10: $count=$r["count"]; And the error message is Warning: Supplied argument is not a valid MySQL result resource in c:\inetpub\wwwroot\PhpAndMysqlTest\test2\reg1.php3 on lin

[PHP] PHP- something i don't undestand

2001-07-17 Thread Yassel Omar Izquierdo Souchay
Hi I'm having trouble with this part of code 9: $result = mysql_db_query("users", $query); 10: $r=mysql_fetch_array($result); The error message is : Warning: Supplied argument is not a valid MySQL result resource in c:\inetpub\wwwroot\PhpAndMysqlTest\test2\reg1.php3 on line 9. Please if some

[PHP] EO - New FREE web development engine

2001-07-17 Thread admin
Hello, I'm contacting you because we have recently released a new web development platform, EO, that I would like for you to try out for use in building dynamic sites. EO is a portable, flexible yet robust system that you can use to quickly build interactive sites, plus it has features that p

[PHP] Data from SQL to a string in a useable format

2001-07-17 Thread Jason Bell
How can I pull my data from my SQL db, and store it as a string so that it can be used? Specificly, I'm working with images. When the images are stored in the database, the only pre-processing that is done is: $img = addslashes(fread(fopen($userfile, "r"), filesize($userfile))); (* note: $user

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

2001-07-17 Thread Neil Kimber
We've built a framework that gets around this, without using HIDDEN form fields. It's quite complex so I'll give a high level description, it should give you some ideas. Our framework works on the basis that every page consists of a single form that submits to itself (same URL). All page/form elem

[PHP] 50 SEX Sites in ONE Affiliate Portal.................

2001-07-17 Thread Dolores
Ask yourself these questions: Would a few thousand dollars extra each month make a difference? Can you spare a few hours each week to earn the extra dollars? If the answer is yes to these simple questions, and you have a PC with Internet access, then you can get involved with the 40 BILLION

Re: [PHP] GET Command

2001-07-17 Thread Clayton Dukes
MessageHi, Here's what I'm trying to do: I want to test an IIS server for an invulnerability. This is done by sending a GET command to test for it. Here's a blurb from the security advisory that I am working with: ---snip--- A scan is performed over some region of the Internet, searching for web

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

2001-07-17 Thread Sheridan Saint-Michel
There are a thousand ways to pass data... some are just more kludgy than others =) In addition to using hidden fields You could put the data into a Database You could Write it to a file You could put it in a cookie You could use sessions etc, etc, ad nauseam Two things to point out, however. T

RE: [PHP] GEt Command

2001-07-17 Thread Matthew Loff
$site = fopen( http://www.whatever.com/, "r"); $contents = fread($site, 102400); fclose($site); -Original Message- From: Clayton Dukes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 2:08 PM To: [EMAIL PROTECTED] Subject: [PHP] GEt Command Does an

[PHP] GEt Command

2001-07-17 Thread Clayton Dukes
Does anyone have a simple script that will GET a web page and return the reply?   Something like this:   function getpage($host, $path, getstr) {$getstr="whatever\r\n"; $host=www.whatever.com;       $hdr=sprintf("GET $getstr", $path);    $hdr .="Content-type: application/x-www-form-urlencode

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

[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] 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

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] 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

[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

[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.

  1   2   >