[PHP] Warning: Cannot send session cookie

2001-12-26 Thread David Jackson
Greetings -- PHP + MySQL + sessions? I'm trying use the script( and html page) to below to set session variables, but keep getting the follow errors: NOTE: I seen several posting re: using $HTTP_SESSION_VAR is another case where that would apply? Thanks in advance, David Jackson

Re: [PHP] Exec as user

2001-12-27 Thread David Jackson
Charles --- As a general run on an Unix server httpd is run as user and group nobody. I have been looking through the docs and found no help on either finding which user the EXEC'ed commands run as, or how to specify which user they should run as. I tried exec, system, and passthru running

Re: [PHP] Create a table with more than 1 column

2001-12-27 Thread David Jackson
), you could use a simple shell script and run it as a cron job. Hope this helps, David Jackson Hi list, I am in a big trouble. My deadline is coming and I couldn't solve my problem yet! I have this script that outputs a table that can be seen at http://www.celebnet.com.br/abc.php

[PHP] FOLLOW UP:[PHP] Warning: Cannot send session cookie

2001-12-27 Thread David Jackson
aren't added? Scripts: login.php and sales.php. Thanks for your time and knowledge, David Jackson - login.php --- ?php // start session session_start(); session_register(Uid); session_register(Umid); // Connect to db include(/home/sites/www.pickledbeans.com/web/connect.php); // insert

[PHP] RESOLVED(maybe):Warning: Cannot send session cookie

2001-12-27 Thread David Jackson
All -- It appears that the problem was a table design problems, my primary index wasn't set to auto-increment? So I was trying to insert records with duplicate keys !! This of course leads to another question, how do I return SQL error messages to the browser? Thanks, David -- -- PHP

Re: [PHP] Session troubles

2001-12-29 Thread David Jackson
Sean -- Don't know if this help but here's what I just worked for me. What ver. of PHP are you using? It seem to me that 3.x.x needs PHPLIB: http://sourceforge.net/projects/phplib to handle sessions? -- David Jackson --- sean.php --- ?php include(seaninc.php); ? --- seaninc.php

Re: [PHP] Session troubles

2001-12-29 Thread David Jackson
Sean -- Do you get the same errors, with Netscape 4.x? On 12-29 12:56, David Jackson wrote: Sean -- Don't know if this help but here's what I just worked for me. What ver. of PHP are you using? It seem to me that 3.x.x needs PHPLIB: http://sourceforge.net/projects/phplib to handle

Re: [PHP] Session troubles

2001-12-29 Thread David Jackson
Sean -- Give the attached scripts a shot, a post the results. Note: Xitami(server+WinMe) + IE5.5 or Mozilla 9.7 works fine but with Netscape-4.9 it returns var names? But when served from Unix/Linux and Apache all 3 work as expected !! Anywhy give them shot. -- David --- form.html --- ?xml

Re: [PHP] Templating solutions?

2001-12-29 Thread David Jackson
Lauri -- You might want to take a look at: http://www.thewebmasters.net/php/ there's a tutorial located here: http://www.devshed.com/Server_Side/PHP/PHPFastTemplate/page1.html -- David Hi there! During the last two weeks or so, I've been bugged by a question deep inside me. It's about

Re: [PHP] Templating solutions?

2001-12-29 Thread David Jackson
Woops -- first link is to the site for PHPFastTemplate. Lauri -- You might want to take a look at: http://www.thewebmasters.net/php/ there's a tutorial located here: http://www.devshed.com/Server_Side/PHP/PHPFastTemplate/page1.html -- David Hi there! During the last two weeks or so,

Re: [PHP] Session troubles

2001-12-29 Thread David Jackson
Sean -- Does you standard (non session) seem to work ok? Such as: ?php // basic echo of var from form echo We've just echoed var from form\n; echo p$stuff/p; echo h2$more_stuff/h2; echo h3$still_more_stuff/h3; ? Did you compile Apache and PHP from source? If so could you provide me with the

Re: [PHP] Handling checkboxs (MySQL+PHP)

2001-12-29 Thread David Jackson
Brian -- So I should change the line: echo tdinput type=\checkbox\ name=\frm_pid\ value = \$pid\ /td; To: echo tdinput type=\checkbox\ name=\frm_pid[]\ value = \$pid\ /td; Or do I change the value= Thanks -- David * David Jackson ([EMAIL PROTECTED]) [Dec 29. 2001 21:41]: [...] My

