Re: [PHP] session vars and frames

2002-07-01 Thread Richard Lynch
I'm registering if people are logged in. The login page is situated in >> the mainFrame. Now in my leftFrame I want to put the status (i.e. "you are logged in as .") When people are succesfully logged in I register their name as session_register('session_log

[PHP] Re: Beginner Sessions Question

2002-07-01 Thread Richard Lynch
>1. I know that you initially begin the session with the session_start() >function. Is this function required on all pages in order for the session >variables to remain globalized? Yes -- on all pages that intend to use sessions. If you have a page "in between" that has no use for session da

Re: [PHP] pop-up windows

2002-07-01 Thread Richard Lynch
In the old days, Rasmus would answer with something like: http://php.net/FAQ.php#4.17 That was back when the whole FAQ could fit in the head of a single person... :-) [Well, a single person as smart as Rasmus, anyway... :-)] This meta-thread about what to do about posters who obviously didn't d

[PHP] Re: Canadian PHP Freelancer Rates

2002-07-01 Thread Richard Lynch
>Hi, > >I was hoping that folks from the Canadian PHP community could offer me some >direction with deterring going rates for freelance PHP developers. All of >the material that I have found during my research points to US rates which >average at around $92 US an hour (see the American Institute o

[PHP] Re: PHP affecting PDF plug-in....?

2002-07-01 Thread Richard Lynch
>All... > >I have a PDF plug-in problem... > >Now before you say anything the problem doesnt exesi when I remove PHP from >the equation... > >I have a script that generates a drop-down list of ID's basically... >Clicking continue will pass the ID to a script which I use to get the >correct filen

Re: [PHP] Keeping "Secrets" in PHP Files

2002-07-01 Thread Richard Lynch
>try this for now. > >http://pobs.mywalhalla.net/ > >depending on how fancy your code is it may not work. Or you'll only have >to change a few little things. > >basically what it does is : > >for($bob=1; $bob<10; $bob++){ >echo $bob; >$sam=$bob; >} > >Converts above to something like > >f

Re: [PHP] Keeping "Secrets" in PHP Files

2002-07-01 Thread Richard Lynch
>The hosting provider could probably implement a solution... Alter the FTP >configuration to automatically set the group permission to that of the web >server when you transfer files. You wouldn't need to be in the group. >You're the owner and can modify your own files. World Read access would

Re: [PHP] Keeping "Secrets" in PHP Files

2002-07-01 Thread Richard Lynch
>I've been thinking some more about the issue of keeping PHP >source files secure in a shared hosting environment. I've now >convinced myself that there is simply no way to protect these >files, even if safe_mode is turned on, as long as other users can >have telnet (or ssh) access to the box. >

[PHP] Programmer's Browser

2002-07-01 Thread Richard Lynch
Any recommendations for a GPL (read: free) "Programmer's Browser" which will allow me to surf "normally" but cache pages and their headers and let me view the damn things? "View Source" is fine as far as it goes, but it's only half the story... I want my headers. -- Like Music? http://l-i-e.c

RE: [PHP] Passing more than one variable with alink

2002-07-01 Thread Martin Towell
the syntax is name1=val1&name2=val2&name3=val3 the separator is "&" -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 4:31 PM To: [EMAIL PROTECTED] Subject: [PHP] Passing more than one variable with alink I need to pass more than one variable

RE: [PHP] Passing more than one variable with alink

2002-07-01 Thread Sachin Keshavan
For the link to work correctly, only the first parameter should be seperated by a ?, the remaining ones should be seperated by &. For eg: http://localhost.com/sample.php?firstparam=1&secondparam=XYZ Hope this helps, Sachin -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]]

[PHP] Passing more than one variable with alink

2002-07-01 Thread Peter Goggin
I need to pass more than one variable with a link. I cannot see the syntax listed anywhere. I am using : printf ("",$catitempage,$catrange); Obviously the separators between the two variablesare incorrect. i.e. I have: ?catitempage=%s;?catrange=%s Can anyone tell me what it should be or whe

Re: [PHP] Using the AS key word in SQL Queries

2002-07-01 Thread Analysis & Solutions
On Tue, Jul 02, 2002 at 11:08:13AM +0530, Sachin Keshavan wrote: > > I am trying to execute the Query > SELECT MAX(RECORDNO) AS MAXREC FROM BOOKS; > > while($row = mysql_fetch_array($sql_result)) > { >$bookID = $row['MAXREC']; > } > > This query fails. Am I doing any thing wrong here.

[PHP] Using the AS key word in SQL Queries

2002-07-01 Thread Sachin Keshavan
Hello all, I am trying to execute the Query SELECT MAX(RECORDNO) AS MAXREC FROM BOOKS; I am trying to access the value like this while($row = mysql_fetch_array($sql_result)) { $bookID = $row['MAXREC']; } This query fails. Am I doing any thing wrong here. Thanks, Sachin. -- PHP Gene

Re: [PHP] Unable to restart httpd after upgrading PHP

2002-07-01 Thread Jason Wong
On Tuesday 02 July 2002 12:22, Robert Tan wrote: > Hi There, > > I am running a Sun Cobalt RAQ4 server. The PHP version on it is 4.0.6. > I received an error message when I restart httpd after upgrading PHP > scripting engine on my cobalt server through the patch that cobalt > provided to fixes so

Re: RE: [PHP] Updated (appending) a file

2002-07-01 Thread Chris Earle
Thanks again man, you've been a ton of help. I gotta get some sleep now! Thanks again. "Martin Towell" <[EMAIL PROTECTED]> wrote in message 6416776FCC55D511BC4E0090274EFEF508A58C@EXCHANGE">news:6416776FCC55D511BC4E0090274EFEF508A58C@EXCHANGE... > Um - yeah - sorta > depends if the script has wr

[PHP] Unable to restart httpd after upgrading PHP

2002-07-01 Thread Robert Tan
Hi There, I am running a Sun Cobalt RAQ4 server. The PHP version on it is 4.0.6. I received an error message when I restart httpd after upgrading PHP scripting engine on my cobalt server through the patch that cobalt provided to fixes some security issues that were found on prior releases of

RE: RE: [PHP] Updated (appending) a file

2002-07-01 Thread Martin Towell
Um - yeah - sorta depends if the script has write access to the directory too :) but try and see, I guess is the best option ... -Original Message- From: Chris Earle [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 4:14 PM To: [EMAIL PROTECTED] Subject: Re: RE: [PHP] Updated (appen

Re: RE: [PHP] Updated (appending) a file

2002-07-01 Thread Chris Earle
Permission denied Yep. Crap. If I let PHP create the file (delete the files as they exist now), that will give it permission (because it will have made them), right? Thanks a lot for all the help. "Martin Towell" <[EMAIL PROTECTED]> wrote in message 6416776FCC55D511BC4E0090274EFEF508A58B@EXCH

RE: RE: [PHP] Updated (appending) a file

2002-07-01 Thread Martin Towell
This should work error_reporting(E_ALL); but be prepared for all dem warnings ! :) BTW: I get an undeliverable mail to your email address when I "reply to all" :( -Original Message- From: Chris Earle [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 4:04 PM To: [EMAIL PROTECTE

Re: RE: [PHP] Updated (appending) a file

2002-07-01 Thread Chris Earle
display_errors = On; according to phpinfo(); All other error reporting is off though. But nothing is being displayed. "Chris Earle" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > The server has error reporting turned off (can I change this even though I'm >

Re: RE: [PHP] Updated (appending) a file

2002-07-01 Thread Chris Earle
The server has error reporting turned off (can I change this even though I'm not there?)... I cannot do it with the file in my base folder either. "Martin Towell" <[EMAIL PROTECTED]> wrote in message 6416776FCC55D511BC4E0090274EFEF508A58A@EXCHANGE">news:6416776FCC55D511BC4E0090274EFEF508A58A@EXC

Re: [PHP] Keeping "Secrets" in PHP Files

2002-07-01 Thread Aaron
try this for now. http://pobs.mywalhalla.net/ depending on how fancy your code is it may not work. Or you'll only have to change a few little things. basically what it does is : for($bob=1; $bob<10; $bob++){ echo $bob; $sam=$bob; } Converts above to something like for($edghr354dfga=

Re: [PHP] php & SMS (or phone contact)

2002-07-01 Thread olinux
Most cellular and paging companies provide your phone/pager with an email address. usually [EMAIL PROTECTED] check out this list of providers and their addressing: http://www.weblinkwireless.com/customerservice/how2send/index.html so just use mail() and it looks pretty sweet when your website s

RE: RE: [PHP] Updated (appending) a file

2002-07-01 Thread Martin Towell
maybe a permissions thing? do you get any errors back? if so, what error is it? try appending to a file in the same directory as index.php and see how that goes. -Original Message- From: Chris Earle [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 3:54 PM To: [EMAIL PROTECTED] Su

RE: RE: [PHP] Updated (appending) a file

2002-07-01 Thread Chris Earle
I didn't want to make a new post, but my "Reply -> Send" button makes Outlook crash (this isn't the web server! :)). More to the point: if that relative path doesn't work, and the path is right and the file does exist, what does that mean? -- if the php file is: mydomain.com/index.php -- and th

RE: [PHP] Updating (appending) a file

2002-07-01 Thread Martin Towell
if the php file is: mydomain.com/index.php and the data file is: mydomain.com/files/Names.txt then the relative path is not "\\files\\Names.txt" , it's "files\\Names.txt" HTH Martin -Original Message- From: Chris Earle [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 3:29 PM To:

[PHP] Updating (appending) a file

2002-07-01 Thread Chris Earle
I cannot figure out how to access the file and update it (which is just /files/*.txt from where I'll be accesing it -- in other words I'm accessing it from mydomain.com/index.php, but the file is mydomain.com/files/Names.txt). By update I mean append. I tried to access it with the complete loca

Re: [PHP] Re: [PHP-DB] blob versus file

2002-07-01 Thread Andy
i also noticed that the images are not cached at all. The other images comming from the FS are cached just fine. Do u think thats because of the blob? Andy "Mark" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Mon, 1 Jul 2002 14:20:30 +0200, Pierre-Al

Re: [PHP] Re: [PHP-DB] blob versus file

2002-07-01 Thread Mark
On Mon, 1 Jul 2002 14:20:30 +0200, Pierre-Alain Joye wrote: >On Mon, 1 Jul 2002 14:17:53 +0200 >"andy" <[EMAIL PROTECTED]> wrote: > >>Hi there, >> >>I am wondering if anybody has experiance in saving images to blob >>in mysql. >> >>I do save images with 1 K and 4 KB to blob fields while I used to

[PHP] Re: [PHP-DB] blob versus file

2002-07-01 Thread Andy
is the increase of the network traffic noticable? The query is pretty small just text. Do u really think this might increase the traffic? I also noticed that the image is not cached anymore. Is this true for all blobs, or do I just access them in a wron way? (I am requesting a php file in the sc

[PHP] Re: blob versus file

2002-07-01 Thread Andy
that sound verry logical. It seams that most of you are absolutly sure that saving images to the OS FS is way faster than to blob in mysql. The main reason why I am trying to do so is because I would like to seperate my application from the content. Whenever I make an update of the application I

Re: [PHP] preg help (regexp newbie) whitespace

2002-07-01 Thread Jason Wong
On Tuesday 02 July 2002 10:06, Justin French wrote: > what's the correct pattern for "one or more whitespaces" (including \n\r\t > and anything else I'm missing)? I prefer the PCRE so: \s+ > what about "zero or more whitespaces"? \s* It's all in the manual! -- Jason Wong -> Gremlins Associ

[PHP] preg help (regexp newbie) whitespace

2002-07-01 Thread Justin French
Hi all, what's the correct pattern for "one or more whitespaces" (including \n\r\t and anything else I'm missing)? what about "zero or more whitespaces"? Thanks in advance, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Globals bug??

2002-07-01 Thread troy
When I said "process" I meant "request". Sorry. Is it possible that the PHP globals are being used across requests (i.e., within the same process)? We noticed this when upgrading from a version of PHP (4.0.6?) prior to the new super-globals being added to PHP 4.1.2. The code in this case is so s

[PHP] session duration

2002-07-01 Thread Ivan Voras
Is there a way to programatically (inside a session) change session duration for the current session only? (using cookie-based sessions) ? -- - Ivan Voras - - If I knew what I was doing, it wouldn't be called "research". -- R. P. Bergman - -- PHP General Mailing List (http://w

Re: [PHP] Re: Problem with menu

2002-07-01 Thread Analysis & Solutions
On Mon, Jul 01, 2002 at 08:00:39PM -0400, Analysis & Solutions wrote: > Hi Richard: Oops. Meant to reply directly to Ricahrd. Sorry 'bout that. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info |

[PHP] session dropping data

2002-07-01 Thread dietrich
'lo, anybody ever experience this: 1. i start a session w/ session_start() 2. register some vars w/ session_register() 3. click to next page, everything cool. all vars are there, and session id is same 4. any other page, all session vars gone, but sessid is still the same. so session is persist

Re: [PHP] Re: Problem with menu

2002-07-01 Thread Analysis & Solutions
Hi Richard: Nice to have you back on the list. I've noticed your replies are not winding up back in the threads due to the Reference header not being set by Outlook. While this isn't going to cause the end of the world, it'd be nice if they were there. Enjoy, --Dan -- PHP c

RE: [PHP] How to use Session Variables

2002-07-01 Thread Johnson, Kirk
With register_globals on: 1. Put session_start() at the top of each page. 2. Initialize the variable, then call session_register(): $foo = 'bar'; session_register('foo'); 3. Do all assignments to $foo, not $HTTP_SESSION_VAR['foo'], since $foo gets written to $HTTP_SESSION_VAR['foo

[PHP] Compiling PHP with INFORMIX howto?

2002-07-01 Thread Emile Bosch
Does someone have a good guide on installing php with informix support? also i wish to know wheter it is possible to compile php with this version. ISQL 7.20 Embedded sql for C. 9.14 4GL 7.30 4GL runtime 7.20 Dynamic server 7.30 Java API1.05 Thanks in advance, Emile Bosch -- PHP General

[PHP] Re: extracting data from text file

2002-07-01 Thread Richard Lynch
>Hello , >I have a text file that looks like this. each entry is on a different >line I need to pull the data out of >it and put each line of data into its own variable > >US >State >City >Company Name >Section 2 >www.domain.com >[EMAIL PROTECTED] > >I have trend this but it does not work properly

[PHP] Re: uploading a file - here is the error message...

2002-07-01 Thread Richard Lynch
>Here is the error I'm receiving when attempting to upload a file > >Warning: Unable to create 'temp/test.txt': Permission denied in >/home/.../www/website/upload3.php on line 11 > > >..could it be that my web host isn't giving me permissions to upload >files ? > Yes. Or at least not where

[PHP] Re: Web Printing

2002-07-01 Thread Richard Lynch
>Hi all, > >Just wondering if anyone came across this "problem" before: > >When I print a document directly from my browser, it comes out with the >title on >the top right , page number of the top left, address on the bottom left and >date on the bottom right, Page Headers and Footers > >Using IE

[PHP] Re: ODBC Failures

2002-07-01 Thread Richard Lynch
>List, > My ODBC connection is failing it seems...I can run this code just >fine...odbc_connect and odbc_pconnect seem to work...the odbc_prepare >even works just fine...but as soon as I execute (with odbc_execute, >odbc_exec, or odbc_do it fails...any ideas? > > >$db = odbc_pconnect("Desire","

[PHP] Re: Help: Constants

2002-07-01 Thread Richard Lynch
>Hi, > >Maybe it's already discussed here, but PHP is generating errors of undefined >constants. These constants are defined in my scripts. Als the superglobal >$_ENV is empty. > >Can anyone tell what's wrong here? > >I'm using a W2K server, with Apache 1.3.26 and PHP 4.2.1 Check php.ini settings

[PHP] Re: register_global, need some feedback

2002-07-01 Thread Richard Lynch
>1) $GLOBALS, Where does this come from and where does this goes to? I >noticed there is no variable declaration for this, so I just know that it is >part of PHP codes, although I haven't figure out what is it part of. Every variable you assign, change, or unset, or that comes in from the outsid

[PHP] Re: mySQL time = year 2038 [HELP]

2002-07-01 Thread Richard Lynch
>Checked the archive and saw no difinitives... so... How come when I query >my clients mySQL DB and use NULL or NOW() as my default in a TIMESTAMP >record that it always comes up Jan 18, 2038? > >Is the clock not set properly, or am I misunderstanding some basic >principal of the time stamp? >

[PHP] Re: Handling of constants in strings

2002-07-01 Thread Richard Lynch
>Hi, >when reading about constants (define('MY_CONSTANT', 'my value')) >I got convinced that they are pretty usefull. > >But now it seems to me, that I can't use them inside a string: >$my_string = "This is MY_CONSTANT and I love it!"; > >but that I must take them out: >$my_string = "This is" . MY

[PHP] Re: Security in phpmyadmin

2002-07-01 Thread Richard Lynch
>Is this the place to address it? There is probably a phpMyAdmin mailing list that would be *FAR* more suitable... There might even be a PHP Security mailing list http://php.net/mailing-lists.php that would be more suitable than here (but less than the phpMyAdmin list). If you *really* think it

Re: [PHP] Populate Popup Menu from Database

2002-07-01 Thread Mike Tuller
Thanks for the tip. > From: Erik Price <[EMAIL PROTECTED]> > Date: Mon, 1 Jul 2002 17:05:39 -0400 > To: Mike Tuller <[EMAIL PROTECTED]> > Cc: php mailing list <[EMAIL PROTECTED]> > Subject: Re: [PHP] Populate Popup Menu from Database > > > On Monday, July 1, 2002, at 04:22 PM, Mike Tuller wrot

Re: [PHP] PHP and PDF

2002-07-01 Thread Richard Lynch
>Would like to see a decent example of PHP/PDF creation anyway... Depending on how you define "decent"... :-) Rasmus' trivial samples in his talks at http://conf.php.net are nice and simplistic, so you can verify that the damn thing works. These are great, IMNSHO. If you want a "real" example,

[PHP] Re: Encripted download

2002-07-01 Thread Richard Lynch
>*This message was transferred with a trial version of CommuniGate(tm) Pro* > >Hi, > >My Apache is under SSL. Everything works Ok but when the user chooses to >download a file or view a PDF document, the browser states that you are about >to leave the secure conexion, so I guess the files are tr

[PHP] Re: PHP and PDF

2002-07-01 Thread Richard Lynch
>hello everyone-- > >i'd like to know if this can be solved with php. > >i'll be creating a pdf form that'll be downloaded, filled and turned >in. >the form must have a unique NUMBER printed on it each time it is >downloaded. > >i'd like to use php to update this NUMBER (ie. counter + 1) each time

Re: [PHP] cURL in an exec()

2002-07-01 Thread Richard Lynch
>[snip] >> print($curlline); > exec($curline); > >Have you tried executing $curlline directly from a shell/command-line? This >will determine whether it is a PHP problem or a cURL problem. >[/snip] > >That was the first thing I did, and I have gone back a couple of times now

[PHP] Re: creating multidimensional arrays

2002-07-01 Thread Richard Lynch
>Hi All > >I want to create a multi dimensional arrays as below > >$result[$something]['$key_string_01] = value_01 >$result[$something]['$key_string_02] = value_02 >$result[$something]['$key_string_03] = value_03 >$result[$something]['$key_string_04] = value_04 >$result[$something][0] = value_06 >

[PHP] Re: Reading MSWORD Doc File Comments

2002-07-01 Thread Richard Lynch
>Is there a way to read the comments of a MSWord Doc file. I would like to >get a directory listing of file in a directory that are mostly MSWORD docs. >I would like to list the files with a description after each one. With HTML >files I just read the file into a string and split it just after an

[PHP] Re: Problem with menu

2002-07-01 Thread Richard Lynch
>I have a table with id, pid(parent), title and page_name(url) fields. > >The vars provided to the script are the current page's title, id and >pid(parent) You can look up the parent and in the database, so it's not horribly important that those be provided. *UNLESS* you have a heterarchy, and n

[PHP] Re: Win98, Apache, PHP Config Problem

2002-07-01 Thread Richard Lynch
>Good morning! > >Over the weekend I attempted to set up another test platform on a Win98 >laptop, running Apache as the server and MySQL as the database engine. Just >want to use it for some testing locally. No matter what I attempted I could >not get PHP to work. I followed suggestions from; > >

[PHP] Re: php install

2002-07-01 Thread Richard Lynch
>Hi, I'm trying to install PHP 4.2.1 on SuSE SLES 7.3 and I get the following >error message > >checking lex output file root... ./configure: lex: command not found >configure: error: cannot find output from lex; giving up lex is like this low-level thingie that lets PHP syntax like if/else/while

[PHP] Re: blob versus file

2002-07-01 Thread Richard Lynch
>I do save images with 1 K and 4 KB to blob fields while I used to save them >to file. It seams to me that this is much slower accessing the files. The >images take a bit (really short but absolutly noticable) to show up on the >site. Is there a way to improve the performance, and why is this happ

[PHP] Re: strip_tags

2002-07-01 Thread Richard Lynch
In article <[EMAIL PROTECTED]> , [EMAIL PROTECTED] (Bb) wrote: >I'm having a problem using strip_tags. > >When I try and run a table through strip_tags with the following vars, it >looses everything after the first cell with content in, i.e: nothing after >the first cell is returned, not even a

Re: [PHP] Re: fsockopen and HTTP/1.1???

2002-07-01 Thread Chris Shiflett
Richard Lynch wrote: >Secondly, I think it's probably just a Bad Idea (tm) to try to force HTTP to >do 2 files in one connection anyway -- It just complicates your life, and is >giving you headaches already... How much worse will it get in a year? > Actually, it's a very good idea and very well

RE: [PHP] mySQL time = year 2038 [SOLVED]

2002-07-01 Thread David Freeman
> Yep, I was using the DATE() function in PHP to convert a > TIMESTAMP from a MySQL DB query. I was getting a year of > 2038 because MySQL and PHP use different TIMESTAMP formats. > $getmyTime = mysql_query("SELECT UNIX_TIMESTAMP(timestamp_col) AS yournamehere FROM > myDBnamehere WH

[PHP] [lee@piclab.com: Re: [PHP] Re: Drop connection, keep running?]

2002-07-01 Thread Lee Daniel Crocker
> (Chris Shiflett <[EMAIL PROTECTED]>): > John Wulff wrote: > > I have never heard of someone wanting to do this, but you might want to > look into methods of executing shell commands in the background, which > seems like it should be possible. Basically, you're wanting to execute > something

RE: [PHP] mySQL time = year 2038 [SOLVED]

2002-07-01 Thread Shane
Yep, I was using the DATE() function in PHP to convert a TIMESTAMP from a MySQL DB query. I was getting a year of 2038 because MySQL and PHP use different TIMESTAMP formats. There are several FUNCTIONS that convert the two TIMESTAMPS from one to the other, (see comments in PHP manuals) but I w

[PHP] How to use Session Variables

2002-07-01 Thread Brandon
Could anybody point me to a good tutorial/howto on how to make a variable accessible to all of my PHP pages? I'm running PHP 4.0.6 with register_globals set to ON... (I cant change that). I've tried with the $HTTP_SESSION_VAR,$_SESSION, and session_register() method but just can't seem to make i

Re[5]: [PHP] PHP and PDF

2002-07-01 Thread Mirza Muharemagic
Hi Jason, yes, in the theory is possible, but not it in the real life (for fre :) ). no, just joking, thanx for the information. very usefull. Mirza [EMAIL PROTECTED] 01.07.2002 20:38 > On Tuesday 02 July 2002 00:15, Mirza Muharemagic wrote: >> Hi Gregory, >> >> u mean, u

RE: [PHP] extracting data from text file

2002-07-01 Thread Beverly Steiner
Here's one way assign each line: "; echo "state is $state"; echo "city is $city"; echo "comapny is $company"; echo "division is $division"; echo "url is $url"; echo "email is $email"; fclose($whattoread); ?> Bev -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sen

[PHP] odbc_fetch_into, broken???

2002-07-01 Thread Scott Fletcher
Hi! I seem to have problem with the odbc_fetch_into function and it seem to be broken. It skipped some columns when retrieving data from the two tables. I didn't have that problem with the previous version of PHP. I'll include the sample of the function code for your convience. Does anyone

[PHP] ODBC Failures

2002-07-01 Thread David Busby
List, My ODBC connection is failing it seems...I can run this code just fine...odbc_connect and odbc_pconnect seem to work...the odbc_prepare even works just fine...but as soon as I execute (with odbc_execute, odbc_exec, or odbc_do it fails...any ideas? "; $sql = odbc_prepare($db, "exe

Re: [PHP] extracting data from text file

2002-07-01 Thread Pushkar Pradhan
Just use file(), this is most appropriate for reading file line by line. http://www.php.net/manual/en/function.file.php > > On Monday, July 1, 2002, at 05:17 PM, [EMAIL PROTECTED] wrote: > > > I have trend this but it does not work properly > > > > $fp = @fopen(file.txt,"r"); > >

Re: [PHP] extracting data from text file

2002-07-01 Thread Erik Price
On Monday, July 1, 2002, at 05:17 PM, [EMAIL PROTECTED] wrote: > I have trend this but it does not work properly > > $fp = @fopen(file.txt,"r"); > $line = explode("\n",$fp); > $valueC = "$line[0]"; > $valueST = "$line[1]"; > @fclose($fp); What er

[PHP] extracting data from text file

2002-07-01 Thread rdkurth
Hello , I have a text file that looks like this. each entry is on a different line I need to pull the data out of it and put each line of data into its own variable US State City Company Name Section 2 www.domain.com [EMAIL PROTECTED] I have trend this but it does not work properly $fp

Re: [PHP] Populate Popup Menu from Database

2002-07-01 Thread Erik Price
On Monday, July 1, 2002, at 04:22 PM, Mike Tuller wrote: > Thanks. Here is what I did for future reference. Good. What you chose to do is exactly what I do except for one thing... : > $sql = "select department_name from Departments"; I generally grab the primary key column value as wel

Re: [PHP] Re: checking

2002-07-01 Thread Uli B
"==" (2) is for comparison while you are accidently doing assignments by "=" (1) if ($lastname="") - wrong if ($lastname=="") - better that's why u r screwed up here :-) Uli At 17:49 30.06.02 -0500, Richard Lynch wrote: >In article <03d201c21db6$7deb2110$7800a8c0@leonard> , [EMAIL PROTECTED] >(L

[PHP] str_replace() not accepting arrays?

2002-07-01 Thread Peter
Hi, In the documentation it says that str_replace() accepts an array as its subject. I have been trying to use it with a multidimensional array, but keep on getting the following error: Notice: Array to string conversion in c:\code\xml\index.php on line 85 And my arrays are flattened :-( $f

[PHP] Re: Help adding variables from MySQL query

2002-07-01 Thread Richard Lynch
>I'd like to add all values for $purchase_price that are returned, how do I >do this? >Here's what i have now. >$result = mysql_query("SELECT purchase_price FROM assets where >order_number='$order_number' ORDER BY $desc"); $total = 0; >while(list($purchase_price) = mysql_fetch_row($result)) { e

[PHP] Re: [mail] quetion

2002-07-01 Thread Richard Lynch
>What is best: >1) calling n-times the function mail() [with n = numer of emails] or >2) calling 1 time mail() and use CC >? >Or it it is the same thing? 2) is INFINITELY superior. Every call to mail() fires up a very large program. You do *NOT* want to do that more than a few times in one scri

[PHP] Re: ZIP combinaton in PHP?

2002-07-01 Thread Richard Lynch
>I realise its a longshot but is it possible to use PHP (or any other >web-based languages) to combine multiple ZIP files into a single ZIP file? >and any scripts i can download to do it. > >Any help with this is most appreciated. ;-) If you can figure out how to do it on the command line, you ca

[PHP] Re: Easier way to seperate variables?

2002-07-01 Thread Richard Lynch
>I am trying to put a variable within a print <<< END. The thing is, I >want text directly after it - which php will include in the variable >name. I have to END; and use another print $variable;. Is there an >easier way to seperate the variable? I think if you put {} around the variable, y

[PHP] Re: Getting all letters not in a string?

2002-07-01 Thread Richard Lynch
>What is the easiest way to get an array of all letters not in a string? I.e. >$array = notinstring("abc"); //returns array of: >d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z > > I think this might do it: $alphabet = 'abcdefghijklmnopqrstuvwxyz'; $abc = 'abc'; for ($i = 0; $i < strlen($abc); $i+

Re: [PHP] Populate Popup Menu from Database

2002-07-01 Thread Mike Tuller
Thanks. Here is what I did for future reference. -- Select a Department -- $department"; } ?> > From: Erik Price <[EMAIL PROTECTED]> > Date: Mon, 1 Jul 2002 09:18:12 -0400 > To: Mike Tuller <[EMAIL PROTECTED]> > Cc: php mailing list <[EMAIL PROTECTED]

RE: [PHP] Re: MySQL fetch data

2002-07-01 Thread Cal Evans
Jeff, Also, try php.weblogs.com ADODB if you absolutly MUST have all of your data in an array. I'll agree with Richard that it's not a great idea unless there is a specific need. While loops for displaying the contents of many records are much better. (IMHO, etc...) =C= * * Cal Evans * Journe

RE: [PHP] Where do I specify a DSN? v0.2

2002-07-01 Thread Jay Blanchard
What kind/version of DB? -Original Message- From: David Busby [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 2:55 PM To: php-general Subject: [PHP] Where do I specify a DSN? v0.2 List, Guess I should be more specific: Heres line four: $db = odbc_connect("someds

[PHP] Re: Generating Barcodes and printing

2002-07-01 Thread Richard Lynch
In article <[EMAIL PROTECTED]> , [EMAIL PROTECTED] (Phpcoder) wrote: >I would like to generate barcodes and have it print out the barcode >automatically from awebpage, is this possible? How? There is some C code on some web-site with "milk" in the domain name that will generate a bar-code... I

[PHP] Re: help pls!

2002-07-01 Thread Richard Lynch
In article <009201c21dd4$a1c96d80$9600a8c0@ady> , [EMAIL PROTECTED] (Adi) wrote: >how to make a changerate.php file for: > >Read a file: rate.php >Find string : 'USD' => '0.33' >Put '0.33' value in an editable textbox. I can change this value, let's say >to 0.35; >I Have an Update Button, when I

[PHP] Re: fsockopen and HTTP/1.1???

2002-07-01 Thread Richard Lynch
In article <[EMAIL PROTECTED]> , [EMAIL PROTECTED] (Alex Elderson) wrote: >open connection to webapps.hardinxveld.netflex.nl oke > > get / done > get / failt > >Closing connection to webapps.hardinxveld.netflex.nl oke > > >The problem is the "Connection: Close\n\n" header. The webserver close t

[PHP] Re: checking

2002-07-01 Thread Richard Lynch
In article <03d201c21db6$7deb2110$7800a8c0@leonard> , [EMAIL PROTECTED] (Leo) wrote: >I have a form and I don't want to insert recording with blank value. >I put: >if ($lastname="") { >$insert="no" >} >if ($insert="no"){ >do not insert; >else >insert; >} >my probleme is in some case $

[PHP] Re: MySQL fetch data

2002-07-01 Thread Richard Lynch
In article <00e001c21db3$7b1b66a0$0a01a8c0@jcowart> , [EMAIL PROTECTED] (Jefferson Cowart) wrote: >Is there any way to return all the rows returned by a mysql query with >one command. Currently I have to run through a for or while loop the >same number of times as there are rows and take that row

[PHP] Re: Accessing cookies in required files

2002-07-01 Thread Richard Lynch
In article <[EMAIL PROTECTED]> , [EMAIL PROTECTED] (Chris Morrow) wrote: >Up until now this has worked fine. But now I have a function in the >settings.inc file that tries to read the value of a cookie called >"testcookie". My problem is that the settings.inc file doesn't seem to be >able to acce

[PHP] Re: Display Records in Multiple Pages

2002-07-01 Thread Richard Lynch
In article <009a01c21da7$7c215b60$1300a8c0@redplanet> , [EMAIL PROTECTED] (Aqua) wrote: >I have 100 records in mySQL database and I need to display them in my web >page using php and html. How to display them in multiple pages? Each page >must contain 25 records. Does anyone know how to do it o

[PHP] Re: Yet another session problem, with a twist.

2002-07-01 Thread Richard Lynch
In article <[EMAIL PROTECTED]> , [EMAIL PROTECTED] (Cysec) wrote: >I have already scripted a site using PHP 4 and was at the point of uploading >it to my client's chosen server (decided to go third party) when I discover, >their server is running PHP3, launch is in five days, and I have 40+ pages

[PHP] Re: gdlib list or galleries?

2002-07-01 Thread Richard Lynch
In article <[EMAIL PROTECTED]> , [EMAIL PROTECTED] (William S.) wrote: >Is there a mailing list just dedicated to gdlib >or any places that show a gallery with examples? >I would be interested in seeing examples >of images that are complex/artistic and beyond >simple rectangles and boxes. It's a

[PHP] Re: is php free?

2002-07-01 Thread Richard Lynch
In article <[EMAIL PROTECTED]> , [EMAIL PROTECTED] (Martin Johansson) wrote: >I am planning to do a webapplication that a company is intrested to use in >their Intranet. >To my webapplication I need to use booth PHP and MySQL. >Does someone know if they really are free, even if I use them in a >w

[PHP] Re: PHP include_path

2002-07-01 Thread Richard Lynch
In article <[EMAIL PROTECTED]> , [EMAIL PROTECTED] (Tim Nields) wrote: >I am running php4.2.1. I tried to use a simple include() coommand, but the >path that it defaults to is /usr/local/lib/php. Can anyone tell me how to >change this? You might (or might not) be able to edit "php.ini" and alt

[PHP] Re: Why isn't this working?

2002-07-01 Thread Richard Lynch
In article <[EMAIL PROTECTED]> , [EMAIL PROTECTED] (Jj Harrison) wrote: >Here is my code: > >$query = "UPDATE poll_options SET votes + 1"; >mysql_query($query); > >All where conditions have were removed to try and fix the problem Dunno... Why aren't you asking the database what went wrong? :-)

[PHP] Re: Writing a GIF/JPG Image

2002-07-01 Thread Richard Lynch
In article <[EMAIL PROTECTED]> , [EMAIL PROTECTED] (Brandon) wrote: >I would like to store a jpg/gif image in a MySQL database (as a BLOB type I >guess ;p), how would I output that into an in php? You wouldn't, really. You would do something like this: Then, the PHP code in fakeoutbrowser.p

[PHP] Re: File Upload

2002-07-01 Thread Richard Lynch
In article <[EMAIL PROTECTED]> , [EMAIL PROTECTED] (Fgôk ŞôündÉö) wrote: >In php.ini, upload_max_filesize = 8MB. >When I try to upload file over 5MB, my php file didn't work correctly. >I mean post variable in the php file are lost, session variables also are >lost ... Are you 100% sure that

[PHP] Re: Incrementing a table cell

2002-07-01 Thread Richard Lynch
In article <[EMAIL PROTECTED]> , [EMAIL PROTECTED] (Jj Harrison) wrote: >what is the best way to increment a mySQL table cell? > >is there a increment function or do I need to increment it in php? Do you mean like this: update myTable set myCell = myCell + 1 where myId = 42 -- Like Music? ht

  1   2   3   >