[PHP] R: Running php script with "?var=string" query inside another php script

2001-09-05 Thread ---
if include doesn't work or isn't an optimal solution, you can also use fopen: this will make another request to the webserver, like a client request, but sometimes is useful. write: $fp = fopen("http://www.site.com/script.php?var=string..., this should work. Federico [EMA

Re: [PHP] file uploads grief on linux, but okay on BSD

2001-09-05 Thread Rasmus Lerdorf
Are you using move_uploaded_file() to move the file into place? On Thu, 6 Sep 2001, Justin French wrote: > Hi all, > > > My understanding of the whole file uploading thing is not fantastic, and > i'm unsure where to go next with this one. > > I have a file-upload script which works fine on my te

[PHP] Re: Searching help

2001-09-05 Thread Daniel Masur
$Query = "SELECT * FROM enet WHERE TechContact LIKE '%$Avar1%' AND AdminContact LIKE '%$Avar2%'"; try this. Avar1/2 needs to be replaced by your var that u use in your html form "Devon" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > $Query = "SELECT *

[PHP] file uploads grief on linux, but okay on BSD

2001-09-05 Thread Justin French
Hi all, My understanding of the whole file uploading thing is not fantastic, and i'm unsure where to go next with this one. I have a file-upload script which works fine on my test server (FreeBSD/PHP4/MySQL/Apache)... when I upload the script to my host, change the config as needed (different d

[PHP] Searching help

2001-09-05 Thread Devon
$Query = "SELECT * FROM enet WHERE TechContact LIKE '%' AND AdminContact LIKE '%'"; This query simply prints out my entire tables, is there a way using PHP so I can make the '%' a user input so they can search the table under those fields. Cheers -- PHP General Mailing List (http://www.php

[PHP] Mailing, which is faster

2001-09-05 Thread Niklas Lampén
Which is faster (and/or smarter), using function mail() or doing it by popen("/blah/sendmail")? Niklas

[PHP] how do I?

2001-09-05 Thread Adrian D'Costa
Hi, I am trying to write a dynamic help module based on a mysql database. I am using Javascript and PHP to do this. This is part of my script (both java and php) 10-Jul-97 36965 ---> 15-Mar-01 36356 ---> 15-Jul-99 Can anyone tell me what date format this is, or how

Re: [PHP] Question about running php as root

2001-09-05 Thread Jason Brooke
> But is there a way to make one of my root scripts run by sending it a > command to do so from the DSO version of PHP like with system command > or something like that. Or some roundabout way to make it think root is > asking the script run. > > I hope you understand what I am asking. There poss

[PHP] PHP Accelerator cache update

2001-09-05 Thread PHP Accelerator
A new version of the free PHP Accelerator for Linux is now available at www.php-accelerator.co.uk This release offers a substantial performance improvement over the first 'proof of concept' version, and initial performance tests show that the Accelerator now delivers approximately the same per

Re: [PHP] what does this line means? Many thanks

2001-09-05 Thread Franklin van Velthuizen
> thanks, another question is what does the ? means in this line? >From the PHP manual: Another conditional operator is the "?:" (or ternary) operator, which operates as in C and many other languages. (expr1) ? (expr2) : (expr3); This expression evaluates to expr2 if expr1 evaluates to TRUE, a

[PHP] Now Here's a Winner

2001-09-05 Thread Jonathan Hilgeman
Okay, this has gone over my head. I am running Apache 1.3.19, with PHP 4.0.5 and mySQL 3.23.37. The Apache/PHP server is on a Windows development box, and the mySQL is on a remote box. The basic function of the script is to first present a form where a user can select records that match a date, an

[PHP] Question about running php as root

2001-09-05 Thread Richard Kurth
I have two versions of php running on my site one as a DSO with Apache and one as a cgi for command line scripting. I have scripts that run from a crontab that run at root. Now I know I can not run a script at root from PHP that is running as A dso with Apache. But is there a way to make one of

Re: [PHP] Passing array names into a function

2001-09-05 Thread Geoff Caplan
Brian Thanks for the response, but unless I am misunderstanding, I don't think this is what I am after. Just to restate, I want to set up a module as a static data cache. The main function $my_cache will have a static array $data. There will be a set of helper functions to set values into $data,

[PHP] UD4 & PhAkt Users?

2001-09-05 Thread Vicki
I'm trying to learn PHP right now for a subscription-based site that requires features such as user authentication and e-commerce (with a mySQL database) I'm using Dreamweaver 4 on a Mac running OS 9 to build the site. I'm wondering if the learning curve would be less steep if I upgraded to Ul

Re: [PHP] Assign multiple variables from mysql_fetch_row() call

2001-09-05 Thread Ryan Fischer
You wrote: > >Sure it is. Lists or list context. () is not that hard to > determine > >what it means. At least, not nearly as hard as you make it out to > >be for any moderately-experienced programmer. > > So it's easy to look it up is if you already know what it does? I > think the majority of

Re: [PHP] what does this line means? Many thanks

2001-09-05 Thread Alex Shi
In following formular, exp ? statement1 : statement2 if exp is true, statement1 is excuted, else statement2 is excuted. So it is equivalent to: if( exp ) { statement1 } else { statement2 } If you still want to ask what "?" means, I think it can be "if exp is true". Alex - Original

[PHP] messenger . . . ?

2001-09-05 Thread sagar
Hi geeks, I want to give messenger service to my users. Can i do this ? I'm running slack linux as server with php4 and mysql. I so where can i get the required src code both for client (Vb recommended) and server programs. /sagar

RE: [PHP] The future of PHP

2001-09-05 Thread B. van Ouwerkerk
>I can tell you that in general, companies in Europe appears to be more >open to open-source solutions much more than ones in the US. Of course, >Europe is comprised of lots of different countries, and each country has >lots of different companies, so your mileage may vary. In The Netherland

Re: [PHP] what does this line means? Many thanks

2001-09-05 Thread Sall Him
thanks, another question is what does the ? means in this line? Alex Shi wrote: > > strstr($str, $needle) returns a substr start from first occurance of $needle > in $str to the end of $str. > > strstr($value,"VLD:") != "" ? $VLD_CNDTNS[] = strtr($value,"VLD:","") : > $SBMT_CNDTNS[] = $value;

Re: [PHP] Assign multiple variables from mysql_fetch_row() call

2001-09-05 Thread Mark Maggelet
On Wed, 5 Sep 2001 14:36:59 -0400, Ryan Fischer ([EMAIL PROTECTED]) wrote: >> > You wrote: >> > > ($var1, $var2) is magic. I hate magic. >> > >> > It's not magic. It's just simpler. >> > >> > > What do you look up in the Perl >> > > manual when you hit syntax like that? >> > >> > http://www.perl

RE: [PHP] negative infinity is unreachable

2001-09-05 Thread Robert V. Zwink
I believe your problem is due to ambiguous type casting. Your if statement tests a DOUBLE against a STRING. Try: $x_distance=20+($year-($current_year-9))*20; $high_distance=420-round(log($high[$year])*75,0); $low_distance=420-round(log($low[$year])*75,0); settype($high_di

Re: [PHP] Problem with PHP y Phorummail

2001-09-05 Thread Brian Clark
@ 4:13:46 PM on 9/5/01, Webmaster wrote: > Sorry, I forget this is my previous message, I'm running in Red Hat > Linux 6.0. Been a long time for me and RedHat/RPM, but.. You need to find the MySQL RPM with the same version that you currently have installed, but it'll be labeled as 'MySQL client

Re: [PHP] what does this line means? Many thanks

2001-09-05 Thread Alex Shi
strstr($str, $needle) returns a substr start from first occurance of $needle in $str to the end of $str. strstr($value,"VLD:") != "" ? $VLD_CNDTNS[] = strtr($value,"VLD:","") : $SBMT_CNDTNS[] = $value; equivalent to: if( strstr($value, "VLD:") !="" ) { $VLD_CNDTNS[] = strtr($value,"VLD:",""

RE: [PHP] Newbie ?: form mailer not working

2001-09-05 Thread Michelle Marcicki
Chris, Thank you.. that along with one other change solved it... I am just doing additional test emails now! It look like the editor I use replaced some of the " and > with html code somehow. Does anyone have any suggestions (or links to) for a good php editor? I use MS Interdev for the A

[PHP] Re: strip ALL HTML tags in a page so only the text

2001-09-05 Thread erik
thanx I look a little futher next time! erik "Ouster" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I think the best way is to use regular expressions. > > Erik <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED] > > I'm develloping a mail application,

Re: [PHP] GOOD web hosting

2001-09-05 Thread Michelle Marcicki
Seb, If you are still stuck... try http://hosts.php.net/ It's a searchable directory for ISPs that support php! It looks like it is companies that have chosen to list themselves, but the search criteria is excellent! Pick what specs you need! Also try http://www.php.net/links.php at the bo

[PHP] Does PHP work with Sybase ASA?

2001-09-05 Thread Davor Pleskina
I mean, is there in PHP support for Sybase Adaptive Server Anywhere, any version, like for MySQL and some other databases? Thanks. -- 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

Re: [PHP] negative infinity is unreachable

2001-09-05 Thread Hugh Danaher
Yes, you are correct, I made a mistake when writing the code block for the e-mail. - Original Message - From: Seb Frost <[EMAIL PROTECTED]> To: Hugh Danaher <[EMAIL PROTECTED]>; Php-General <[EMAIL PROTECTED]> Sent: Wednesday, September 05, 2001 12:54 PM Subject: RE: [PHP] negative infinit

[PHP] R: strip ALL HTML tags in a page so only the text

2001-09-05 Thread Ouster
I think the best way is to use regular expressions. Erik <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED] > I'm develloping a mail application, wich sends single part e-mail with PHP. > for users who want the text version, I want to strip the HTML version and > send what's left (plain text)

Re: [PHP] strip ALL HTML tags in a page so only the text

2001-09-05 Thread Brian Clark
Hi erik, @ 3:58:31 PM on 9/5/01, erik wrote: > I'm develloping a mail application, wich sends single part e-mail with PHP. > for users who want the text version, I want to strip the HTML version and > send what's left (plain text) to them. > Can anybody tell me the best way to do this, I mean s

Re: [PHP] Passing array names into a function

2001-09-05 Thread Brian Clark
Hi Geoff, @ 3:30:24 PM on 9/5/01, Geoff Caplan wrote: > I think I am being dumb but I just can't figure out a way to do this: > I have a static array inside a function, and I want caller to be able to > set/get values in the array. > Something like this: > data_store( "set", "my_array['key1'

[PHP] R: [PHP] 304 Not Modified

2001-09-05 Thread Ermanno Iannacci
Unfortunately it's only wrong typing. That problem's here to stay. - Original Message - From: Seb Frost <[EMAIL PROTECTED]> To: Ouster <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, September 05, 2001 9:38 PM Subject: RE: [PHP] 304 Not Modified > You don't think your missing "

[PHP] strip ALL HTML tags in a page so only the text

2001-09-05 Thread erik
I'm develloping a mail application, wich sends single part e-mail with PHP. for users who want the text version, I want to strip the HTML version and send what's left (plain text) to them. Can anybody tell me the best way to do this, I mean stripping all teh HTML tages with PHP. Thanx Erik -

Re: [PHP] Problem with PHP y Phorummail

2001-09-05 Thread Brian Clark
@ 3:55:04 PM on 9/5/01, Webmaster wrote: > Thanks for your answer, but I can't find libmysqlclient.so.6 in my > server, is not in MySQL lib directory or PHP Lib directory, How I > can do for install or copy this lib?? Do I need reinstall MySQL?? > what use in ./configure line???. Try running upd

[PHP] configuring curl with php

2001-09-05 Thread Bob
hi everyone i am following this page to add curl to php http://curl.haxx.se/libcurl/php/install.html i installed curl and knows it works (curl --version) but trying to configure php with curl but don't know what this means for "Build PHP -- Step 1" mean? i did a phpinfo() and got the configure

RE: [PHP] negative infinity is unreachable

2001-09-05 Thread Seb Frost
if ($high_distance=="INF") { unset($high_distance); } if ($low_distance=="INF") { unset($high_distance); } Shouldn't this be: if ($high_distance=="INF") { unset($high_distance); } if ($low_distance=="INF") { unset($low_distance); } - seb --- Outgoing ma

[PHP] negative infinity is unreachable

2001-09-05 Thread Hugh Danaher
HELP! I have been trying variations of the code posted below with little success. The log() function generates a -INF statement when trying to calculate the log of zero or the log of an empty value in the associative array. With the "IF then unset() " statements in place, the total contents

Re: [PHP] 304 Not Modified

2001-09-05 Thread Chris Hobbs
Ouster wrote: >header("304 Not Modified); > Looking at the docs (I know, silly, eh?), the correct form of this appears to be: header ("HTTP/1.0 304 Not Modified"); In addition to the missing " as was already pointed out... Chris Hobbs Silver Valley Unified School District -- PHP Gen

Re: [PHP] Links

2001-09-05 Thread Brian Clark
@ 6:42:33 AM on 9/5/01, * R&zE: wrote: > This regex gets you everything between all and tags. Case > insensitive, including embedded HTML-tags etc. Try it and let me > know if this is what you need. > --- PHP code --- > preg_match_all ("/]*>(.+)<\/a>/imU", $StringToSearch, $matches); > print_r

RE: [PHP] 304 Not Modified

2001-09-05 Thread Seb Frost
You don't think your missing " might have soemthing to do with it? Or maybe it's not that simple at all. - seb -Original Message- From: Ouster [mailto:[EMAIL PROTECTED]] Sent: 05 September 2001 20:23 To: [EMAIL PROTECTED] Subject: [PHP] 304 Not Modified I'm making a sort of cache

[PHP] what does this line means? Many thanks

2001-09-05 Thread Sall Him
strstr($value,"VLD:") != "" ? $VLD_CNDTNS[] = strtr($value,"VLD:","") : $SBMT_CNDTNS[] = $value; -- 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

[PHP] Passing array names into a function

2001-09-05 Thread Geoff Caplan
Hi folks I think I am being dumb but I just can't figure out a way to do this: I have a static array inside a function, and I want caller to be able to set/get values in the array. Something like this: I have been mucking about with eval( ) and with variable variables, but can't get it to wor

[PHP] Re: [PHP-NOTES] note 15310 added to function.session-start

2001-09-05 Thread Jesus M. Castagnetto
Bad design? configuration problems? You will have better luck asking in the mailing lists, not here. Your note will be removed --- [EMAIL PROTECTED] wrote: > while reading alot about security here I'm noticed a > couple of bugs on sites with getting into the files > without actually loging in

RE: [PHP] php includes === Dreamweaver library items

2001-09-05 Thread Robert V. Zwink
George, You do not need to have multiple tiny template files. We create a website in Dreamweaver using builtin "library items". This website has many pages, sharing the same header and footer library item. Within the html page we use only two template constructs: {VARIABLE_NAME} and: tha

Re: [PHP] Problem with PHP y Phorummail

2001-09-05 Thread Brian Clark
@ 2:52:49 PM on 9/5/01, Webmaster wrote: > [root@corotu docs]# ./phorummail > php: error in loading shared libraries: libmysqlclient.so.6: cannot open shared > object file: No such file or directory > What can I do for execute this script properly, What I doing it wrong? > I am running Apache 1

[PHP] 304 Not Modified

2001-09-05 Thread Ouster
I'm making a sort of cache system. I fell to this problem: I leave a cookie with the timestamp of the last access, and when the user reconnect, I compare the timestamp of the last change with the timestamp sent me with the cookie. Then I leave a new cookie. So: if($last_modified <= $last_access)

Re: [PHP] Assign multiple variables from mysql_fetch_row() call

2001-09-05 Thread Sheridan Saint-Michel
- Original Message - From: "Ryan Fischer" <[EMAIL PROTECTED]> To: "Mark Maggelet" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, September 05, 2001 1:35 PM Subject: Re: [PHP] Assign multiple variables from mysql_fetch_row() call > You wrote: > > >I use list context a lot in PH

[PHP] Problem with PHP y Phorummail

2001-09-05 Thread Webmaster
Hi people: I trying to execute Phorummail script (put email into a web message board) from my shell, but I get this error message. [root@corotu docs]# ./phorummail php: error in loading shared libraries: libmysqlclient.so.6: cannot open shared object file: No such file or directory What can I

RE: [PHP] book help

2001-09-05 Thread Chris Bailey
There is a ton of great stuff online as someone else mentioned. You might also want to check out phpbuilder.com, and zend.com for their various articles and tutorials. As for books, depending on what you're after, I highly recommend: "PHP and MySQL Web Development" by Welling and Thomson. This

Re: [PHP] Assign multiple variables from mysql_fetch_row() call

2001-09-05 Thread Ryan Fischer
> > You wrote: > > > ($var1, $var2) is magic. I hate magic. > > > > It's not magic. It's just simpler. > > > > > What do you look up in the Perl > > > manual when you hit syntax like that? > > > > http://www.perldoc.com/perl5.6/pod/perldata.html > > I said "what" not "where". I still maintain t

Re: [PHP] Assign multiple variables from mysql_fetch_row() call

2001-09-05 Thread Ryan Fischer
You wrote: > >I use list context a lot in PHP and Perl, and I prefer Perl's way of > >doing it *because* it allows you to be as verbose or terse as you > >like. > >PHP, unfortunately, doesn't give you that freedom. > > Hmm... the freedom to write unreadable, unmaintainable code, yes this > is a ve

RE: [PHP] what will be the output for this pgm?

2001-09-05 Thread Mark Roedel
> -Original Message- > From: Balaji Ankem [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 04, 2001 3:36 PM > To: Renze Munnik > Cc: [EMAIL PROTECTED] > Subject: [PHP] what will be the output for this pgm? > > > what will be the output for the following program? > > >>

Re: [PHP] book help

2001-09-05 Thread Tomasz Abramowicz
http://www.php.net/books.php hihi t. - Original Message - From: "Nikola Veber" <[EMAIL PROTECTED]> To: "php forum" <[EMAIL PROTECTED]> Sent: Wednesday, September 05, 2001 19:36 Subject: [PHP] book help > I am a begginer in php and I have bought the Sterling > Huges' "php developer's co

Re: [PHP] php includes === Dreamweaver library items

2001-09-05 Thread George Whiffen
Robert, Thanks for the suggestions, but... a) I do want to do this and I do think I can. The big problem is not the templating, php is pretty damn good at that already. It's handling the header/footer html which appears on every page. On the one hand we only want one master copy so there's onl

[PHP] session - why does this not work?

2001-09-05 Thread Christian Haines
hi all, any ideas why this does not work? its just a simple script to test multi-dimensional arrays. the count value should increment...should it not? many thanks in advance!  "; reset ($HTTP_SESSION_VARS); while (list($key, $value) = each ($HTTP_SESSION_VARS)) { echo "Key: $ke

RE: [PHP] book help

2001-09-05 Thread Jerry Lake
since it was the only book you could find, that makes it a good choice by default, if you ask me. you can also visit www.devshed.com for some great tutorials. Regards, Jerry Lake Interface Engineering Technician -Original Message- From: Nikola Veber [mailto:[EMAIL PROTECTED]] Sent: W

[PHP] book help

2001-09-05 Thread Nikola Veber
I am a begginer in php and I have bought the Sterling Huges' "php developer's cookbook" since it was the only book I could find. Is it a good choise ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: [PHP] returns (functions)

2001-09-05 Thread Rasmus Lerdorf
> I have a foreach loop running in a function. During the foreach loop, if a > variable matches another variable, it does "return $variable". My question > is this: does the function automatically stop running when the variable is > returned? Yes -- PHP General Mailing List (http://www.php.net

Re: [PHP] returns (functions)

2001-09-05 Thread Alexander Deruwe
On Wednesday 05 September 2001 17:17, Joseph Bannon wrote: > I have a foreach loop running in a function. During the foreach loop, if a > variable matches another variable, it does "return $variable". My question > is this: does the function automatically stop running when the variable is > return

Re: [PHP] remote scripting objects

2001-09-05 Thread Michael Kimsal
The javascript would have to call a PHP script on the server instead of an ASP script. It's nothing specific to MS stuff. MailingLists wrote: > I don't know if it's IIS or ASP that handles this, but there's a beast > called a remote scripting object. It combines JavaScript and ASP to > c

[PHP] returns (functions)

2001-09-05 Thread Joseph Bannon
I have a foreach loop running in a function. During the foreach loop, if a variable matches another variable, it does "return $variable". My question is this: does the function automatically stop running when the variable is returned? J -- PHP General Mailing List (http://www.ph

Re: [PHP] how to connect to php from vb

2001-09-05 Thread Alexander Deruwe
On Wednesday 05 September 2001 16:19, sagar wrote: > hi, > > can i connect to php from a vb appliation. > should this be asked elsewhere (if so pl > let me know) Uhm, I don't quite understand what you mean there. Anyhow, accessing PHP from VB seems kindof, like a nono, but perhaps you mean acces

Re: [PHP] how to connect to php from vb

2001-09-05 Thread Tom Carter
php can act as a server in many respects, it can handle sockets, some streams etc. so the the answer is yes, you can connect to it from anything. (for instance I'm currently building a plugin to Lightwave that connects to php)... programs commonly use http to connect (it's simple then designin

Re: [PHP] pdflib?

2001-09-05 Thread Daniel Andersson
a-ha. that works. wonder why it worked without it? oh well, it works now. thanks a million! / d "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You need a call to pdf_open_file($pdf) before you can start doing > anything. > > -Rasmus > > O

[PHP] how to connect to php from vb

2001-09-05 Thread sagar
hi, can i connect to php from a vb appliation. should this be asked elsewhere (if so pl let me know) /sagar

[PHP] messenger . . . ?

2001-09-05 Thread sagar
Hi geeks, I want to give messenger service to my users. Can i do this ? I'm running slack linux as server with php4 and mysql. I so where can i get the required src code both for client (Vb recommended) and server programs. /sagar

Re: [PHP] pdflib?

2001-09-05 Thread Rasmus Lerdorf
You need a call to pdf_open_file($pdf) before you can start doing anything. -Rasmus On Wed, 5 Sep 2001, Daniel Andersson wrote: > hello > > had everything working and fine. > when i went back to the page today, nothing worked. > > i can (almost) bet my sack on that i haven't changed any code. >

[PHP] pdflib?

2001-09-05 Thread Daniel Andersson
hello had everything working and fine. when i went back to the page today, nothing worked. i can (almost) bet my sack on that i haven't changed any code. Fatal error: PDFlib error: function 'PDF_set_info' must not be called in 'object' scope is the error i get. the code is $pdf = pdf_new();

Re: [PHP] Trunkated zeros..... how to fix?

2001-09-05 Thread ERISEN, Mehmet Kamil
use zerofill for the column when you create the table! --- "Dallas K." <[EMAIL PROTECTED]> wrote: > I am having the problem that Mysql is truncating the > zeros from both the int and char fields when I try to > insert How can I fix this. > > example: > > 0123 in PHP = 123 in mysql > 3210

  1   2   >