Re: [PHP] MySQL problem

2001-12-30 Thread David Jackson
Here's the example from the PHP manual: The tutorial here are very helpfull: http://www.melonfire.com/community/columns/trog/ -- David ?php // Connecting, selecting database $link = mysql_connect(mysql_host, mysql_login, mysql_password) or die(Could not connect); print Connected

Re: [PHP] MySQL problem

2001-12-30 Thread David Jackson
but cannot select the database. I'm not sure why this is? I've looked hard at it and I cannot see where I have gone wrong. Thanks. GF. - Original Message - From: David Jackson To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, December 31, 2001 1:48 AM Subject

Re: [PHP] web mail clients?

2001-12-31 Thread David Jackson
Philip -- If you just want to install one: http://freshmeat.net Browse down to PHP project, there 4-6 are ready out there. If you want to roll your own check out the tutorials at: http://www.melonfire.com/community/columns/trog/ Note: The mail client I send this mail from appears to be a PHP

Re: [PHP] how to read posted data?

2001-12-31 Thread David Jackson
Also check out tutorials at: http://www.melonfire.com/community/columns/trog/ -- david USE $HTTP_RAW_POST_DATA or something like that i'll look it up for you Zhiqiang He [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... i have resolved this problem, use $HTTP_RAW_POST_DATA.

Re: [PHP] Re: Need some Linux/Apache help

2002-01-01 Thread David Jackson
Todd -- Send email to [EMAIL PROTECTED] In body of email: subscribe linux-admin You might also check for distrbution specific forum/list Slackware has one, I'm sure Redhat has some. By the why, were you compile Apache/Mysql and PHP from *tgz sources ? David - Try Cross posting to:

Re: [PHP] cron test

2002-01-01 Thread David Jackson
How about posting to the OS specific related forum? For Linux try subscribing to linux-admin at [EMAIL PROTECTED] for Solaris, HP-UX and other check news group list DJJ -Original Message- Sorry this is offtopic I have set up a cron job and this is the message I

[PHP] Generating Static Pages

2002-01-01 Thread David Jackson
This may seem a little odd? But what I want to do is use PHP/MySQL to generate static pages. The applet I tinkering with is a sales worksheet and to start with will consist of catalog/product maintience page, and a worksheet allow sales reps work up pricing for customers. Eventfully this would

Re: [PHP] Generating Static Pages

2002-01-01 Thread David Jackson
Sorry here's the code unattached: ?php include(/home/sites/www.pickledbeans.com/web/html_header.php); // include(/home/sites/www.pickledbeans.com/web/connect.php); include(/connect.php); echo body \n; echo form method = \post\ action =\invoice.php\\n; echo pSales Date:/p\n; echo pinput

Re: [PHP] Re: What the hell?!?!

2002-01-01 Thread David Jackson
copy php.log php.txt, now you have a static log to look at. then do more php.txt this will display a screen at a time,hitting space goes to the next screen. To do more advanced work with text files goto: http://simtel.net gnuish directory and download gawk and grep, mainly grep, NOTE: using grep

[PHP] test

2002-01-02 Thread David Jackson
Let see does my PERSONEL unsubscribe information appear at the bottom of this email? For the second time in 48hrs. someone submitted an unsubscribe request using for me? Yet I still get the list postings? How strange. -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Connect to IBM DB2

2002-01-02 Thread David Jackson
Jerry -- I didn't see any functions listed in: http://www.php.net/manual/en/ for DB2 the ODBC maybe you only answers, heres the link: http://www.php.net/manual/en/ref.odbc.php David To connect to Microsoft SQL 7 I'm using the following script which works fine: ?php $query=SELECT * FROM

[PHP] undefined symbol: uncompress

