[PHP] problem running php

2001-07-25 Thread raj kumar
Hi, Though i am running php on apache server on my win98 machine perfectly, recently i install apache and php on my win2000 server, apache start very well but php is not working, as it seems, though when i run phpinfo out of my server with php.exe it runs but it dosen't show in browser whenever

Re: [PHP] PHP 4.0.6 on RedHat 6.2: Undefined symbols when using IMAP?!

2001-07-25 Thread Alexander Skwar
So sprach »Rasmus Lerdorf« am 2001-07-25 um 21:46:48 -0700 : > Sorry, typo in my response. --with-kerberos is what you want. Arghl, of course! :) I should have seen this one myself... *G* Thanks a lot! It's now working! Hmm - wouldn't it make sense if configure automatically enabled --with-k

Re: [PHP] IE -> View Source

2001-07-25 Thread Alexander Skwar
So sprach »Steve Haemelinck« am 2001-07-26 um 08:32:11 +0200 : > Some sites are able to disable the source view in ie. How do you do that? You can't. You can make stupid games and disable right mouse button clicks, but that's still not going to stop anyone to get the HTML output. Alexander Skwa

[PHP] Re: mail priority

2001-07-25 Thread Adrian D'Costa
You can add it in the headers. In fact you can add any info as long as they abide by the RFC822. I took if from the function.mail.php /* additional header pieces for errors, From cc's, bcc's, etc */ $headers .= "From: Birthday Reminder <[EMAIL PROTECTED]>\n"; $headers .= "X-Sender: <[EMAIL PRO

[PHP] what would return?

2001-07-25 Thread Adrian D'Costa
Hi, I have a php script that will send certain information to a mailing list. Upon arrival the customer will have seven records each with a unique id. On clicking the link a mail will be sent back with the subject having that unique id. On arriving at my mail server I pipe the mail thru a php

Re: [PHP] how to call HTML file within php file

2001-07-25 Thread David Robley
On Thu, 26 Jul 2001 16:18, Balaji Ankem wrote: > Hi! dear friends, > I would like to invoke one HTML file if "IF condition " > satisfies otherwise invoke another HTML file. > > I am sending the document. > > Please help out me. > > Thanks in advance. > > Regards > -Balaji This mailing li

Re: [PHP] IE -> View Source

