php-general@lists.php.net

2003-03-07 Thread Leif K-Brooks
It says " We connected successfully!" for me. Is this the local copy? It's kind of hard to pinpoint the problem with no code... Karl James wrote: Leif Is there a chance you can help me with my parsing problem I have file where im trying to upload to a server to check To make sure I can get a

Re: [PHP] Mining a file for data

2003-03-07 Thread Hugh Danaher
depending on how the text file is organized, this can be an easy task or impossible. But, here goes: If a line in the text file contains all the info about the card and is organized routinely and separated by a special character ("," , ; or tab, then you should be able to do something like the fo

RE: [PHP] Tryng To Prevent Caching on IE 5-6.0

2003-03-07 Thread Bryan Lipscy
Try: header("Cache-control: private"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Tryng To Prevent Caching on IE 5-6.0

2003-03-07 Thread Kurst
Hello, I've looked for the answer to this for a while and I have no broken down for asking for help. My problem is I have a few dynamic PHP sites. And all of them seem to be doing the same problem to me no matter what or how hard I try. All my sites seem to be caching heavily on IE 5 and 6 and

php-general@lists.php.net

2003-03-07 Thread Leif K-Brooks
Not sure where you can read more, but let me try to explain it. The bitwise operators operate on a binary representation of a number. 4 is 100 in binary, 5 is 101. 5 | 4 results in 5, because the | operator sets bits set in either number. 5 & 4 results in 4, because the & operator only sets

php-general@lists.php.net

2003-03-07 Thread James Taylor
Where can I read more about this? I'm not sure that I understand why 4 & 4 == 4. -Original Message- From: Greg Beaver [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 11:04 PM To: [EMAIL PROTECTED]; James Taylor Subject: [PHP] Re: Difference between & && Hi James, & is a bit-wi

[PHP] mysql connect to database problem

2003-03-07 Thread Karl James
Is there anyone online line that I Can chat with realtime on MSN or IRC Cause im having a problem where my stuff will Work locally but when I upload the files to the webserver They don't work at all. And im pretty sure I uploaded to the write directory And are using the right usernames and passw

[PHP] Session hanling & session disabled

2003-03-07 Thread Jacques Jocelyn
Hi all, Since the upgrade to php 4.3 I have several issue with my session handling and my URL. First of all I currently use the following code : this allows me to have my URL in this format : http://domain.tld/nav.php/page1/SID/abc123 instead of http://domain.tld/nav.php?page=page1&SID=abc123 Th

[PHP] RE: Access

2003-03-07 Thread Uttam
Not yet. And if there ever will it can not be odbc_connect(), may be something like access_open()? regds, -Original Message- From: Kiswa [mailto:[EMAIL PROTECTED] Sent: Saturday, March 08, 2003 01:03 To: [EMAIL PROTECTED] Subject: Access Hi. Is their anyway to connect to a Access Db us

php-general Digest 8 Mar 2003 06:29:07 -0000 Issue 1925

2003-03-07 Thread php-general-digest-help
php-general Digest 8 Mar 2003 06:29:07 - Issue 1925 Topics (messages 138671 through 138724): Re: fopen/fgets 138671 by: Bryan Koschmann - GKT Re: MySQL Alias and PHP 138672 by: Charles Kline 138676 by: Jim Lucas 138700 by: Charles Kline 138704 by: Bar

php-general@lists.php.net

2003-03-07 Thread Greg Beaver
Hi James, & is a bit-wise AND. && is a logical AND. The bitwise AND will return a number, the logical AND will return true or false boolean values. It's a subtle distinction, but important. 4 & 4 == 4 4 && 4 == true == 1 Regards, Greg -- phpDocumentor http://www.phpdoc.org James Taylor wrot

php-general@lists.php.net

2003-03-07 Thread Leo Spalteholz
On March 7, 2003 08:54 pm, James Taylor wrote: > Ok, this may have already been posted to the list already, but the > archives don't seem to like the & and && characters. > > I'm running into some code that looks like this: > > > Define('INPUT', 2); > > if($search->level & INPUT) $tmp.= $search->

[PHP] Php +Xml?

2003-03-07 Thread Dhaval Desai
Hello people, I want to start using Xml with php. How do I install xml on Apache with Php? I am running redhat 7.2,Apache 1.3.12 and php latest version. How do I install xml? I am totally new to Xmland want to start somewhere... -Dhaval

Re: [PHP] Executing PHP code in a database

2003-03-07 Thread Leo Spalteholz
On March 7, 2003 09:15 pm, Leo Spalteholz wrote: > Hi, > I have a table that stores all the "boxes" that my website will > display on the sides. So far the content is simply stored in a > text field and then substituted for the box body. However this way > I can't have any php code in the boxes..

[PHP] Executing PHP code in a database

2003-03-07 Thread Leo Spalteholz
Hi, I have a table that stores all the "boxes" that my website will display on the sides. So far the content is simply stored in a text field and then substituted for the box body. However this way I can't have any php code in the boxes... What I thought I could do is have another field that

php-general@lists.php.net

2003-03-07 Thread James Taylor
Ok, this may have already been posted to the list already, but the archives don't seem to like the & and && characters. I'm running into some code that looks like this: Define('INPUT', 2); if($search->level & INPUT) $tmp.= $search->input(); Ok, what's the & mean? As far as I could tell from

[PHP] $PHPSESSID

2003-03-07 Thread Liam Gibbs
First of all, thanks all who helped with the min and max functions (that works) and the dollar sign bit (which also works). Kudos. Couldn't have done it without y'all! Here's the newest brain teaser: I have cookies disabled (well, I have IE set to the highest security mode, where it disables coo

[PHP] Bizarre gethostbyname() problem

2003-03-07 Thread Brad Hubbard
If I run the following code from the command line ("php -q socktest.php") it works fine. If I try to run it through a browser gethostbyname fails (prints unchanged host name). What gives? Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

[PHP] Re: PHP and DB2 on AS400

2003-03-07 Thread Alejandro Trujillo J.
I never do that, but, you can do it with the ODBC that is supported in Windows PHP version, that is my idea for you. -- Alejandro Trujillo J. Cube Systems LTDA. web : csltda.com Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- PHP General Mailing List (http://www.php.

[PHP] Your script possibly relies on a session side-effect which existed until PHP 4.2.3

2003-03-07 Thread chris
We've been having a nightmare of a time with this IIS machine that was recently upgraded to 4.3.1 from 4.2.3. Of course, using google to find out what the error means only brings up other sites that have the message displayed... Warning: Unknown(): Your script possibly relies on a session side

[PHP] screenshot of an mpeg frame

2003-03-07 Thread Dan Rossi
hi there i was wondering if its ever possible to get a screenshot of an mpeg frame giving it a position and maybe optmisize it with de-interlacing to a jpeg using gd ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mining a file for data

2003-03-07 Thread John Wulff
I'm just learning PHP so please excuse my ignorance. I'm trying to extract the data from a simply formatted text file via a simple PHP script. The goal of this project is to take Magic the Gathering spoiler lists and dump them into a MySQL database. I've got plenty of experience with MySQL but n

Re: [PHP] header function

2003-03-07 Thread Jim Lucas
if you put this at the very to of the page, I am guessing then that you haven't ran session_start() ?? if you are trying to access a value stored in a session variable, you need to initialize the session first, then access the variable. Jim - Original Message - From: "Barry Gould" <[EMAI

Re: [PHP] Problem

2003-03-07 Thread Jason Sheets
Make sure the link is created properly, if it works at home then you know your code works in at least one place. Find out what version of PHP they have running and any other differences between the machine, make sure they created the link properly. Really without more information there isn't much

Re: [PHP] how to ssl on php

2003-03-07 Thread Jason Sheets
If you have ssl enabled in apache you can access any of your scripts over ssl, if you want to do ssl related stuff (like generate certificates) take a look at http://www.php.net/ssl Jason On Thu, 2003-03-06 at 19:42, Luis A wrote: > how i can make ssl on php4 ??? -- Jason Sheets <[EMAIL PROTECTED

[PHP] Re: response.redirect

2003-03-07 Thread Setec Astronomy
Christopher Myatt wrote: > is there any way to do a *response.redirect* call like in asp from a > php script? PHP Manual => header function http://www.php.net/manual/it/function.header.php Es. header("Location: http://www.yoursite.com/desturl.php";); -- PHP General Mailing List (http://www.p

RE: [PHP] response.redirect

2003-03-07 Thread Barajas, Arturo
With header(): header("Location: " . $redirect_to); -- Un gran saludo/Big regards... Arturo Barajas, IT/Systems PPG MX (SJDR) (427) 271-9918, x448 > -Original Message- > From: Christopher Myatt [mailto:[EMAIL PROTECTED] > Sent: Viernes, 07 de Marzo de 2003 05:50 p.m. > To: [EMAIL PR

RE: [PHP] MySQL Alias and PHP

2003-03-07 Thread Barajas, Arturo
There are two ways, Either have a "null" record on the area names, with a 0 as ID, or use a LEFT JOIN. The LEFT JOIN clause permits you to have a linked table, and if it doesn't find a match, it returns a NULL. SELECT tbl_1.area_1, areas1.area_name, tbl_1.area_2,

[PHP] response.redirect

2003-03-07 Thread Christopher Myatt
is there any way to do a *response.redirect* call like in asp from a php script? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL Alias and PHP

2003-03-07 Thread Charles Kline
Wow. That is ALMOST it. The only thing is it does not return the record with a 0 in tbl_1.area_2 - can you think of a workaround? Thanks for the help, Charles On Friday, March 7, 2003, at 06:39 PM, Barajas, Arturo wrote: Let's see: SELECT tbl_1.area_1, areas1.area_name,

RE: [PHP] MySQL Alias and PHP

2003-03-07 Thread Barajas, Arturo
Let's see: SELECT tbl_1.area_1, areas1.area_name, tbl_1.area_2, areas2.area_name FROM tbl_1 INNER JOIN tbl_2 areas1 ON tbl_1.area_1 = areas1.id INNER JOIN tbl_2 areas2 ON tbl_1.area_2 = areas2.id Maybe if you tinker a little

[PHP] header function

2003-03-07 Thread Barry Gould
I am having a hard time with the header("Location:") function inside an include file with PHP 4.3.1 (Linux, running as a module w/ Apache 1.3.27). At the VERY TOP of my php page, I have: logincheck.php contains exactly: However, if this "agent_id" is not set, I just get a blank page with html

RE: [PHP] Re: Forcing page refresh with http headers?

2003-03-07 Thread Brendon Gearin
Can you use some kind of random url? eg ?cachebuster=url encode the date and time here its what i do to bust cache. -Original Message- From: Daniel Joyce [mailto:[EMAIL PROTECTED] Sent: Saturday, March 08, 2003 7:18 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Forcing page refresh with ht

RE: [PHP] Running PHP 4 & PHP 5 Simultaneously

2003-03-07 Thread Dan Rossi
if u read my previous post i have another instance of apache running with 5 under that so apache first server is running on port 1023 and apache second server is running on port 1024 -Original Message- From: Jason Lange [mailto:[EMAIL PROTECTED] Sent: Saturday, March 08, 2003 5:18 AM To: [

Re: [PHP] MySQL Alias and PHP

2003-03-07 Thread Charles Kline
Thanks for all the suggestions, I have tried all and more and still can't get this quite right. If there is a better forum for these question, please point me to it and I will take this somewhat off topic thread elsewhere. My table structure is like so: tbl_1 idarea_1area_2 1

Re: [PHP] Problem with copy (maybe a bug ?)

2003-03-07 Thread Arthur Chereau
On Fri, 2003-03-07 at 22:36, Marek Kilimajer wrote: > Is the safe mode on? No, it's off. I need it to be off to get the username/password from http authentication. > Arthur Chereau wrote: > > >Hi, > > > >I use PHP 4.3.1 with apache 2.0.44 and php.ini from php.ini-recommended. > > > >It seems tha

[PHP] PHP and DB2 on AS400

2003-03-07 Thread Sridhar Moparthy
Hi, Is it possible to access(run SQL queries on) DB2 database in AS400 from PHP on Windows/Unix? If so, how? Could you please advise some positive and negative ( if any) to work with DB2 and PHP? Thank You in Advance, Sridhar Moparthy

Re: [PHP] Problem with copy (maybe a bug ?)

2003-03-07 Thread Marek Kilimajer
Is the safe mode on? Arthur Chereau wrote: Hi, I use PHP 4.3.1 with apache 2.0.44 and php.ini from php.ini-recommended. It seems that copy() doesn't work. Permissions are correct, apache can read the source file and write to the destination directory. But I get the following error message when

[PHP] Re: Forcing page refresh with http headers?

2003-03-07 Thread Daniel Joyce
Daniel Joyce wrote: I've used the HTTP Location, Expire, and Refresh headers to no effect. What's the magic order to 1) Refer a browser to a new location 2) Ensure that the location is refreshed? I want to avoid using tags, as this complicates things in the system I am designing -Dani

Re: [PHP] require_once adds a "1"

2003-03-07 Thread Gary
Ernest E Vogelsinger wrote: > At 20:19 07.03.2003, Gary said: > Rewrite this to just > require_once('topten.php'); Thanx Ernest! that does the trick Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem with copy (maybe a bug ?)

2003-03-07 Thread Arthur Chereau
Hi, I use PHP 4.3.1 with apache 2.0.44 and php.ini from php.ini-recommended. It seems that copy() doesn't work. Permissions are correct, apache can read the source file and write to the destination directory. But I get the following error message when I use copy: Warning: copy() [function.copy]

Re: [PHP] Screen

2003-03-07 Thread Florin Dumitrescu
This is a client matter, so PHP can't help you. Look into some JavaScript documentation for 'screen.width' & 'screen.height'. HTH, Florin. On Fri, 7 Mar 2003 21:32:58 +0100 "Kiswa" <[EMAIL PROTECTED]> wrote: > Hod do i get the with and hight of the users screen and then put it > into a variabl

[PHP] Screen

2003-03-07 Thread Kiswa
Hod do i get the with and hight of the users screen and then put it into a variable? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Global VARS.

2003-03-07 Thread Vincent M.
Hello, To get ride of magic_quotes I do: function no_magicquotes() { global $HTTP_GET_VARS ; global $HTTP_POST_VARS ; global $HTTP_COOKIE_VARS ; if (get_magic_quotes_gpc()) { // Overrides GPC variables for (reset($HTTP_GET_VARS); list($k, $v) = each($HTTP_GET_VARS); ) $$k = stripsl

Re: [PHP] Displaying few words from record in mySQL

2003-03-07 Thread Rahul.Brenda
Kevin, Your program certainly makes very good sense to me. However, 2 things i will need to ask you.. is that, let's say i decide i want the first 4 words from the record displayed.. for all the 4 rows i'm displaying.. where do i define that in your program? And secondly, how do i make this progr

[PHP] PERL/PHP, MSSQL, Unix AIX

2003-03-07 Thread Poon, Kelvin (Infomart)
Hi, I got a little project and I need to come up with a solution on how to finish it and was hoping if you guys can give me any ideas. I have a PERL script on a Unix AIX machine that checks for incoming update of data. Specificly what it does is, when it runs, it will look at the corresponding d

Re: [PHP] populating textarea with data

2003-03-07 Thread Hugh Danaher
get your field info from a mysql search then do: print "".stripslashes($array_result['field']).""; Hope this helps, Hugh - Original Message - From: "Mirco Ellis" <[EMAIL PROTECTED]> To: "Php-General (E-mail)" <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 6:27 AM Subject: [PHP] populat

Re: [PHP] Min and max of array

2003-03-07 Thread Kevin Stone
- Original Message - From: "Liam Gibbs" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 12:24 PM Subject: Re: [PHP] Min and max of array > >you can sort it and get the values. > > I would, but I need the array in the same order. I can't sort it. > > >

[PHP] Problem

2003-03-07 Thread Kiswa
Ok here is the problem. At home i run an Apache server with php4 and the server its supposed to be run on is NT5 and iis with php4 The site is run on an access db through ODBC. It works fine at home where i have a system link to the db. On the iis server the admin created the same link but the da

Re: [PHP] test for rtf

2003-03-07 Thread Brady Hegberg
You could always open it and see if the first few characters are "{\rtf1". Brady > Is there any way to test a file to confirm it is an RTF file? > > I'm thinking along the lines of how we can test for an image with > getimagesize(). > > kind regards, > > bill > -- PHP General Mailing List

Re: [PHP] Min and max of array

2003-03-07 Thread Jim Lucas
make a copy of the original array and sort that, when you find it correct key, use that to refer to the correct value in the original array. Jim - Original Message - From: "Liam Gibbs" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 11:24 AM Subject: Re:

[PHP] Access

2003-03-07 Thread Kiswa
Hi. Is their anyway to connect to a Access Db using only the filesystem like $connect = odbc_connect("\Db\Webdb.mdb", "nobody", "nobody"); thus pointing directly to the file not using drivers??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] Min and max of array

2003-03-07 Thread Liam Gibbs
>you can sort it and get the values. I would, but I need the array in the same order. I can't sort it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] require_once adds a "1"

2003-03-07 Thread Ernest E Vogelsinger
At 20:19 07.03.2003, Gary said: [snip] >Thanks for your response James! >but still I must be doing something wrong the "1" is a persistent little >bugger. Have you any tips on how to rewrite: > >echo @ require_once("topten.php"); > ?> >using the ob_methods? -

Re: [PHP] require_once adds a "1"

2003-03-07 Thread Gary
Thanks for your response James! but still I must be doing something wrong the "1" is a persistent little bugger. Have you any tips on how to rewrite: using the ob_methods? Again thanx for your response Gary James Holden wrote: > The '1' is received simply because your requirement clause echoed t

Re: [PHP] Min and max of array

2003-03-07 Thread Kevin Stone
- Original Message - From: "Liam Gibbs" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 12:07 PM Subject: [PHP] Min and max of array Is there a way to find the minimum and maximum values of an array? min() and max() don't take arrays.

Re: [PHP] Displaying few words from record in mySQL

2003-03-07 Thread Kevin Stone
- Original Message - From: "Rahul.Brenda" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 11:22 AM Subject: [PHP] Displaying few words from record in mySQL > Glory & Supreme Power > > What i'm looking to do is.. i want to display only the > first few words of the

[PHP] Min and max of array

2003-03-07 Thread Liam Gibbs
Is there a way to find the minimum and maximum values of an array? min() and max() don't take arrays.

Re: [PHP] MySQL Alias and PHP

2003-03-07 Thread Jim Lucas
Then the information in the DB is the same. Jim - Original Message - From: "Charles Kline" <[EMAIL PROTECTED]> To: "Rich Gray" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 10:03 AM Subject: Re: [PHP] MySQL Alias and PHP Thanks for the help. Almost there. Here

[PHP] Re: Checking for Null Variables

2003-03-07 Thread Christopher J. Crane
isset is the function I was looking for. I could not remember what it was. Thank you. "Bobby Patel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > you can look at isset() and empty(). If you retrieve the query result with > Mysql association (ie. $field=mysql_fetch_array($resource, M

[PHP] Displaying few words from record in mySQL

2003-03-07 Thread Rahul.Brenda
Glory & Supreme Power What i'm looking to do is.. i want to display only the first few words of the record in my mySQL database.. For example.. i have a table with a field "title".. and let's say my last record has the value in title field as "This is going to be really cool" What i want to

[PHP] Running PHP 4 & PHP 5 Simultaneously

2003-03-07 Thread Jason Lange
Greetings! I was wondering if it is possible to run both PHP 4 and PHP 5 simultaneously under Apache 2.0.43 on Windows XP Home. I currently have PHP 4.3.0 (SAPI) running successfully under it, but would like to add PHP 5-dev for experimenting. What I'd like to do is allow PHP 4 files to have a

Re: [PHP] MySQL Alias and PHP

2003-03-07 Thread Charles Kline
Thanks for the help. Almost there. Here is what I have: SELECT x.id, x.headline, x.description, a.area area_a, b.area area_b FROM tbl_funding x, tbl_dra a, tbl_dra b GROUP BY x.id LIMIT 0 , 30 The problem is that $array[area_a] and $array[area_b] display the same info. On Friday, March 7, 2

Re: [PHP] Re: fopen/fgets

2003-03-07 Thread Bryan Koschmann - GKT
Thanks.. I feel stupid, I wasn't paying attention. *sigh* seems to work now :) Bryan On Fri, 7 Mar 2003, Adrian Ciutureanu wrote: |you close the input file in while loop ( fclose($fp); ) | |"Bryan Koschmann - Gkt" <[EMAIL PROTECTED]> wrote in message |news:[EMAIL PROTECTED] |> Can someon

Re: [PHP] Tom Woody [PHP] how to ssl on php

2003-03-07 Thread Luis A
pal how can i find that modules i dont have that modules LoadModule ssl_module modules/ApacheModuleSSL.dll LoadModule ssl_module modules/ApacheModuleSSL.so LoadModule ssl_module modules/mod_ssl.so im using Apache/1.3.26 (Win32) PHP/4.3.0 i dont have internet access i donwload that

[PHP] Forcing page refresh with http headers?

2003-03-07 Thread Daniel Joyce
I've used the HTTP Location, Expire, and Refresh headers to no effect. What's the magic order to 1) Refer a browser to a new location 2) Ensure that the location is refreshed? I want to avoid using tags, as this complicates things in the system I am designing -Daniel -- PHP General M

[Fwd: Re: [PHP] Checking for Null Variables]

2003-03-07 Thread James Holden
quick way: if (!$field["name"]){ } else {} elegant ways (there will be many): if (empty($field["name"])){ // null or 0 } else {} if (is_null($field["name"])){ // null } else {} is_scalar() // string is_integer() // integer is_float() // float etc etc etc Christopher J. Crane wrote: How do I

[Fwd: Re: [PHP] error while reading google-search-results]

2003-03-07 Thread James Holden
Welcome to a mine field of problems :-) 1. The url you have entered is invalid. Thats a good first check to make usually. Try /search?q=test to get that bit sorted. 2. Google prevents known useragents from accessing it's content as it believes you are acting as a spider or a search engine s

[PHP] Re: Checking for Null Variables

2003-03-07 Thread Bobby Patel
you can look at isset() and empty(). If you retrieve the query result with Mysql association (ie. $field=mysql_fetch_array($resource, MYSQL_ASSOC), then even the field has a blank value, there will be a blank variable created ($field["Name"] is created but with no value)), however if you grab the r

Re: [PHP] Checking for Null Variables

2003-03-07 Thread Florin Dumitrescu
Check out http://php.net/empty HTH, Florin. On Fri, 7 Mar 2003 12:24:29 -0500 "Christopher J. Crane" <[EMAIL PROTECTED]> wrote: > How do I check if a variable is blank or not. I am returning data from > a MySQL database and if a field is empty I would like to do something > different. > > I tr

[PHP] Checking for Null Variables

2003-03-07 Thread Christopher J. Crane
How do I check if a variable is blank or not. I am returning data from a MySQL database and if a field is empty I would like to do something different. I tried if($field["Name"] == "") { do this } else { do this } It does not work right. Actually, at one point, it was working in the exact opposit

Re: [PHP] require_once adds a "1"

2003-03-07 Thread James Holden
The '1' is received simply because your requirement clause echoed the result to the page. include, require and include_once all return boolean results of 1 or 0 which indicates a successful loading of said include. If you want to suppress the output of an include use ob_ methods which prevent

Re: [PHP] Dollar signs in values

2003-03-07 Thread Jim Lucas
How are you including the file in question? Jim - Original Message - From: "Liam Gibbs" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 9:58 PM Subject: [PHP] Dollar signs in values How is it I can properly get PHP to represent dollar signs when putt

[PHP] Re: require_once adds a "1"

2003-03-07 Thread Gary
Thank you for your replies they are appreciated, I've tried a few things in response to your answers but all I can get is either "1" by it self or no include. Ernest is correct in assuming there is code in the included file it is as follows perhaps you can see my mistake? Gary

[PHP] serial interface

2003-03-07 Thread Simon Bauer
Hello! I have problems if i want to communicate with my serial interface. someone told me to try with the COM functions, but i didn't find any examples in the internet. i hope someone can help me! thanks simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

[PHP] Configure with register_globals on

2003-03-07 Thread Mike Tuller
I am running OS X 10.2 and am trying to work with PHP and Adobe GoLive. GoLive tells me that I don't have PHP running, which I do, and on Adobe's site someone said that register_globals needs to be on. I know that this is not something that should be done, but I want to see if this is the probl

Re: [PHP] test for rtf

2003-03-07 Thread Radek Zajkowski
IF this data is being uploaded via form you should look into $_FILES array, in particular $_FILES["userfilename"]["type"]; R> On 3/7/03 11:33 AM, "Andrew Brampton" <[EMAIL PROTECTED]> wrote: > Not to sure on the RTF file format, but checking the first few letters might > help > Quickly opening a

Re: [PHP] Making a true statement false.

2003-03-07 Thread ed
Thanks for all the help. I was just placing the ! in the wrong place. Thanks again, Ed On Fri, 7 Mar 2003, Greg Beaver wrote: > > > Mincu Alexandru wrote: > > On Fri, 2003-03-07 at 18:16, [EMAIL PROTECTED] wrote: > > > >>Whenever I query a database with php I've always used the following

Re: [PHP] Making a true statement false.

2003-03-07 Thread Greg Beaver
Mincu Alexandru wrote: On Fri, 2003-03-07 at 18:16, [EMAIL PROTECTED] wrote: Whenever I query a database with php I've always used the following code as a result. this way: if (!$row = mysql_fetch_array($result)) { do something } else { do seomthing else } It is simpler to do this: if ($row =

Re: [PHP] javascript

2003-03-07 Thread Jim Lucas
Plus, what if their was a textarea that you can't reload from the process page because the amount of data was greater then the max limit of the GET protocol? Then you would loose all that data. - Original Message - From: "David Miller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Fr

Re: [PHP] test for rtf

2003-03-07 Thread Andrew Brampton
Not to sure on the RTF file format, but checking the first few letters might help Quickly opening a RTF file I see that they start with {\rtf Maybe look for that. Andrew - Original Message - From: "bill" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 4:22 PM Subje

Re: [PHP] require_once adds a "1"

2003-03-07 Thread Ernest E Vogelsinger
At 17:28 07.03.2003, Gary spoke out and said: [snip] >Hi >I've included the following in a php document: >echo @ require_once("anyfile.php") >> >and it works exactly as I expect except at the end of the included document >theres a single "1" displayed. I've n

Re: [PHP] require_once adds a "1"

2003-03-07 Thread Mincu Alexandru
On Fri, 2003-03-07 at 18:28, Gary wrote: > Hi > I've included the following in a php document: > echo @ require_once("anyfile.php") > > use only if you use echo require_once("somefile.php"); it will include the file and then echo 1 witch is the return value of require_once; > and it works exact

Re: [PHP] Making a true statement false.

2003-03-07 Thread Mincu Alexandru
On Fri, 2003-03-07 at 18:16, [EMAIL PROTECTED] wrote: > Whenever I query a database with php I've always used the following code > as a result. > this way: if (!$row = mysql_fetch_array($result)) { do something } else { do seomthing else } > This method will persuades you to take action on some

[PHP] require_once adds a "1"

2003-03-07 Thread Gary
Hi I've included the following in a php document: and it works exactly as I expect except at the end of the included document theres a single "1" displayed. I've noticed also that if I include a document in the included document the end result will be the document I want exactly as I want it with

[PHP] test for rtf

2003-03-07 Thread bill
Is there any way to test a file to confirm it is an RTF file? I'm thinking along the lines of how we can test for an image with getimagesize(). kind regards, bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Making a true statement false.

2003-03-07 Thread ed
Whenever I query a database with php I've always used the following code as a result. if ($row = mysql_fetch_array($result)) { do something } else { do seomthing else } This method will persuades you to take action on something true first then false. How would I write it so it would assume fa

RE: [PHP] MySQL Alias and PHP

2003-03-07 Thread Rich Gray
> Hi all, > > I have this query: > > SELECT a.area_name, b.area_name FROM tbl_1 x, tbl_2 a, tbl_2 b > WHERE x.area_1 = a.id > AND x.area_2 = b.id > > I am using PEAR DB to get my results as an ASSOC ARRAY. How do I echo > the values for a.id and b.id? > > Thnks > Charles > I presume you mean area_

[PHP] safe_mode not working with php-4.3.1

2003-03-07 Thread Stephen Grier
Hi all, Has anyone noticed safe_mode not working correctly with php-4.3.1? Until recently we have been running php-4.2.3 with safe_mode enabled to host a multi-user public web server. Having upgraded to php-4.3.1 I noticed that scripts can now access files on the file system owned by a different

[PHP] why is iconv not working as expected?

2003-03-07 Thread Fil
Hi there, I'm puzzled by the iconv() call from php. When I test it with cyrillic text, in the utf-8 or windows-1251 charsets, or when I try with iranian text, the following php call brings me only question marks "???". What I don't understand is that lynx parses those same texts very well, a

[PHP] MySQL Alias and PHP

2003-03-07 Thread Charles Kline
Hi all, I have this query: SELECT a.area_name, b.area_name FROM tbl_1 x, tbl_2 a, tbl_2 b WHERE x.area_1 = a.id AND x.area_2 = b.id I am using PEAR DB to get my results as an ASSOC ARRAY. How do I echo the values for a.id and b.id? Thnks Charles -- PHP General Mailing List (http://www.php.net/)

[PHP] error while reading google-search-results

2003-03-07 Thread Jens Lehmann
For reading in and displaying a file $uri I use this short script: http://www.google.de?q=test'; echo implode('',file($uri)); ?> Of course this works well for almost every website, but I have problems reading in the results of google (for instance the URI above). The error message I get is: [07

Re: [PHP] javascript

2003-03-07 Thread David Miller
You might be checking it 6 or 8 times if the user can't get all the fields filled in correctly. Creates a lot of traffic that isn't necessary between server and client. If javascript isn't enabled, there isn't a choice but if it is then the client side can prompt the 6 or 8 times until the user

Re: [PHP] Stupid Question

2003-03-07 Thread Liam Gibbs
> How do you make a command not return a warning... I thought it was the > @ sign, but i think i'm wrong, and everything i've tried hasn't worked, > i want this for a switch command if that matters. It's the @ sign. Put it right before the command, as in @fopen(). Show us the line that is giving y

[PHP] Tom Woody Re: [PHP] how to ssl on php

2003-03-07 Thread Luis A
but how can i do that ?? hrere a set the ssl may you please guive to me a hand with that ??? i using apache to win32 - Original Message - From: "Tom Woody" <[EMAIL PROTECTED]> To: "Luis A" <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 11:02 AM Subject: Re: [PHP] how to ssl on

[PHP] Stupid Question

2003-03-07 Thread Eric Conrad
How do you make a command not return a warning... I thought it was the @ sign, but i think i'm wrong, and everything i've tried hasn't worked, i want this for a switch command if that matters. -Eric Conrad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] rates for differents date?

2003-03-07 Thread Mincu Alexandru
On Fri, 2003-03-07 at 00:57, Shaine Gordon wrote: > hey guys > > ok question: 7days in a week. day 1-2 costs $10, > day 3-5 cost $15, > day 4-7 costs $10. ary you sure the line above is right ... could you explain the way that you want the cost to be added ... What happens in day 4 or 5? What is t

Re: [PHP] attaching php-action to form-button

2003-03-07 Thread Mincu Alexandru
On Fri, 2003-03-07 at 14:19, Ernest E Vogelsinger wrote: > At 12:59 07.03.2003, Michiel van Heusden said: > [snip] > >I have some variables defined which i'm sending through get > > > > > >// input's etc > > > > > >now I have $var1 defined in my PHP and I wan

Re: [PHP] javascript

2003-03-07 Thread Marek Kilimajer
Cranky Kong wrote: Yes but if the fields are well filled, you will check all 2 times, the first time on the client side to know that the fields are filled. And a second time on server side to check the data before inserting them in a DB for examples... So why make 2 tests, if only one is good. a

[PHP] how to ssl on php

2003-03-07 Thread Luis A
how i can make ssl on php4 ???

  1   2   >