2002-01-27 Thread David Jackson
/conf/httpd.conf: Cannot load /usr/local/www/libexec/libphp4.so into server: /usr/local/www/libexec/libphp4.so: undefined symbol: uncompress Line 236 of http.conf: LoadModule php4_modulelibexec/libphp4.so Thanks for you help. David Jackson -- PHP General Mailing List (http://www.php.net

Re: [PHP] undefined symbol: uncompress

2002-01-27 Thread David Jackson
Mike -- Thanks for you reply, I made the changes an am stilling getting the same error? On the other hand if I compile PHP with out specifing mysql home. I don't get the error. David Jackson Miles Thompson wrote: Add the path to libphp4.so to the file /etc/ld.conf.so and run ldconfig

Re: [PHP] undefined symbol: uncompress

2002-01-27 Thread David Jackson
Micheal -- Thanks for your replys. What I see in /usr/local/mysql/lib is: libmysqlclient.a I'm wondering if the MySQL binaaries use static libs? Thanks, David Michael Sims wrote: At 12:50 PM 1/27/2002 -0700, David Jackson wrote: Mike -- Thanks for you reply, I made the changes an am

[PHP] Apache-2.0.35 + 4.2.0RC4: not seeing index.php

2002-05-03 Thread David Jackson
-track-vars or --enable-force-cgi-redirect): './configure' '--with-mysql' '--with-apxs2=/usr/local/apache2/bin/apxs' '--prefix=/usr/local/php4' Thanks in advance, David Jackson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Apache-2.0.35 + 4.2.0RC4: not seeing index.php

2002-05-04 Thread David Jackson
' '--with-mysql' '--with-apxs2=/usr/local/apache2/bin/apxs' '--prefix=/usr/local/php4' Thanks in advance, David Jackson Thanks again for you time and knowledge. David Jackson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Is this valid: IF:.. ELSE: ENDIF:

2002-05-04 Thread David Jackson
Greeting --- I was handed a broken form that contain: IF (cond): . ELSEIF: .. ENDIF: My Questions are: 1. Is this type of IF: code block valid in PHP4.x.x? 2. Shouldn't it be -- IF (cond): ELSE: or maybe IF (cond): ELSEIF (cond): ELSE: -- PHP General Mailing List

Re: [PHP] Is this valid: IF:.. ELSE: ENDIF:

2002-05-04 Thread David Jackson
Miguel -- Thanks for you reply, the if (ops) else is the only one could find listed in the docs. and you right that's the why normal people do it, but this devoloper used to be a COBAL programer which explain it. Thanks again, David On Sat, 4 May 2002, David Jackson wrote: Greeting

Re: [PHP] Message isn't received in form mailer

2002-05-04 Thread David Jackson
Jason -- This ain't pretty (and probly not even correct) but it works: David -- Mail Call PHP html headtitlehello mail/title/head body pre ?php $From = $_POST['from']; $Two = $_POST['two']; $Subject = $_POST['sub_ject']; $Comments = $_POST['comments']; echo

[PHP] Re: » PHP Installation Problems «

2002-05-04 Thread David Jackson
believe you used to have to ./configure --enable-track-vars? This maybe depreciated now ? See variable sections of manaul for sorid details. David Jackson [EMAIL PROTECTED] Vins wrote: I have installed php4 with apache 1.3.24. Downgraded apache again. LOL When I wan't to submit a form from

[PHP] Is --enable-track-vars still needed?

2002-05-04 Thread David Jackson
Is I still recommended that config be run with the --enable-track-vars flag? Or has this been deprieciated? Recently? Does the chagnes to global vars come in to play here? TIA, David Jackson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: help!!!

2002-05-05 Thread David Jackson
Jane -- Check http://www.freshmeat.net. Keep in mind there's good and their simple. Try searching on project, store, scheduler also take a look at http://www.phprojetk.com ( or is it org). HTH, David J. H. wrote: Can anyone here help me write a simple auto shop scheduling program? Would

Re: [PHP] Remote Hosting: Trouble shooting

2002-05-11 Thread David Jackson
Jason -- In actual fact the hosting company in question is used by a friend of mine, but not my me :) And I agree he needs to draw a line in the sand, I mean the guy uses them for 2 sites and his ISP?! It's time to say fix it by Monday at 08:00 or I'm canceling my accounts, but that's just me

[PHP] Re: Compatiblity: Zend-1.20 + PHP4.2.1

2002-05-14 Thread David Jackson
J -- Thanks your reply, I 'm a little confused as to the relationship between PHP and Zend? I thought all request were processed by Zend? Or is Zend Optimizer something different from Zend that built as part of PHP4.2.x? Who would a duplicate the error below on my Linux box. Thanks for your

Re: [PHP] Newbie challenge to brainiacs

2002-05-14 Thread David Jackson
Jay Blanchard wrote: The burning issue that begs to be answered is, why reinvent the wheel? There is a least a dozen blogs on freshmeat for PHP along... Unless your doing it just for kicks, which is OK. David [snip] I want to try to find the hour that has the most hits The day of the