2001-07-25 Thread Jack
There is no way to disable view source from the menu bar in IE, you can only disable view source by disable right click, but they can still view source using the menu bar. Jack [EMAIL PROTECTED] "Love your enemies, it will drive them nuts" - Original Message - From: Peter Houchin <[EMAIL P

[PHP] how to call HTML file within php file

2001-07-25 Thread Balaji Ankem
Hi! dear friends, I would like to invoke one HTML file if "IF condition " satisfies otherwise invoke another HTML file.   I am sending the document.   Please help out me.   Thanks in advance.   Regards -Balaji The Information contained and transmitted by this E-MAIL is proprietary to

Re: [PHP] IE -> View Source

2001-07-25 Thread Peter Houchin
They do it using a java script that disables the right click or they build a custom right click menu -- Peter Houchin Sun Rentals STR Manager Phone: 03 9329 1455 Fax: 03 9329 6755 [EMAIL PROTECTED] http://www.sun.com.au/rentals = ___

Re: [PHP] IE -> View Source

2001-07-25 Thread Jason Brooke
I was under the impression it couldn't be done because it would require your code control the end-user's web browser, no matter what the brand. Can you please show us these sites? - Original Message - From: "Steve Haemelinck" <[EMAIL PROTECTED]> To: "Brad S. Jackson (E-mail)" <[EMAIL PR

[PHP] repost: error allways on line 1

2001-07-25 Thread Justin French
Hi, No matter where in my code i have a syntax / parse error, my local test server (php 4.0.1, FreeBSD) it reports it as an error on line one, whereas it actually be 281!! When I upload the same script to the "live" server, it reports the error on the correct line. This is really eating into m

[PHP] IE -> View Source

2001-07-25 Thread Steve Haemelinck
Some sites are able to disable the source view in ie. How do you do that? Haemelinck Steve Personal: Haemelinck.be - Developers Unite :) Junior WebDeveloper http://www.haemelinck.com/ [EMAIL PROTECTED] Work: MCT IT Consulting - Take consulting 2 the next level Junior IT Consultant http://www.mc

Re: [PHP] Perl Splice Equivalent

2001-07-25 Thread David Robley
On Thu, 26 Jul 2001 15:24, Steven Michaels wrote: >> - Original Message - > From: "Don Read" <[EMAIL PROTECTED]> > To: "Steven Michaels" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Wednesday, July 25, 2001 1:11 PM > Subject: RE: [PHP] Perl Splice Equivalent > > > On 25-Jul-2001 S

Re: [PHP] Session - to restrict same user from two logins

2001-07-25 Thread Saquib Farooq
Hello Sheni when a user logs into a site, the information that the php server gets is about the machine and not about a particular person, so you have to associate information with that particular person, what i mean is give your users passwords and maintain a database of those logged in u

[PHP] Session - to restrict same user from two logins

2001-07-25 Thread Sheni R. Meledath
Hello: Session: I am using sessions for user authentication in one of our sites. Are there any ways to restrict the same user from logging in from two different machines. That is, once if the user is logged in, and if somebody tries to log-in using the same userid and password it should be abl

[PHP] Problems with POST form. Page Not Found

2001-07-25 Thread Antonio Mármol Albert
Hello, I have some problems sending a form via POST. When I submit the form, I get the error of 'Page Not Found'. This happens in some Internet Explorer (all are v5.5, I think). The action form is ok (http://www.domain.com/formprocess.html"; method="post">). It happens randomly. I've the type .

RE: [PHP] Install

2001-07-25 Thread Lawrence . Sheed
this would seem to be a php list, maybe you should look on a perl list for a complete response, hmm? Activestate make a reasonable perl interpreter for windows, have a look at activestate.com for more details. also try google and search for perl windows apache, maybe you can try reading some of

Re: [PHP] Perl Splice Equivalent

2001-07-25 Thread Steven Michaels
What would be the actual code for this however in PHP4? I'm new to the language, but know moderate amounts of PERL, so I'm really struggling with how I can assign a file's contents into an array and delete a line, then write the edited version back to the file. Also, the line now contains more d

[PHP] Install

2001-07-25 Thread Roman
Hello ! I want to install perl under apache in windows, please send me some information how can i install, where I find perl software, where I find some perl editor... Thanks fo all roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For a

[PHP] Bug report 11790 - compile error

2001-07-25 Thread David Robley
I wonder if there is any further info available on this? I have encountered the same problem, for the apparent same reasons, on a Linux 2.0.29 kernel Slackware system. Compile error is, for php 4.0.6 filestat.c: In function `php_if_diskfreespace': filestat.c:157: storage size of `buf' isn't kn

RE: [PHP] Headers

2001-07-25 Thread Lawrence . Sheed
To emulate a post you'll have to do something similar to the following header "POST /index.php3 HTTP/1.1"; header "Host: $host"; header "Content-type: application/x-www-form-urlencoded" ; header "Content-length: ". strlen ($data); header "Connection: close\n\n"; //may only need one, can't remem

Re: [PHP] PHP 4.0.6 on RedHat 6.2: Undefined symbols when usingIMAP?!

2001-07-25 Thread Rasmus Lerdorf
Sorry, typo in my response. --with-kerberos is what you want. -Rasmus On Thu, 26 Jul 2001, Alexander Skwar wrote: > So sprach »Rasmus Lerdorf« am 2001-07-24 um 16:42:12 -0700 : > > Add --with-kerbeors to your PHP configure flags > > Done. I ran: > > ./configure --enable-bcmath --enable-exif

Re: [PHP] Headers

2001-07-25 Thread Christian Reiniger
On Wednesday 25 July 2001 15:24, Richard Baskett wrote: > What does the header look like when you submit a form using the POST > method? I would like to transfer some php variables to another page > using the header() function. The Location part I have down no problem, > but I don't want to do so

RE: [PHP] OT--PHP, MySQL, WML and GPS Tracking

2001-07-25 Thread Lawrence . Sheed
Probably necessary to have a customised browser or other solution - i haven't seen any that explicitly interface to a gps device for lat/long co-ords. You cannot triangulate position using wap - the phone company does it by triangulating the position of the cellphone (Very simplified explanation

[PHP] Re: Opening another page in code

2001-07-25 Thread Bopolissimus Platypus
On Wed, 25 Jul 2001 07:30:03 -0600, [EMAIL PROTECTED] (Nelson Goforth) wrote: >I just want to open another page, sending some parameters, at a point >in a script - without the user clicking on anything (I can do this in >a form - I want to do it WITHOUT the form). > >Like:if($test) { >

RE: [PHP] OT--PHP, MySQL, WML and GPS Tracking

2001-07-25 Thread John Monfort
Thanks for the reply, Lawrence. The embedded C option sounds tempting. Question: Is it necessary to have a customized browser? I know that most WAP browsers (like the UP.SDK browser) pass certain parameters to the server. Like, phone numbers, software version, and other values. Any c

Re: [PHP] progress dbi?

2001-07-25 Thread Andrew Hill
Susan, OpenLink has Progress ODBC drivers available. The Multi-Tier Drivers are available for many versions of Progress. The Product Availability link will walk you through the selection process for the components specific to your OS. Regarding ODBC - for PHP to use an ODBC driver, you have t

[PHP] session problems with NS and AOL

2001-07-25 Thread DrWebPat
I'm developing an area on my site where clients will have access to certain things that nonclients don't. They each have a login and password and stuff like that. I'm using sessions so members can move from one page to the next w/o typing in their info everytime. This works so great in IE.

[PHP] installing php on redhat7

2001-07-25 Thread Richard Kurth
I am trying to install php as DSO on a redhat7 install of Apache. I can not seam to figure this out. I can not find apxs on the server anywhere. But in the httpd.conf file in the LoadModule area there is a section like this. How can I install php without reinstalling Apache that is not p

[PHP] parser outside of web tree. whats the trick?

2001-07-25 Thread Darren Henderson
If I have php installed as an executable outside the web tree I can't seem to get php scripts, called as a cgi, to work correctly. When run from the command line this script - #!/usr/local/bin/php - Produces - X-Powered-By:

RE: [PHP] how do you write queries in php codes? (was Re: [PHP] Why doesn't this simple query work?)

2001-07-25 Thread Lawrence . Sheed
Its however you prefer it (or whatever is easier to type usually). sprintf is usable, depends on if you have a c or perl background, and its second nature. For me, I use editplus on windows which gives color coding (www.editplus.com), if I do $query = "select abc,def,ghi from table1,table2". $a

[PHP] Re: ereg_replace

2001-07-25 Thread CC Zona
In article <079201c1151f$ec6472e0$650a@cicse>, [EMAIL PROTECTED] (Clayton Dukes) wrote: > Can someone tell me why this doesn't work? > > $home street = ereg replace (" " , "+" , $home street); > > The input is "123 happy trail" > I need the output to be "123+happy+trail" Using an ereg her

[PHP] how do you write queries in php codes? (was Re: [PHP] Why doesn't this simple query work?)

2001-07-25 Thread Moriyoshi Koizumi
yes, both of yours make the same result too, and are clean :-) and i wonder what the best way is, to put queries into php code... there's a more complicated sample, $a=addslashes($a); $b=addslashes($b); $c=addslashes($c); if( $another_table ) { $another_table=','.$another_table; } $query = "sel

[PHP] It just won't run in background!!!!

2001-07-25 Thread Richmond, Raymond
I'm trying to get the following (broken up only for readability and cademaintainability) to actually run in the background, returning the browser to the user immediately and not waiting for lynx to exit. I'm obviously going it wrong, but how? Any suggestions? $cmd1 = "/usr/bin/lynx -auth=$Clien

RE: [PHP] PHP/Cold Fusion questions:

2001-07-25 Thread Johnny Nguyen
This may be off. but in IIS asp pages are handled by asp.dll and php pages by some php dll... maybe it be possible to write another dll that passes the the request and script to asp.dll first and then simulates the browser by grabbing all output sent back by the asp.dll and then passes it to the p

RE: [PHP] Syntax Eyes

2001-07-25 Thread Lawrence . Sheed
Almost, but not quite. You also need to prepend a Header before any output your data to tell the browser its content type. Eg -Original Message- From: Mark Roedel [mailto:[EMAIL PROTECTED]] Sent: July 26, 2001 12:02 AM To: Clayton Dukes; Php-General Subject: RE: [PHP] Syntax Eyes >

RE: [PHP] PHP/Cold Fusion questions:

2001-07-25 Thread Kurt Lieber
AFAIK, there are no web servers out there that will allow you to pass a single file through two separate parsing engines (i.e. PHP and CF) Apache won't and I don't believe IIS will do it either. So, from a web server standpoint, the server will either send a web page through the PHP parsing engin

RE: [PHP] Why doesn't this simple query work?

2001-07-25 Thread Lawrence . Sheed
how about $location = addslashes($location); $query = "select shoodID from shoots where location = '$location'"; or $query = "select shoodID from shoots where location = '". addslashes($location) ."'"; Both are \'clean\' :) -Original Message- From: Moriyoshi Koizumi [mailto:[EMAIL PRO

Re: [PHP] Opening another page in code (PROPOSED FAQ)

2001-07-25 Thread Nelson Goforth
Brian, Bill and Gunther - Thank you, and others, for answers to this question. I think the FAQ entry is a good idea, perhaps with a special note to Perl programmers. I'm used to something like: print "Location:www.site.com"; in Perl, which doesn't seem too strict about other data coming

RE: [PHP] OT--PHP, MySQL, WML and GPS Tracking

2001-07-25 Thread Lawrence . Sheed
I'm of the opinion you cannot do this totally in PHP. You are going to need some client side, and some server side software - server side can be php of course. Client side ie (gps/wap device)- One possibility - write a wap browser that interfaces with your gps device and returns co-ords in heade

Re: [PHP] Big difference?

2001-07-25 Thread Alexander Wagner
Henrik Hansen wrote: > > The difference between echo and print is that print returns a > > boolean value, so you can check if "blah blah" was successfully > > printed. > > hmm isen't it always succesfull printed or did I miss something? IIRC print will return false if the connection is aborted

Re: [PHP] WSIWYG Editor using PHP?

2001-07-25 Thread kath
I use Quanta. Sorry, don't have a link at the moment. Try on freshmeat.net or sourceforge - k On Tuesday 24 July 2001 11:27 pm, Chip wrote: > Joseph Blythe wrote: > > Try PHP Coder Pro! http://www.phpide.de > > Too bad it's a winblows-only app. :-( > > Chip > > > Regards, > > > > Joseph. > >

Re: [PHP] strlen

2001-07-25 Thread David Robley
On Thu, 26 Jul 2001 05:49, David OBrien wrote: > I'm having a heck of a time getting something to work like it should > > I have a script which reads a list of words one per line > I want it to display the length of the word a tab then the word. No > matter how I code it it still only shows the wo

RE: [PHP] string concatenation

2001-07-25 Thread Seb Frost
Whoops meant to delete the old message. Doh. Variable variables eh? A topic I've always wondered about and never found in a manual for any of the languages I've used before. Will go and have a look now, cheers. - seb -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Se

Re: [PHP] string concatenation

2001-07-25 Thread David Robley
On Thu, 26 Jul 2001 06:54, Seb Frost wrote: > OK let's say in variable $search I have the string "color" (without the > quote marks). > > now I want to be able to refer to the variable $color in my code. > > How in gods name do I do this. I guess somehow I have to combine a "$" > with the content

RE: [PHP] html form question

2001-07-25 Thread Seb Frost
Funny you should ask - just done it myself: "; echo mysql_result($result,$i,"eventName"); echo ""; } MYSQL_CLOSE(); ?> - seb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] html form question

2001-07-25 Thread Lawrence . Sheed
I use the following Looks a bit unwieldy to call, but does everything I need. eg, say I have a table called foo with ID, Name print OptionCreate ("ID","returnID", "foo order by Name", "","Name"); will create me a drop down print OptionCreate ("ID","returnID", "foo order by Name", "1","Name"

Re: [PHP] html form question

2001-07-25 Thread Matt Greer
> What's the method for populating any number of html > form ... tags with query results? > I've seen lots of php-embedded examples for CHECKBOX, > RADIO and even SELECT, but I can't seem to figure out > how to create a simple drop-down menu. HELP!!! Wouldn't it just be:

[PHP] RV: Installing PHP in WinNT and Apache 1.3

2001-07-25 Thread El Gerva
- Original Message - From: El Gerva To: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 2:46 PM Subject: Installing PHP in WinNT and Apache 1.3 Hi everyone... I'm really a newbie in PHP. I've got Perl running in Apache, and i want to install PHP 4 (binary) too. These are the line

Re: [PHP] html form question

2001-07-25 Thread David Robley
On Thu, 26 Jul 2001 10:27, CGI GUY wrote: > What's the method for populating any number of html > form ... tags with query results? > I've seen lots of php-embedded examples for CHECKBOX, > RADIO and even SELECT, but I can't seem to figure out > how to create a simple drop-down menu. HELP!!! You

[PHP] html form question

2001-07-25 Thread CGI GUY
What's the method for populating any number of html form ... tags with query results? I've seen lots of php-embedded examples for CHECKBOX, RADIO and even SELECT, but I can't seem to figure out how to create a simple drop-down menu. HELP!!! __ Do Y

Re: [PHP] Re: error using imagecreate function

2001-07-25 Thread David Robley
On Wed, 25 Jul 2001 22:06, venomous wrote: > This is the code just a normal imagecreate function > file://draw1.php > Header("Content-type: image/jpeg"); > $image = ImageCreate(200,150); > $gray = ImageColorAllocate($image,204,204,204); > $blue = ImageColorAllocate($image,0,0,255); > ImageLine($i

[PHP] progress dbi?

2001-07-25 Thread [EMAIL PROTECTED]
I'm thinking of writing some web aps to interface with a progress database created with Association Plus. I'm wondering if anyone has done this and if it was hard. I'm not certain how to go about understanding this whole ODBC thing ... Susan -- [EMAIL PROTECTED] http://futurebird.diaryland.com

[PHP] Newbie Help

2001-07-25 Thread Matthew Schubert
I was reading through the PHP manual and got to the section on constructors. class A { function A() { echo "I am the constructor of A.\n"; } function B() { echo "I am a regular function named B in class A.\n"; echo "I am not a constructor in A.\n"; } } class B extends A {

Re: [PHP] Hi! PHP & SQL!

2001-07-25 Thread David Robley
On Thu, 26 Jul 2001 09:47, Dana Holt wrote: > Hello everyone, > > I am very new to PHP (only 2 days now!), and I am having a problem with > MySQL. > > This is probably simple. > > Ok, I insert a new row into a database that has an AUTO_INCREMENT key > defined. > > How to get the value of the AUTO_

[PHP] Hi! PHP & SQL!

2001-07-25 Thread Dana Holt
Hello everyone, I am very new to PHP (only 2 days now!), and I am having a problem with MySQL. This is probably simple. Ok, I insert a new row into a database that has an AUTO_INCREMENT key defined. How to get the value of the AUTO_INCREMENT field of the row I just inserted? My database doesn'

Re: [PHP] Opening another page in code (PROPOSED FAQ)

2001-07-25 Thread Brian White
I have seen this question alot recently. Maybe it is time for an FAQ. Maybe somebody else would like to have an attempt at wording this better: Q: (7.15?) I want to use the "header" function to do something like a redirect, but I keep getting messages about the headers having alread

[PHP] Different dates on virtual servers?

2001-07-25 Thread Miles Gordon
Ok - this is a long shot. I'm supporting a PHP3/Apache/Oracle system that has some issues related to the upcoming Sep 3 2001 event when the UNIX timestamp changes from 9 digits to 10. I'd like to run some tests involving a system date after Sep 3 on our Solaris server that houses all of our virt

RE: [PHP] Why doesn't this simple query work?

2001-07-25 Thread Brave Cobra
True, that's because mySQl doesn't understand it without the signle quotes, or any descent database for that matter. BC -Original Message- From: Jon Yaggie [mailto:[EMAIL PROTECTED]] Sent: woensdag 25 juli 2001 22:12 To: [EMAIL PROTECTED] Subject: Re: [PHP] Why doesn't this simple query

Re: [PHP] PHP 4.0.6 on RedHat 6.2: Undefined symbols when using IMAP?!

2001-07-25 Thread Alexander Skwar
So sprach »Alexander 'Digital Projects' Skwar« am 2001-07-26 um 00:10:00 +0200 : > Same result. Cannot load /usr/local/apache/libexec/libphp4.so into > server: /usr/local/apache/libexec/libphp4.so: undefined symbol: > krb5_defkeyname Hrmpf, I just installed the latest krb5: krb5-libs-1.2.2-4. H

RE: [PHP] OT--PHP, MySQL, WML and GPS Tracking

2001-07-25 Thread Seb Frost
Er, surely you need a device with built in GPS recievers? WHich certainly won't be every PDA and mobile phone out there... - seb -Original Message- From: John Monfort [mailto:[EMAIL PROTECTED]] Sent: 26 July 2001 00:22 To: [EMAIL PROTECTED] Subject: [PHP] OT--PHP, MySQL, WML and GPS Tra

[PHP] Window size (not PHP?)

2001-07-25 Thread Seb Frost
I must confess I think this can't be done with PHP because of it being server-side but hell you seem like a friendly and helpful enough bunch of guys anyway so I thought I'd ask you knowledgable ones. So what should I be using? Javascript? I want the size of the window, not the screen resolutio

[PHP] OT--PHP, MySQL, WML and GPS Tracking

2001-07-25 Thread John Monfort
Hello everyone, This is slightly off topic, but I'm sure you guys are the best group to answer this. I have a client who needs a wireless website, that interacts with PHP and MySQL. In addition to that, the client wants to be able to track the geographical location, of the user--who will

Re: [PHP] Big difference?

2001-07-25 Thread Nathan Cook
Not if there are syntax errors like misplaced quotes (", '). Nathan Cook [EMAIL PROTECTED] - Original Message - From: "Henrik Hansen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 25, 2001 3:54 PM Subject: Re: [PHP] Big difference? > [EMAIL PROTECTED] (Johannes Schil

RE: [PHP] Regular Expression Question

2001-07-25 Thread Matthew Loff
http://www.php.net/manual/en/function.substr.php string substr (string string, int start [, int length]) Substr returns the portion of string specified by the start and length parameters. If start is positive, the returned string will start at the start'th position in string, counting from ze

RE: [PHP] The BIG Question

2001-07-25 Thread Matthew Loff
That's like saying "What's C++ good for?" Well, not quite... Ha ha... I get a bit carried away... But it's close enough. PHP does what you want it to do... Database-driven sites are covered frequently on this list because PHP's database support is extensive and very easy to use. You should

[PHP] Classes : Linked Lists vs Arrays?

2001-07-25 Thread Johnny Nguyen
I'm looking for opinions on using Linked Lists vs Arrays in PHP. As a little background: I'm developing a calendar that works with LDAP. I've got the following classes defined. Event and Calendar Calendar has methods displayMonthView($timestamp) displayWeekView($timestamp) displayDayView($time

[PHP] sockets help ...

2001-07-25 Thread Arnauld Dravet - smurfie
Hello, simple question: $sock = fsockopen($server_ip, $server_port, $errno, $errstr, 30); while(!feof($sock)) echo fgets($sock,4096); fclose($sock); why does the while() makes an infinite loop, like if FEOF was never found ? thanks Arnauld Dravet [EMAIL PROTECTED]

Re: [PHP] PHP 4.0.6 on RedHat 6.2: Undefined symbols when using IMAP?!

2001-07-25 Thread Alexander Skwar
So sprach »Rasmus Lerdorf« am 2001-07-24 um 16:42:12 -0700 : > Add --with-kerbeors to your PHP configure flags Done. I ran: ./configure --enable-bcmath --enable-exif --enable-ftp --enable-dba=shared --enable-dbx --enable-magic-quotes --enable-safe-mode --enable-sysvshm --enable-sysvsem --enabl

Re: [PHP] Session Variables

2001-07-25 Thread Jason Bell
Thanks! I changed my code to the following and it plugged that hole. :) if (!$PHPSESSID) { $sess_auth = ""; session_register('sess_auth'); } - Original Message - From: "Sascha Schumann" <[EM

Re: [PHP] Big difference?

2001-07-25 Thread Henrik Hansen
[EMAIL PROTECTED] (Johannes Schill) wrote: > Hello Kyle, > > The difference between echo and print is that print returns a boolean value, > so you can check if "blah blah" was successfully printed. hmm isen't it always succesfull printed or did I miss something? -- Henrik Hansen -- PHP

[PHP] Re: Big difference?

2001-07-25 Thread Henrik Hansen
[EMAIL PROTECTED] (Kyle Smith) wrote: > What is the difference between using > print "blah blah" > ?> > > and > echo "blah blah" > ?> print is a simple function that outputs what it's got in, where as echo more or less is the same but can take more paremeters, look at their manual pa

RE: [PHP] is_file() and is_dir() info

2001-07-25 Thread Gonyou, Austin
Well, I finally got some time on this and found that is_file() and is_dir() will NOT traverse drectories very well. So, you must chdir(), then execute is_file() is_dir() as needed. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [EMAIL PROTECTED] >

Re: [PHP] Big difference?

2001-07-25 Thread Schill, Johannes
Hello Kyle, The difference between echo and print is that print returns a boolean value, so you can check if "blah blah" was successfully printed. more info about this: www.php.net/print www.php.net/echo Best regards, Johannes Schill - Original Message - From: "Kyle Smith" <[EMAIL PROT

[PHP] string concatenation

2001-07-25 Thread Seb Frost
OK let's say in variable $search I have the string "color" (without the quote marks). now I want to be able to refer to the variable $color in my code. How in gods name do I do this. I guess somehow I have to combine a "$" with the contents of £search or something...? - seb -Original Mess

[PHP] Big difference?

2001-07-25 Thread Kyle Smith
What is the difference between using and -legokiller666- http://www.StupeedStudios.f2s.com New address new site ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666

RE: [PHP] Session Variables

2001-07-25 Thread Sascha Schumann
On Wed, 25 Jul 2001, Johnson, Kirk wrote: > > Is there anyway to prevent session variables from being > > overwritten by a get string? > > PHP will do this automatically *if* you initialize your session variables to > *anything* as soon as you register them. For example, > > session_register("ses

RE: [PHP] Regular Expression Question

2001-07-25 Thread Seb Frost
I hope my later message clarifys what I mean. - seb -Original Message- From: Jeff Oien [mailto:[EMAIL PROTECTED]] Sent: 25 July 2001 22:05 To: PHP Subject: RE: [PHP] Regular Expression Question Aren't the trims just for white space? Jeff Oien > since you know exactly which 4 character

[PHP] other than 'thawte'/'verisign'?

2001-07-25 Thread Dennis Gearon
Anyone know if we in the US can use guys like these? http://www.globalsign.net/digital_certificate/hypersign/index.cfm that's 197 usd (plus some amount of vat?) for a **128** bit certificate. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

RE: [PHP] Regular Expression Question

2001-07-25 Thread Jeff Oien
Aren't the trims just for white space? Jeff Oien > since you know exactly which 4 characters you want to keep you can use a > simple string trimming routine. I forget the name of the function in php > but it's there and it'll be something like > > trimstring($string,1,5); > > or something like

RE: [PHP] Why doesn't this simple query work?

2001-07-25 Thread Seb Frost
Thanks for the suggestion but it's too ugly for me :-) I'll just stick with using '. I don't forsee a problem. - seb -Original Message- From: Moriyoshi Koizumi [mailto:[EMAIL PROTECTED]] Sent: 25 July 2001 21:59 To: [EMAIL PROTECTED] Subject: Re: [PHP] Why doesn't this simple query wo

RE: [PHP] Regular Expression Question correction

2001-07-25 Thread Seb Frost
$newstring = substr($string,1,4); FOUR, not FIVE. Doh. -Original Message- From: Seb Frost [mailto:[EMAIL PROTECTED]] Sent: 25 July 2001 22:03 To: [EMAIL PROTECTED]; PHP Subject: RE: [PHP] Regular Expression Question since you know exactly which 4 characters you want to keep you can us

Re: [PHP] PHP scripting

2001-07-25 Thread J Smith
Here's an obvious one: 1. Go to http://www.php.net (or one of its mirrors) 2. Click "Show Source" in the bottom right-hand side of any of the pages on the site. J Tyler Longren wrote: > Also, > px.sklar.com > www.phpbuilder.com > www.hotscripts.com/PHP > > Anyone else? > > Tyler Longren >

Re: [PHP] Why doesn't this simple query work?

2001-07-25 Thread Moriyoshi Koizumi
IMHO $query = "SELECT shoodID FROM shoots WHERE location=\"$location\""; and even $query = "SELECT shoodID FROM shoots WHERE location='$location'"; sometimes cause SQL Syntax Error, because the variable $location may contain quote characters (')(")... since i experienced the same thing i've b

RE: [PHP] Regular Expression Question

2001-07-25 Thread Seb Frost
since you know exactly which 4 characters you want to keep you can use a simple string trimming routine. $newstring = substr($string,1,5); No need for complicated regular expressions! - seb -Original Message- From: Jeff Oien [mailto:[EMAIL PROTECTED]] Sent: 25 July 2001 21:47 To: PHP S

Re: [PHP] PHP scripting

2001-07-25 Thread Tyler Longren
Those scripts do "stuff". Some of us have submitted code to those places. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: "Kyle Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 25, 2001 11:57 PM Subject:

Re: [PHP] PHP scripting

2001-07-25 Thread Kyle Smith
just scripts that do anything? but ones that people actually use -legokiller666- http://www.StupeedStudios.f2s.com New address new site ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 - Original Message - From: "Lara J. Fabans" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

RE: [PHP] Session Variables

2001-07-25 Thread Johnson, Kirk
> Is there anyway to prevent session variables from being > overwritten by a get string? PHP will do this automatically *if* you initialize your session variables to *anything* as soon as you register them. For example, session_register("sess_auth"); $sess_auth = ""; If you do this, then sessi

Re: [PHP] PHP scripting

2001-07-25 Thread Tyler Longren
Also, px.sklar.com www.phpbuilder.com www.hotscripts.com/PHP Anyone else? Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: "Lara J. Fabans" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 25, 2001 3:46 PM Subje

[PHP] Regular Expression Question

2001-07-25 Thread Jeff Oien
I want to replace a string like this 1B335-2G with this B335. So for all the strings I want to remove the first character and the last three characters. I'm not sure which replace function to use or how to go about it. Thanks. Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] PHP scripting

2001-07-25 Thread Lara J. Fabans
to do what? There's tons of sample scripts out there on www.weberdev.com www.zend.com www.devshed.com if you just want to go absorb knowledge Lara - Original Message - From: "Kyle Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 25, 2001 9:40 PM Subject: [PHP]

Re: [PHP] The BIG Question

2001-07-25 Thread Owen Rudge
> What else? Do you have a particular application that you think might be > able to use php for? I used PHP to create a web-based interface to a list of Transport Tycoon saved games, etc, that previously was only available as part of one of my apps. (I've now created a new PHP and MySQL-driven

[PHP] Session Variables

2001-07-25 Thread Jason Bell
Is there anyway to prevent session variables from being overwritten by a get string? I'm wanting to use sessions for security/login, but I'm finding that I can bypass this very easily. For example, I want to hide menu items based on security level, so I use something like this: if ($HTTP_SESSI

[PHP] PHP scripting

2001-07-25 Thread Kyle Smith
Could some of you people please send me some scripts you have made (not too complicated) as i find it easier to learn from hands on experience =) Thanks -legokiller666- http://www.StupeedStudios.f2s.com New address new site ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666

Re: [PHP] The BIG Question

2001-07-25 Thread Ben Bleything
It can be used for (nearly) anything, it seems. Sure, making dynamic web sites is cool... not necessarily database driven, but perhaps driven by user input. I'm currently using PHP as my primary shell scripting language... I have a collection of scripts that manipulate directories full of digita

RE: [PHP] Why doesn't this simple query work?

2001-07-25 Thread Seb Frost
Ah thank you Jon! I was using double quotes (tried with and without escape slashes). Forgot about single quotes compeletly... - seb -Original Message- From: Jon Yaggie [mailto:[EMAIL PROTECTED]] Sent: 25 July 2001 21:12 To: [EMAIL PROTECTED] Subject: Re: [PHP] Why doesn't this simple q

[PHP] Exec !?!

2001-07-25 Thread hooger
Hi! I need to run an exe program inside my PHP page. To run this program I do "addcours.exe c toto" in DOS. All my dll's and exe are in the folder C:/WINNT/system32/ My php pages are in the folder C:/WEB/PHP/ Code of my PHP page : ... exec("C:/WINNT/system32/addcours.exe c toto"); ... But it d

[PHP] reading from file

2001-07-25 Thread Stefan Kostopoulos
I am using the script include below to read the content of a file and output it. When I load this script with the adress of a plain html file it outputs everything like expected, except there are some extra characters spread over the file. They come in little string like '40d' or '1000' and ap

[PHP] The BIG Question

2001-07-25 Thread Kyle Smith
Ok this is the big question, in-depth could someone tell me what PHP could be used for other than aking databases (which i canT do) Thanks -legokiller666- http://www.StupeedStudios.f2s.com New address new site ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666

RE: [PHP] is_file() and is_dir() info

2001-07-25 Thread Gonyou, Austin
Please someone help me on this? -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [EMAIL PROTECTED] > -Original Message- > From: Gonyou, Austin > Sent: Wednesday, July 25, 2001 12:50 PM > To: Gonyou, Austin; 'Chris Cocuzzo'; [EMAIL PROTECTED] > Subj

  1   2   >