RE: [PHP] PHP in HTML

2002-05-16 Thread Peter
true there's not that much difference .. though it would depend on the server's connection speed as well as the machines "grunt" as to how much of a difference there is. -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Friday, 17 May 2002 4:40 PM To: Peter Cc: [EMAIL

Re: [PHP] Problem with sending information with quotes

2002-05-16 Thread Miguel Cruz
On Fri, 17 May 2002, Rosen wrote: > // if in the input form I enter something with quotes, i.e. "TEST" > //here the value of $text is \"TEST\" . The PHP send value to > me with backslah. > // > //How can I get the real entered, i.e. "TEST" ? Where is the problem ? http://php.n

RE: [PHP] PHP in HTML

2002-05-16 Thread Miguel Cruz
Do you really find it noticeable quicker? Benchmarks I've seen (none of them that current) don't seem to support that. Depending on the software versions involved, it seems to be anywhere from much faster through PHP to a few % slower. Certainly no major penalty in any case. If there's interest I

[PHP] Problem with sending information with quotes

2002-05-16 Thread Rosen
Hi, I have follow PHP file test.php: if ($action=="") { echo ""; echo ""; echo ""; echo ""; echo ""; } if ($action=="send") { echo "$text"; // if in the input form I enter something with quotes, i.e. "TEST" //here the value of $text is \"TEST\" . The PHP send value to me with

[PHP] Multiple Upload using list

2002-05-16 Thread Triax
Hello, currently I want to implement a multiple upload using a listbox. I have 2 link which will dynamically add or remove a file to/from the list box, I'm writing it as a java script as below. - function addFile(){ var temp, ext

[PHP] Can anyone help me with fopen ?

2002-05-16 Thread Roman Duriancik
I have some text file, in this text file i write some information. But my problem is : How write/append new information on beginning of document but old information will be there too. When I used fopen with option "a" or "r+" and with command rewind new information rewrited old information. Thanks

RE: [PHP] PHP in HTML

2002-05-16 Thread Peter
I find it better than having every page go thru php not to mention quicker. -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Friday, 17 May 2002 3:52 PM To: Peter Cc: [EMAIL PROTECTED] Subject: RE: [PHP] PHP in HTML On Fri, 17 May 2002, Peter wrote: >> there are a

[PHP] Sending data from java applet on client ?

2002-05-16 Thread Marco Laponder
Hi All, Does anybody know how to send binary data from an applet to a php page and save this into a blob ? Or is using afile upload my only option ( would like that because then it would have to be a signed applet :-( ) Any suggestions welcome ! Marco Laponder ( [EMAIL PROTECTED]

Re: [PHP] can any one see a problem with this script?

2002-05-16 Thread Jason Wong
On Friday 17 May 2002 13:26, Peter wrote: > I have also tried > > adding the r option as I only want to read the file as follows > > $fp = fopen("http://www.phpbuilder.com/rss_feed.php?type=general&limit=10";, > "r") or die("Error reading RSS data."); > > but I still get the same error message..

RE: [PHP] PHP in HTML

2002-05-16 Thread Miguel Cruz
On Fri, 17 May 2002, Peter wrote: >> there are also possible good reasons for sending .html files through >> php. like if you don't want users to know that your website is written >> in php. > > a better way to do that would be to make up your own extension so > instead of having your server use

Re: [PHP] PHP in HTML

2002-05-16 Thread Jason Wong
On Friday 17 May 2002 13:33, Jerome Houston wrote: > yeah, just find in your web server where to tell it what kind of files to > send through php. > > there are also possible good reasons for sending .html files through php. > like if you don't want users to know that your website is written in ph

RE: [PHP] PHP in HTML

2002-05-16 Thread Peter
there are also possible good reasons for sending .html files through php. like if you don't want users to know that your website is written in php. -jerome a better way to do that would be to make up your own extension so instead of having your server use .php for php files make it use .web

Re: [PHP] PHP in HTML

2002-05-16 Thread Jerome Houston
yeah, just find in your web server where to tell it what kind of files to send through php. there are also possible good reasons for sending .html files through php. like if you don't want users to know that your website is written in php. -jerome Original Message Follows From: Just

RE: [PHP] can any one see a problem with this script?

2002-05-16 Thread Peter
I have also tried adding the r option as I only want to read the file as follows $fp = fopen("http://www.phpbuilder.com/rss_feed.php?type=general&limit=10";, "r") or die("Error reading RSS data."); but I still get the same error message.. -Original Message- From: Steve Buehler [mailto

Re: [PHP] can any one see a problem with this script?

2002-05-16 Thread Steve Buehler
Not sure, but it might be the space that you have after the limit=10 Steve At 11:39 PM 5/16/2002, Peter wrote: >hi can any one see a problem with this script .. I am trying to use >phpbuilder's rss link for a site but am having errors > > >$content .= "\n\n"; >$content .= "test\n"; >$content .=

Re: [PHP] remote fetching??

2002-05-16 Thread Miguel Cruz
On Thu, 16 May 2002, Gerard Samuel wrote: > I was about to modify a script that fetches files for xml content. It > currently does so using fsockopen. > I originally was going to use plain fopen, and I know that curl can also > be used. > Im looking for preferences as to use one method over ano

[PHP] can any one see a problem with this script?

2002-05-16 Thread Peter
hi can any one see a problem with this script .. I am trying to use phpbuilder's rss link for a site but am having errors \n\n"; $content .= "test\n"; $content .= "\n"; $content .= "\n"; //line 8 starts { $fp = fopen("http://www.phpbuilder.com/rss_feed.php?type=general&limit=10 ", "r") or die("Er

RE: [PHP] Passing to an Applet

2002-05-16 Thread Peter
Should be ;) -Original Message- From: Dennis Moore [mailto:[EMAIL PROTECTED]] Sent: Friday, 17 May 2002 1:10 PM To: Joshua Baker; [EMAIL PROTECTED] Subject: Re: [PHP] Passing to an Applet Am I missing something? This is too easy... But h

Re: [PHP] Passing to an Applet

2002-05-16 Thread Dennis Moore
Am I missing something? This is too easy... But here goes... - Original Message - From: "Joshua Baker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 16, 2002 5:18 PM Subject: [PHP] Passing to an Applet All right I've s

RE: [PHP] Generate every possible combination

2002-05-16 Thread Lance Lovette
Here's the function I use: // array array_permute(array [, string]) // // Returns an array containing the permutations of the values in an array. // // Example: // $a = array(1, 2, 3); // $p = array_permute($a) // // Result: // p[0] = '1,2,3' // p[1] = '1,3,2' // p[2] = '2,1,3' // p[3] = '2,3,1'

RE: [PHP] PHP in HTML

2002-05-16 Thread Peter
if your using apache for you web server .. in httpd.conf you can set it so you have the following config.. (this is on windows but same basically applies to other OS's) LoadModule php4_module c:/phpdev/php/sapi/php4apache.dll AddType application/x-httpd-php .php .html this will enable .html file

Re: [PHP] PHP in HTML

2002-05-16 Thread Justin French
Your Apache config file will be set to only parse PHP pages if they have the .php extension this is a feature, not a big, because otherwise every html page on your server will be parsed, rather than just the php ones... you could modify your apache config iff you wished, but I wouldn't. .html

[PHP] PHP in HTML

2002-05-16 Thread Jeremy
Hi Folks, A simple question that has me puzzled, obviously I have a config file wrong somewhere.. Why does a filename.php file run as php and a filename.html with php code embedded not produce a php result? cheers, Jeremy Burton Senior Consultant PERTH TOURIST LOUNGE Level 2 Carillon City Mur

[PHP] remote fetching??

2002-05-16 Thread Gerard Samuel
I was about to modify a script that fetches files for xml content. It currently does so using fsockopen. I originally was going to use plain fopen, and I know that curl can also be used. Im looking for preferences as to use one method over another. Why one is better than the other etc. Thanks

Re: [PHP] Newline in fputs

2002-05-16 Thread Miguel Cruz
On Thu, 16 May 2002, Henry Grech-Cini wrote: > header("Content-type: Application/octet-stream"); > > The downloaded file does not contain Windows type carriage returns of > newlines! However it does contains the data thank goodness. If you want the newlines converted, then you need to use a text

Re: [PHP] PHP and MySQL

2002-05-16 Thread Miguel Cruz
On Thu, 16 May 2002, City Colleges of Chicago - Mannheim wrote: > > 1 > 2 > 3 > 4 > 5 > 6 > 7 > 8 > 9 > 10 > This wasn't your question, but... $i"; ?> miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Date and time functions

2002-05-16 Thread David Freeman
> I am on the East Coast of Australia. I'm in central Queensland... > Do you know if by default if the date/time display will > display only East coast Australia time, or will display > from the user's time zone? eg Will USA users see the > Australian time or their own time? Would this

Re: [PHP] Date and time functions

2002-05-16 Thread Miguel Cruz
On Fri, 17 May 2002, DC wrote: > I am on the East Coast of Australia. > > Do you know if by default if the date/time display will display only > East coast Australia time, or will display from the user's time zone? eg > Will USA users see the Australian time or their own time? Would this > cause

RE: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Peter
I think he was meaning in terms of PHP can do this ASP can't .. ASP can do that this way and PHP does it that way.. etc.. -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Friday, 17 May 2002 10:11 AM To: Victor Polyushko Cc: Php Subject: Re: [PHP] Done w/ PHP - VB or

Re: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Victor Polyushko
hmm.. good question, I guess number of active job openings will be the best measure :-)) (or websites using PHP vs ASP) - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> To: "Victor Polyushko" <[EMAIL PROTECTED]> Cc: "Php" <[EMAIL PROTECTED]> Sent: Thursday, May 16, 2002 5:1

Re: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Miguel Cruz
On Thu, 16 May 2002, Victor Polyushko wrote: > Does anyone know if there is any global reliable and free :-) statistics on > usage of PHP vs ASP. I am having the same dilemma., do I need to stick to > going deeply into PHP (which in my opinion rulez!!) or start paying more > attention to ASP...

Re: [PHP] Can anyone help me save img from URL?

2002-05-16 Thread Victor Polyushko
BINGO!! thank you guys for your input I used a very simple command to accomplish that and it works!! http://domain.com/images/somepic.gif";; system( $command, $result); echo $result; ?> Victor Polyushko - Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> To: "Victor Polyushk

Re: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Victor Polyushko
Does anyone know if there is any global reliable and free :-) statistics on usage of PHP vs ASP. I am having the same dilemma., do I need to stick to going deeply into PHP (which in my opinion rulez!!) or start paying more attention to ASP... Best Regards, Victor Polyushko - Original

FW: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Peter
For me personally I find working with ASP & .NET to be a pain in the butt, yeah sure you can to use all the fancy GUI's that can take care of some code for you etc.. but then there's the argument about php and having to write the code your self. Personally I find that a better approach as for m

[PHP] Re: odbc_fetch_array not working in php 4.2.1 for win?

2002-05-16 Thread Emile Bosch
does'n't matter anyway i rule so i solved it already :D a nice workaround i made :D /me is sleepy nighty nighty "Emile Bosch" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > odbc_fetch_array not working in php 4.2.1 for win? > > Here it says undefined function

[PHP] Date and time functions

2002-05-16 Thread DC
Hi all, I am on the East Coast of Australia. Do you know if by default if the date/time display will display only East coast Australia time, or will display from the user's time zone? eg Will USA users see the Australian time or their own time? Would this cause a issue with timestamping an orde

[PHP] odbc_fetch_array not working in php 4.2.1 for win?

2002-05-16 Thread Emile Bosch
odbc_fetch_array not working in php 4.2.1 for win? Here it says undefined function :( How can i solve it, do i have an old version or something?? Warm regards Emile Bosch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] BUG?: for loop using chars

2002-05-16 Thread Kevin Stone
No, no bug. I believe you would end up with something like that if the for loop is evaluating the letters numerically (either as ASCII values or some other value). The examples below would be the proper way of printing a range of letters... $letters = range('a', 'z'); for ($i=0; $i To: <[EMAIL

Re: [PHP] Re: [PHP-DEV] Console application with PHP

2002-05-16 Thread Markus Fischer
Windows too. - Markus On Thu, May 16, 2002 at 02:31:52PM -0700, Vail, Warren wrote : > Does this work on Windows, or is it restricted to Linux/unix? > > > Warren Vail > Tools, Metrics & Quality Processes > (415) 667-7814 > Pager (877) 774-9891 > 215 Fremont 02-658 > > > -Origina

[PHP] Key is an undefined function?

2002-05-16 Thread Damian Harouff
Fatal error: Call to undefined function: key() in /var/www/explorer/test.php on line 18 When it's listed right here: http://www.php.net/manual/en/function.key.php I was playing with the library from: http://phpconcept.free.fr/pclzip/index.en.php This is the code: -

RE: [PHP] Re: [PHP-DEV] Console application with PHP

2002-05-16 Thread Vail, Warren
Does this work on Windows, or is it restricted to Linux/unix? Warren Vail Tools, Metrics & Quality Processes (415) 667-7814 Pager (877) 774-9891 215 Fremont 02-658 -Original Message- From: Markus Fischer [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 11:58 AM To: DoL Cc: [EMAI

Re: [PHP] Can anyone help me save img from URL?

2002-05-16 Thread Robert Cummings
Victor Polyushko wrote: > > Hi Guys, > > Thank you fo your input. I am sorry I am new to the list so + English is not > my first language :-( anyhow., I shoudl 've made my question more clear. > > I am trying to save the image from the given URL > (http://domain.com/image.gif) running a PHP scr

Re: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Michael Kimsal
Miguel Cruz wrote: >>As much as I'm not a fan of ASP (2 or 2.5, not worked with 3 much), >>I'd have to say that you could definitely at least read a directory's >>contents without having to purchase external libraries. Please don't >>go overboard. > > > It's been a while, but I remember that

Re: [PHP] Can anyone help me save img from URL?

2002-05-16 Thread Victor Polyushko
Hi Guys, Thank you fo your input. I am sorry I am new to the list so + English is not my first language :-( anyhow., I shoudl 've made my question more clear. I am trying to save the image from the given URL (http://domain.com/image.gif) running a PHP script on the page. I have tried fread() and

[PHP] Passing to an Applet

2002-05-16 Thread Joshua Baker
All right I've seen in done in jsp and asp, but I'd like to know if I can do it in PHP as well. I've got an applet, which is in the page replay.php, with these parameters that I need to fill from a URL. I need to pass 2 parameter in the URL from a

Re: [PHP] Can anyone help me save img from URL?

2002-05-16 Thread Robert Cummings
Miguel Cruz wrote: > > On Thu, 16 May 2002, Victor Polyushko wrote: > > I was wondering if someone knows how to save the image from the given > > url http://domain.com/image.gif into a file on a local machine > > lynx -source -dump > image.gif If there were actually an image I'd use: wget

Re: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Robert Cummings
Miguel Cruz wrote: > > Public denigration of what I don't understand is how I strike out at a > callous world that's denied me my just deserts: fame, millions, and a > torrid love affair with Nancy Reagan. Either address the fundamental > injustice here or cut me some slack. Couldn't have said i

Re: [PHP] Can anyone help me save img from URL?

2002-05-16 Thread Miguel Cruz
On Thu, 16 May 2002, Victor Polyushko wrote: > I was wondering if someone knows how to save the image from the given > url http://domain.com/image.gif into a file on a local machine lynx -source -dump http://domain.com/image.gif > image.gif miguel -- PHP General Mailing List (http://www.php.n

Re: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Miguel Cruz
On Thu, 16 May 2002, Michael Kimsal wrote: > Miguel Cruz wrote: >> all the power of DOS batchfiles. Every single thing you want to do - even >> basic filesystem operations like working with directories and file >> permissions!!! - requires purchasing expensive and buggy .COM components >> from nas

Re: [PHP] upload but restrict

2002-05-16 Thread Miguel Cruz
On Thu, 16 May 2002, r wrote: > Here goes, > I have a program that uploads any file and allows the person to see whats in > a particular directory without any problems, > not bad for a newbie eh? stand up and clap!!! > > what i want to do is make sure that whatever the person uploads cannot "

Re: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Michael Kimsal
Miguel Cruz wrote: > > all the power of DOS batchfiles. Every single thing you want to do - even > basic filesystem operations like working with directories and file > permissions!!! - requires purchasing expensive and buggy .COM components > from nasty little companies with horrible documenta

Re: [PHP] fsockopen

2002-05-16 Thread Miguel Cruz
On Thu, 16 May 2002, Scott St. John wrote: > I am using fsockopen to test several of our SQL and WEB servers at our > office. Testing ports 80, 1433 and 8080 work fine, but I would like to > set something up to test ports on our mainframe. These are printers > listening on 9100 and when I tes

[PHP] Informix compile problem

2002-05-16 Thread Mike Baranski
I posted a fix on the bug report form, but don't know how to implement it in the configure script. Someone should add it that knows what they're doing. http://bugs.php.net/bug.php?id=15177 Mike B. -- ## # Mike Baranski # # Security Manage

RE: [PHP] refreshing PHP on onClick

2002-05-16 Thread Leotta, Natalie (NCI/IMS)
This sounds like it might work. Thanks for your help!! I knew there had to be a better way than what my coworkers came up with :-) -Natalie -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 4:09 PM To: Leotta, Natalie (NCI/IMS) Cc: [EMAIL

[PHP] BUG?: for loop using chars

2002-05-16 Thread Erich Reimberg N
Hello, I'm trying to generate this list of letters A..Z, using this for ($l='A'; $l<='Z'; $l++) echo $l."-"; And it doesn't work. It generates the output included at the end of this message (I used to be shorter) But this works for ($l='A'; $l<='Y'; $l++) echo $l."-"; ge

Re: [PHP] refreshing PHP on onClick

2002-05-16 Thread Robert Cummings
"Leotta, Natalie (NCI/IMS)" wrote: > > It's all in a password protected site because the data's all confidential at > this point in time, but I can give you a mental picture. > > There are a bunch of dropdowns - State, Cancer, Sex, Race, Age. We're > drawing a graph of best fit lines - up to 5

[PHP] Re: Configuration.... XML.... Life

2002-05-16 Thread Manuzhai
Do you really have to use attributes for things like name? And the sense of having section-description inside section escapes me. Regards, Manuzhai "Michael Dransfield" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have started writing an app which helps

RE: [PHP] refreshing PHP on onClick

2002-05-16 Thread Leotta, Natalie (NCI/IMS)
It's all in a password protected site because the data's all confidential at this point in time, but I can give you a mental picture. There are a bunch of dropdowns - State, Cancer, Sex, Race, Age. We're drawing a graph of best fit lines - up to 5 allowed on the graph, then we start over repla

Re: [PHP] refreshing PHP on onClick

2002-05-16 Thread Kevin Stone
I'm not certain I understand your situation. If you're trying to keep state between each new input then I would recommend PHP sessions to store your variables. Could you elaborate more what you're trying to do? -Kevin - Original Message - From: "Leotta, Natalie (NCI/IMS)" <[EMAIL PROTECT

Re: [PHP] refreshing PHP on onClick

2002-05-16 Thread Robert Cummings
"Leotta, Natalie (NCI/IMS)" wrote: > > This might be a little bit JS and a little bit PHP. I'm wondering if > there's an easy way to refresh a PHP page on an "onClick" and change one > parameter (say someone wants to redraw the graph, but with the points). I > don't want to pay attention to any

[PHP] refreshing PHP on onClick

2002-05-16 Thread Leotta, Natalie (NCI/IMS)
This might be a little bit JS and a little bit PHP. I'm wondering if there's an easy way to refresh a PHP page on an "onClick" and change one parameter (say someone wants to redraw the graph, but with the points). I don't want to pay attention to any of the other parameters that could have chang

Re: [PHP] Making Multiple Pages

2002-05-16 Thread J Smith
You should also add an ORDER BY clause in there, as the SQL standard doesn't guarantee the order that rows are retrieved in. There's a chance that you'll get, say, 20 rows on the first page, go to the second page and get some of the rows you've already seen on the first page. If you use an ORD

RE: [PHP] Making Multiple Pages

2002-05-16 Thread Cal Evans
Do a google search for ADODB. It's a PHP database abstraction layer. It has built in 'pagination' methods (Previous X, next X) along with an example of how to use them. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Jason So

[PHP] Configuration.... XML.... Life

2002-05-16 Thread Michael Dransfield
I have started writing an app which helps (mainly win32, new) users to generate config files correctly to prevent glaring security holes on production servers. I started by using parse_config_file(), but this ends up causing problems because it strips comments. This means that some variables

[PHP] Re: Warning: Max file size of 4194304 bytes exceeded...

2002-05-16 Thread Lee P Reilly
> - Is there anyway to prevent the error message from being displayed on > screen, and perhaps set a flag so we know that the problem has occured? I know that if I set display_errors = Off in php.ini I can stop the message from being displayed, but can I set a flag to say the upload_max_filesize

Re: [PHP] Making Multiple Pages

2002-05-16 Thread Kevin Stone
One way to get it started would be to work strictly within the links. Don't initilize $i unless it is not set (which logically would mean your visitng the page for the first time). So.. if (!isset($_GET['i'])) $i = 0; else $i += 20; Another way would be to extract the number of total r

[PHP] Warning: Max file size of 4194304 bytes exceeded...

2002-05-16 Thread Lee P Reilly
Hi, I have another quick question (still on the topic of validating uploaded files). I have upload_max_filesize = 4194304 in my php.ini file. When I upload the file, the script that processes does the following: 1-Sets up the session info 2-Starts the HTML header template 3-Displays user login i

Re: [PHP] Making Multiple Pages

2002-05-16 Thread Jason Soza
Great! I think that's the SQL function I needed. Now for the PHP part - I'm a bit fo a newbie at writing code, so bear with me here. My query string is currently something like: $sql = mysql_query("SELECT * FROM mytable WHERE color=$color"); So I would modify that to read: $sql = mysql_query(

[PHP] Re: Date Function in Php

2002-05-16 Thread Baba Buehler
Vinod Palan wrote: > hi , > Do any one have date functions like that we have in asp 1) Dateadd() > 2) Datediff() > etc? There are some classes in PEAR that may do what you want, take a look at Date & Date::Calc. baba -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

[PHP] Re: [PHP-DEV] Console application with PHP

2002-05-16 Thread Markus Fischer
Hi, all is possible. I suggest taking a look at http://gtk.php.net/ and http://www.php.net/manual/en/features.commandline.php for a start. - Markus On Fri, May 17, 2002 at 12:12:20AM +0800, DoL wrote : > Hi All > > I am trying to write something similar to a server con

Re: [PHP] Making Multiple Pages

2002-05-16 Thread Kevin Stone
$query = "SELECT * FROM mytable LIMIT $i, 20"; Where 20 is the number of rows to retrieve and $i is the starting row. By incrementing $i + 20 you can do next, prev buttons, or parse the total number of rows into page links (prev - 1, 2, 3, 4, 5, 6.. 10.. 20 - next). Search www.mysql.com for mor

Re: [PHP] LDAP Search Scope / Schema Retrieval

2002-05-16 Thread Matt Rohrer
On Thu, May 16, 2002 at 09:34:16AM -0500, D Canfield wrote: > Two related questions: > > 1) Is there any work being done to support the retrieval of the LDAP > schema in PHP (similar to Perl's Net::LDAP::Schema)? Is there any other > good way to get this information into PHP? > > 2) Is there an

Re: [PHP] eregi(mail)

2002-05-16 Thread Liam Gibbs
Thanks to all who helped out with the eregi(mail) stuff. I got my problem solved, and on top of that, there were some bugs that I found in the code. Thanks again to everyone. __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yah

[PHP] Making Multiple Pages

2002-05-16 Thread Jason Soza
I have some ideas on how this should be done, but I'm at work and can't really test them, so I was thinking maybe I could run it by you all and maybe get some feedback and/or new ideas. I have a PHP/MySQL-generated page that displays image thumbnails. Currently, I have a loop that makes a tabl

Re: [PHP] Uploading JPEG's - Security Issues?

2002-05-16 Thread Andre Dubuc
Thanks Rasmus, I thought there had to be function out there that could examine the actual contents. Now the question remains, would an ereg/eregi check for html/code/commands work on a "jpg/jpeg" type file? From a brief examination of one, I note that it's not text, but code. I tried writing

Re: [PHP] uh, oh errors?

2002-05-16 Thread Robert Cummings
[EMAIL PROTECTED] wrote: > > What are some benefits to using output buffering versus just letting it > generate as it goes? Pros: - headers can be added at any time - buffer content can be post processed (gz compression) (xslt) - if an error occurs can avoid serving half a document Cons: - tr

RE: [PHP] uh, oh errors?

2002-05-16 Thread Jerome Houston
one REALLY notable advantage is: if you us ob_*() functions, instead of writing HTML pages with php tags inserted, you can write XML pages with PHP tags inserted. then after you're done, you can pass the contents of the output buffer to an XSLT processer like sablotron, THEN outputting an HTM

RE: [PHP] uh, oh errors?

2002-05-16 Thread Sysadmin
What are some benefits to using output buffering versus just letting it generate as it goes? -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 1:24 PM To: PHP-general Subject: Fw: [PHP] uh, oh errors? Don't feel bad about this. This is someth

[PHP] Gettext and PHP4.2.0?

2002-05-16 Thread Bram van Leur
Hi everyone, I've recently (for once in my life!) succesfully compiled PHP4.2.0 using the following configure command-line: './configure' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-exec-dir

Re: [PHP] Using Sessions under Win98/Apache

2002-05-16 Thread Edward Marczak
On 5/16/02 5:17 AM, "Neil Freeman" <[EMAIL PROTECTED]> wrote: > FYI... > > I'm using sessions successfully using PHP v4.1.0 on Windows NT. Hurmph. Well, the upgrade to 4.2.x did it for me under 98. I just need to check the rest of my code, though. For now, seems pretty harmless. Thanks, tho

Re: [PHP] uh, oh errors?

2002-05-16 Thread Kevin Stone
DOH! I retract that statement about Line 11.. I saw it and immediately thought you were printing out that line, clearly you're not. But the rest of my point is still valid, and Rasmus pointed out the true location of the error. Anyway glad to hear you got the problem solved so quickly. - O

Fw: [PHP] uh, oh errors?

2002-05-16 Thread Kevin Stone
Don't feel bad about this. This is something that messes a lot of people up. The browser knows where your headers end and where content begins by adding blank line between the headers and the rest of the page. ALL headers must come before any content is printed to the page. PHP will give you t

Re: [PHP] Uploading JPEG's - Security Issues?

2002-05-16 Thread Jim Winstead
Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > Are you afraid of someone embedding PHP in a .jpg file? That's not really > an issue as your web server is probably configured to only serve up PHP as > .php files. Likewise, your web server config is likely such that any .jpg > file is served up as co

Re: [PHP] uh, oh errors?

2002-05-16 Thread Jas
That worked, I had about 3 blank lines trailing my ?>. Thanks a ton! Jas "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > What is on line 6 of the db.php file? Do you have a stray carriage return > at the end of this file? > > On Thu, 16 May 2

RE: [PHP] Console application with PHP

2002-05-16 Thread Vail, Warren
PHP and Web Servers probably make a bad choice for what is essentially a real time application. PHP and web servers expect to serve up a page of essentially HTML(and Javascript, or Java Applets), then close the connection to a browser so that it can handle the requests of others, and not deal wit

RE: [PHP] Can anyone help me save img from URL?

2002-05-16 Thread Patrick Lynch
As fas as I know, the only way to do this is to give somebody instructions to right click on the file and so "Save As". Plan B is to put the GIF in a ZIP file and let it be downloaded like that. Best Regards, Patrick Lynch. Optip Ltd, Internet & Mobile Development Co. Clare, Ireland. http://www

Re: [PHP] some Javascript functions with PHP

2002-05-16 Thread Kevin Stone
The user's IP address is stored in the PHP global, $REMOTE_ADDR. Browser information can be extracted from the get_browser() function. http://www.php.net/manual/en/function.get-browser.php -Kevin - Original Message - From: "savaidis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Th

RE: [PHP] uh, oh errors?

2002-05-16 Thread Patrick Lynch
Hi Jas, I normally output can output a JaveScript document.location.href="XXX.XXX"; command Plan B is to do your processing before there is any output and then decide whether or not to do a redirect using the header() function. Best Regards, Patrick Lynch. Optip Ltd, Internet & Mobile Developm

Re: [PHP] uh, oh errors?

2002-05-16 Thread Rasmus Lerdorf
What is on line 6 of the db.php file? Do you have a stray carriage return at the end of this file? On Thu, 16 May 2002, Jas wrote: > Not sure how to resolve this, looked at php.net for the headers available > and this is the error I am recieving: > > Warning: Cannot add header information - hea

[PHP] uh, oh errors?

2002-05-16 Thread Jas
Not sure how to resolve this, looked at php.net for the headers available and this is the error I am recieving: Warning: Cannot add header information - headers already sent by (output started at /path/to/connection/script/db.php:6) in /path/to/login/checking file/auth_done.php on line 13 Here i

[PHP] Can anyone help me save img from URL?

2002-05-16 Thread Victor Polyushko
Hi, I was wondering if someone knows how to save the image from the given url http://domain.com/image.gif into a file on a local machine Any suggestion will be greatly appreciated. Thank you in advance Victor Polyushko

Re: [PHP] tag img and php

2002-05-16 Thread Maciej Przybycien
Thank you for responding to my email. I am still stuck with my problem. I am using additionally jpgraph-1.6.1. Here is the content of my try.php file: SetScale("textlin"); $graph->img->SetMargin(30,30,50,50); $graph->xaxis->SetFont(FF_FONT1,FS_BOLD); $graph->title->Set("SMT HISTOGRAMS"); // A n

[PHP] Console application with PHP

2002-05-16 Thread DoL
Hi All I am trying to write something similar to a server console display, is it a good idea to use PHP? Wondering how things like 1. server clock (similar to a clock applet) 2. server status can be displayed with PHP code? Note: I need to display the above two in a continuous fashion on the st

[PHP] some Javascript functions with PHP

2002-05-16 Thread savaidis
I use: print(''); print('document.write("Code Name: "+navigator.appCodeName+"
");'); print(''); How is possible to keep this info to a MySQL database with PHP? I think is not possible becouse PHP runs first. Also how is possible to get with PHP info like this (browser type ecc) and user's IP

Re: [PHP] Uploading JPEG's - Security Issues?

2002-05-16 Thread Rasmus Lerdorf
Are you afraid of someone embedding PHP in a .jpg file? That's not really an issue as your web server is probably configured to only serve up PHP as .php files. Likewise, your web server config is likely such that any .jpg file is served up as content-type image/jpeg and as such it really doesn'

Re: [PHP] tag img and php

2002-05-16 Thread Jim lucas
show the contents of 'try_param.php' please. Jim Lucas - Original Message - From: "Maciej Przybycien" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 15, 2002 10:38 AM Subject: [PHP] tag img and php > > Hi, > I included php file as html img: > height="240" > > and Ne

[PHP] Uploading JPEG's - Security Issues?

2002-05-16 Thread Andre Dubuc
My question will probably expose my woeful lack understanding of security breaches, but perhaps someone can enlighten me. On my site, registered members will be allowed to upload jpg/jpeg pictures. I'm concerned about possible security problems. First, is there a way to ensure that a picture (

Re: [PHP] recognising plain text files

2002-05-16 Thread Rasmus Lerdorf
The uploaded mime type is set by the browser, not by PHP. So I guess in your Netscape case it isn't sending the right type. Perhaps have a look at the 'file' UNIX-level command and use that. -Rasmus On Thu, 16 May 2002, Lee P Reilly wrote: > Hi, > > I am doing some validation on files that ar

[PHP] recognising plain text files

2002-05-16 Thread Lee P Reilly
Hi, I am doing some validation on files that are being upload. I only wish to allow users to upload files that are in *plain text* format (not neccessarily with a .txt extension). I have the following piece of code, which works fine in IE, but in Netscape Navigator: if ($file_type != "text/p

[PHP] Problems with mail() w/Win2k

2002-05-16 Thread Jared Boelens
Hey guys I recently join this list and this is my first real post to it so if I f**k something up please do beat me to death. :) I have a simple mailer script that was mailing POSTed form information to a client, this script was running on a Debian box w/Apache. This server is having hardware is

  1   2   >