[PHP] ereg (Why, Does sort of work)?

2002-11-02 Thread David Jackson
I'm comparing the values of a check box, against another form field, and it sort of works, but I don't understand why (A better solution? is listed below it? TIA, David Jackson --- And part of the HTML Form: --- tdbAccount Type:/b/td tdAsset

[PHP] Re: need help with project

2002-11-02 Thread David Jackson
Karl -- Before you go reinventing the wheel , you might check http://freshmeat.net ... of course there is nothing actually wrong with reinventing the wheel *grin* David Jackson Karl James wrote: Hello people Im in need help with creating a system where it will let me Add/drop players off

[PHP] Re: Variables

2002-11-03 Thread David Jackson
Bryan McLemore wrote: What is a variables value before said value has been assigned a value? Thanks Bryan Wouldn't it be null or empty ? Just a guess, David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] radio buttons from MySQL query?

2002-11-03 Thread David Jackson
How do I go about building radio buttons using the results of a MySQL query. The record layout looks like this: acct cat description I want to use acct as the value=acct in the input statement for the radio box. The code below almost works? TIA, David ?php $header = mysql_query (SELECT *

Re: [PHP] radio buttons from MySQL query?

2002-11-03 Thread David Jackson
($row = mysql_fetch_array($header)); } else {print Sorry, no records were found!;} print '/form'; ? /body /html Rija wrote: oups ... you're right ! - Original Message - From: John Nichel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: php [EMAIL PROTECTED]; David Jackson [EMAIL

[PHP] HELP with headers already being sent error?

2004-02-25 Thread DAvid Jackson
Howdy -- header already send error. Cannot modify header information - headers already sent by (output started at /u242/rumc1636/warehouse/scrapbook/config.php:8) in /u242/rumc1636/warehouse/scrapbook/login.php on line 47 and 48. Here's lines 42 is if($action == login) Could it be related to the

[PHP] SQLite Support is library call?

2004-03-03 Thread DAvid Jackson
Howdy -- SQLite supported by a direct call the sqlite library? As apposed to calling the executable? Could I use ini_set(include_path=) to tall PHP where the SQLite lib is located? TIA, David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: why use safe mode?

2004-03-03 Thread DAvid Jackson
Joel Boonstra wrote: This tread inerest me because I faced with a situation, where I have to work around don't having a database (out of my control). What I want to do is use Pear + sqlite.so out of home directory of the home dir.(typical L.A.P vhost)? I is modifying safe_mode relative

Re: [PHP] Re: why use safe mode?

2004-03-03 Thread DAvid Jackson
TIA, David Please read for content... and excuse the crapping spelling DJJ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Testing Pear install

2004-03-03 Thread DAvid Jackson
How can I test to see if and what portions of Pear are installed on a vhosted website? TX, david -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: why use safe mode?

2004-03-03 Thread DAvid Jackson
Chris W. Parker wrote: DAvid Jackson mailto:[EMAIL PROTECTED] on Wednesday, March 03, 2004 11:20 AM said: TIA, David Please read for content... and excuse the crapping spelling DJJ ?? Chris -- See reply to this thread right before this, I fat fingered it :) And also

[PHP] Re: Testing Pear install

2004-03-03 Thread DAvid Jackson
Ben Ramsey wrote: You can download the PEAR packages yourself, though, drop them into a directory in your site (or outside the root of your site), and use ini_set() to set your include_path to the directory where your PEAR classes reside. Then you can use PEAR without having to install it.

[PHP] [4.3.4] Building with sqlite support

2004-03-03 Thread DAvid Jackson
I looked the the configure --help but didn't see sqlite? Or did I just miss it? How can I build the module for sqlite. David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Scripts for customer - service provider web available?

2004-03-10 Thread DAvid Jackson
Denis L. Menezes wrote: Hello friends. I am in a hurry to make a website where suppliers can advertise their products and services and customers can place their requirements so the requirements can be matched with the service providers. Also vistors should be able to seek suppliers and customers.

[PHP] Are $_POST and $_GET interchangable?

2004-03-10 Thread DAvid Jackson
I understand the difference between how they process from data. Most application seem to reply on $_GET which display the session/from/cookie values in the URL windows. What I'm not clear on are there times when you have to either $_POST or $_GET? TX, david -- PHP General Mailing List