[PHP] Re: Medium to Large PHP Application Design

2003-01-09 Thread rush
"Nick Oostveen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > As such, my question is this: What methods and techniques can be used to > help design and build complex, medium to large PHP applications that are > not only scalable, but maintainable and extensi

[PHP] Re: session not set, server configuration?

2003-01-09 Thread James Tan
Dear Noel Wade, I've been coding session for quite sometime, but this is the first time i encounter such problem... in the login.php page, i've tested out session_is_registered("userkey"); it was TRUE. but when i redirect it to main.php and did a checking on session_is_registered("userkey"); it

Re: [PHP] Is this possible with php?

2003-01-09 Thread Tom Rogers
Hi, Friday, January 10, 2003, 4:06:23 PM, you wrote: tnc> I would like to know if the follwing function can be implemneted tnc> in php with help of other tools: tnc> using MS Word in windows, when a file is saved, can it be AUTOMATICALLY tnc> uploaded (via http POST or other mechanism) to a serve

[PHP] Re: PostgreSQL/PHP: transactions: how-to abstract out?

2003-01-09 Thread Jean-Christian Imbeault
To all who replied to my initial question ... I actually did *not* have problems with transactions in the way I first implemented my abstraction layer. In the case of PHP "If a second call is made to pg_connect() with the same connection_string, no new connection will be established, but instea

Re[2]: [PHP] apache and php

2003-01-09 Thread Submission.org.ru Team
Hello Gareth, Well I've the same problems here what I added to Mine httpd.conf SetOutputFilter PHP SetInputFilter PHP LoadModule php4_module modules/libphp4.so Thats all it works. But be carefull with 2.0.40 it's shouldn't used for production. PHP is (!)EXPERIMENTAL(!) for it. Hope it will help

RE: [PHP] Is this possible with php?

2003-01-09 Thread Timothy Hitchens \(HiTCHO\)
So you want to be able to have a directory that when saved to it is really the server well besides ftp or samba integration into explorer the only other option you have is to use webdav with apache and that way it would be a post of sorts to the mod webdav module in apache. Timothy Hitchens (HiT

[PHP] Is this possible with php?

2003-01-09 Thread try
I would like to know if the follwing function can be implemneted in php with help of other tools: using MS Word in windows, when a file is saved, can it be AUTOMATICALLY uploaded (via http POST or other mechanism) to a server? Currently I need to first save it on my desktop, then upload that copy

Re: [PHP] PostgreSQL/PHP: transactions: how-to abstract out?

2003-01-09 Thread Ray Hunter
You could try leaving off the ";"... Try $sql = "BEGIN" Try $sql = "COMMIT" That should work... On Thu, 2003-01-09 at 22:23, Jean-Christian Imbeault wrote: > Jason Sheets wrote: > > > > Manual Excerpt: " If a second call is made to pg_connect() with the same > > connection_string, no new con

Re: [PHP] PostgreSQL/PHP: transactions: how-to abstract out?

2003-01-09 Thread Ray Hunter
Jean-Christian If you are only doing an insert then you do not need the transactions "BEGIN" and "COMMIT" because that is already done for you on a single insert. PGSQL is transaction based so if it does not go then it will not work. -Ray On Thu, 2003-01-09 at 22:23, Jean-Christian Imbeault wrot

Re: [PHP] PostgreSQL/PHP: transactions: how-to abstract out?

2003-01-09 Thread Jean-Christian Imbeault
Jason Sheets wrote: Manual Excerpt: " If a second call is made to pg_connect() with the same connection_string, no new connection will be established, but instead, the connection resource of the already opened connection will be returned. You can have multiple connections to the same database if

RE: [PHP] searching for string inside document

2003-01-09 Thread Timothy Hitchens \(HiTCHO\)
Oops... // $htlm should have been $html preg_match('/(.*)<\/title>/Usi', $html, $title); Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]] > Sent: Friday, 10 January 2003 3:22

RE: [PHP] searching for string inside document

2003-01-09 Thread Timothy Hitchens \(HiTCHO\)
Use Preg: // put your html into $html preg_match('/(.*)<\/title>/Usi', $htlm, $title); echo $title[1]; ** very basic example Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Martin Hudec [mailto:[EMAIL PROTECTED]] > Sent: Frid

[PHP] searching for string inside document

2003-01-09 Thread Martin Hudec
Hello, i have document in html and i want to get out string between tags to put it into another variable.. i am wondering if i could use eregi() herebut how? I cant figure out any possible way... same with strchr() and strstr() can anyone help me please? -- Best regards, Martin

RE: [PHP] func_get_args...

2003-01-09 Thread Sean Malloy
well upon reading user comments in manual, looks like the only solution is to dump variables into an array, and pass the array to a function with a single defined by-ref parameter, so it kind of defeats the purpose. Oh well. -Original Message- From: Sean Malloy [mailto:[EMAIL PROTECTED]]

Re: [PHP] PostgreSQL/PHP: transactions: how-to abstract out?

2003-01-09 Thread Jason Sheets
Not exactly sure why your transactions aren't working but if your script already has an open connection to the database and you issue another call to pg_connect with the same connect string PHP will return the existing connection and should not create another connection to the database, that is pro

RE: [PHP] mysql_num_rows() error

2003-01-09 Thread Mark Charette
And which database are you using?? (hint - mysql_select_db() might be a good idea ...) > -Original Message- > From: Phil Powell [mailto:[EMAIL PROTECTED]] > > Anyone know why this is happening? I have mySQL on Win2000 > Server with IIS > > and PHP: >> -- PHP General Mailing List (http:/

[PHP] PostgreSQL/PHP: transactions: how-to abstract out?

2003-01-09 Thread Jean-Christian Imbeault
Hi. I thought I had abstracted out the SQL querying part of my code out, just to find out today that it doesn't work when it comes to transactions. I had come up with this code: function sql_query($sql) { $conn = pg_connect("dbname=JC user=postgres"); $res = pg_exec($conn, $sql); if (!$re

Re: [PHP] Session Expiration?

2003-01-09 Thread Jason Sheets
First are you sure the data was not deleted? If the cookie is still set in your browser a new session file will be created with the same session id. I believe you adjust the session gc and the session max lifetime, additionally if you are concerned about someone bookmarking a sessionid or storing

RE: [PHP] Converting Excel Spreadsheet to MySQL table ...

2003-01-09 Thread Timothy Hitchens \(HiTCHO\)
Native Excel.. good luck as it is a binary format. If you save it as a CSV version of the document then you have many approaches to this issue. Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Adam Ferguson [mailto:[EMAIL PROTECT

RE: [PHP] Medium to Large PHP Application Design

2003-01-09 Thread Timothy Hitchens \(HiTCHO\)
Many people develop their own framework which include classes / functions etc. We have build such a framework that includes authentication layers, custom mark-up language, advanced caching for data sets and templated content. If you develop your application correctly you can build in caching and r

[PHP] func_get_args...

2003-01-09 Thread Sean Malloy
Is this possible; function TestRef() { $var =& func_get_arg(0); ++$var; } $b = 1; TestRef($b); echo $b; It doesn't seem to work. Is there a way to do it? Or am I wasting my time trying to do this? (Yes I am aware I could define TestRef(&$b)), but I can't, reason being; I'm trying to cr

[PHP] Re: something annoying about includes/relative paths.

2003-01-09 Thread michael kimsal
Sean Malloy wrote: Moving to PHP from an ASP backgroun, I always found one thing really annoying about PHP. With ASP, you could have a file structure such as: SYSTEM |--HTML | |--header.asp | |--LOGIC | |--engine.asp | |--core.asp in default.asp, you would in core.asp, engine.asp would be i

[PHP] Re: Medium to Large PHP Application Design

2003-01-09 Thread michael kimsal
Nick Oostveen wrote: As PHP becomes more accepted in the corporate world, it is only logical that larger and more complex applications are going to be developed using it. While there is an abundance of information out there about making specific things work, there seems to be a shortage regard

[PHP] something annoying about includes/relative paths.

2003-01-09 Thread Sean Malloy
Moving to PHP from an ASP backgroun, I always found one thing really annoying about PHP. With ASP, you could have a file structure such as: SYSTEM |--HTML | |--header.asp | |--LOGIC | |--engine.asp | |--core.asp in default.asp, you would in core.asp, engine.asp would be included as such in

RE: [PHP] newbee

2003-01-09 Thread Larry Brown
Just a thought, set your form to use the get method so that you can see exactly what the php page is receiving. Then before any of your existing code put the first line to "echo $variable;" without the quotes and using one of the variables being sent and visible in the url. The page should then a

[PHP] Converting Excel Spreadsheet to MySQL table ...

2003-01-09 Thread Adam Ferguson
Hello ... I was wondering if anyone had a good resource or code sample for opening ( or accessing ) an excel spreadsheet using php. I need to be able to convert a spreadsheet of products and info to a table of products in a mysql database. Also ... I need to be able to perform this on a Linux

[PHP] Medium to Large PHP Application Design

2003-01-09 Thread Nick Oostveen
As PHP becomes more accepted in the corporate world, it is only logical that larger and more complex applications are going to be developed using it. While there is an abundance of information out there about making specific things work, there seems to be a shortage regarding the big picture.

Re: [PHP] Connection pool extension?

2003-01-09 Thread michael kimsal
Vinod Panicker wrote: Hi, Thanks for the quick response - I am aware of PHP's support for sockets, but since I cant store persistent connection information in a PHP script I was looking out for a module Tx, Vinod. --- Vinod Panicker <[EMAIL PROTECTED]> Sr. Softwa

RE: [PHP] mysql_num_rows() error

2003-01-09 Thread Sean Malloy
Are you actually checking that the query result is valid? $conn = mysql_connect('localhost', "xxx", "yyy") or die('Could not connect to db'); $result = mysql_query('select * from blah', $conn); if ($result) { echo "Number of rows: " . mysql_num_rows($result); if (mysql_num_rows($result) > 0)

RE: [PHP] mysql_num_rows() error

2003-01-09 Thread Jay \(PHP List\)
You query is incorrect. Try doing the same query from the MySQL clent. |-> -Original Message- |-> From: Phil Powell [mailto:[EMAIL PROTECTED]] |-> Sent: Thursday, January 09, 2003 7:46 PM |-> To: [EMAIL PROTECTED]; [EMAIL PROTECTED] |-> Subject: [PHP] mysql_num_rows() error |-> |-> |->

[PHP] Session Expiration?

2003-01-09 Thread Matias Silva
I have gone through the past posts and can't find an answer to my problem I'm using a URL based session management schema, and I was wondering how to set the session duration time. I know there is the session.gc_probability and session.gc_maxlifetime but that's only for garbage collection. Just

[PHP] mysql_num_rows() error

2003-01-09 Thread Phil Powell
> Anyone know why this is happening? I have mySQL on Win2000 Server with IIS > and PHP: > > mysql_num_rows(): supplied argument is not a valid MySQL result resource > > Here is my code: > >$conn = mysql_connect('localhost', "xxx", "yyy") or die('Could not connect > to db'); > $result = mysql_

Re: [PHP] Re: How can I redirect to another php page

2003-01-09 Thread Jason Sheets
You should always use the exit after a redirect, the browser is not required to go to the new location. If you do not exit your script after you redirect and the browser does not go to the new location you risk the unintended continued execution of your script. Jason On Thu, 2003-01-09 at 18:30,

[PHP] Posting data using fsockopen() causes session problem

2003-01-09 Thread Max Davy
Hi, I finally figured out how to use fsockopen() to post data when my server responded with a Document Moved error. I knew the document was where I said it was ... After many hours I realised that the location the document had allegedly been moved to was the login screen that the user would be re

Re: [PHP] checkboxes, radio buttons and $_POST['']

2003-01-09 Thread Tom Rogers
Hi, Friday, January 10, 2003, 4:25:00 AM, you wrote: JEO> Hi JEO> HELP!!! JEO> I have read through the manual about using $_POST[''] to retrieve JEO> data from forms, but what happens when a form element is not filled in JEO> or checked? JEO> If I have a checkbox on a form called "chk1" I get

[PHP] Re: How can I redirect to another php page

2003-01-09 Thread Tommy Jensehaugen
If you choose to use header("Location: yellow.php"); it might be useful to add an exit; statement after it. I have experienced that if I use more header(..) function calls in one page, it can skip the first ones. Don't know why, but with the exit; statement your are sure: if ($Color == "Yellow") {

[PHP] Re: HEEELP...please

2003-01-09 Thread Philip Hallstrom
Is register_globals on or off? If it's off on the new machine that explains why $DOCUMENT_ROOT is evaluating to "" which would produce the error message you are getting... On Thu, 9 Jan 2003 [EMAIL PROTECTED] wrote: > I absolutely cannot understand the include_path directive. > Can somebody, ple

[PHP] Re: HEEELP...please

2003-01-09 Thread Greg Beaver
$DOCUMENT_ROOT is now $_SERVER['DOCUMENT_ROOT'] unless register_globals is on. You need include $_SERVER['DOCUMENT_ROOT'].'/../lib/somefile.conf'; take care, Greg -- phpDocumentor http://www.phpdoc.org <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I absolut

RE: [PHP] HEEELP...please

2003-01-09 Thread Timothy Hitchens \(HiTCHO\)
You can get away without a include path set by ensuring that the path is absolute eg: If you have your data for your website as with FreeBSD in /usr/local/www/data/ you then do the following to include: ** assume you have a "lib" directory in the /data/ area ** moving from platform to platform al

[PHP] HEEELP...please

2003-01-09 Thread pippo
I absolutely cannot understand the include_path directive. Can somebody, please, explain this? I have a situation that I find absolutely incomprehensible: I moved my experimental web-site from FreeBSD 4.5 running php4 v. 4.0 (or something), apache 1.13 where thesite worked just fine to another bo

RE: [PHP] php stored in mysql

2003-01-09 Thread Timothy Hitchens \(HiTCHO\)
Please be aware that eval code is extremely hard to debug!! Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Paul Roberts [mailto:[EMAIL PROTECTED]] > Sent: Friday, 10 January 2003 9:33 AM > To: [EMAIL PROTECTED] > Subject: Re: [P

[PHP] Re: flash and php (using the varibles)

2003-01-09 Thread rolf vreijdenberger
in flash: result=null; URL=" myscript.php" loadVariables(URL, myobject, "POST")//flash 5, MX has better capabilities gotoAndPlay("checkframe") well, you get a name/value pair from the script. the script ran some queries on the database. teh output from the script to flash is: &mynumber=1

php-general Digest 9 Jan 2003 23:44:09 -0000 Issue 1813

2003-01-09 Thread php-general-digest-help
php-general Digest 9 Jan 2003 23:44:09 - Issue 1813 Topics (messages 130923 through 131015): Re: Adding HTTP URL Code 130923 by: Sean Burlington 130931 by: Robert Fisher Can you insert into $_POST manually? 130924 by: Noel Wade 130927 by: Scott Houseman

Re: [PHP] php stored in mysql

2003-01-09 Thread Paul Roberts
I should have used return($price = $price - ($price *.1)); in the db and eval($str); Best Wishes & Happy New Year Paul Roberts [EMAIL PROTECTED] - Original Message - From: "Paul Roberts" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 09, 2

[PHP] PHP/Oracle Command line Segmentation Fault

2003-01-09 Thread Christopher Ditty
I have successfully installed oracle 8.1.7 w/ php and have it configured to run from the command line. When I run a simple script that connects, and selects records from the database, the last line is a segmentation fault error. This does not seem to happen when the same script is run through the

[PHP] php, and svg problem

2003-01-09 Thread Gil Perez
Hello, I have a big problem with reading a value in SVG through a PHP file. The value i want to draw is "$large". There are 3 little files restricted to the minimum. I would be so happy if someone could find the mistake here. Thanks a lot. Gil - data.php - -- index.ph

Re: [PHP] Can you insert into $_POST manually?

2003-01-09 Thread Noel Wade
This will work perfectly! Actually, building a dynamic javascript function and/or hidden form will allow me to collapse a couple of other redirect systems on my site into one... Thanks a bunch! --Noel "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED

Fw: [PHP] unlink ($files);

2003-01-09 Thread Brian T. Allen
Hi, You can use the backtick operator to delete whatever you have permissions to delete: $directory = "path/*.*"; `rm -rf $directory`; They aren't quotes, they are backticks (to the left of the 1 key on most keyboards). It is very useful for any command line stuff you have permissions to do. B

[PHP] Auto Include a Function

2003-01-09 Thread Brian T. Allen
Hi, This may exist, but I haven't been able to find it, and I think it would be REALLY helpful and convenient. The idea is this: When you write a script and call a function: PHP would automatically look for a file named "previously_uncalled_function" in your /include/functions/ directory. Th

[PHP] php stored in mysql

2003-01-09 Thread Paul Roberts
Hi I want to store some discount codes in mysql, i was thinking of putting $price = $price - ($price *.i); in a mysql field that can be looked up via the coupon number what's the best way to do this and return $price with the discount applied. Thanks Best Wishes & Happy New Year Paul Roberts

Re: [PHP] mail submission... from flash

2003-01-09 Thread travis
GOT IT :) "; $Subject = "www.test.com"; $N = $HTTP_POST_VARS['Name']; $M = $HTTP_POST_VARS['Mess']; $F = $HTTP_POST_VARS['MailFrom']; $H = $HTTP_SERVER_VARS['HTTP_HOST']; $A = $HTTP_SERVER_VARS['REMOTE_ADDR']; $UA = $HTTP_SERVER_VARS['HTTP_USER_AGENT']; $Date = getdate(time());

Re: [PHP] newbee

2003-01-09 Thread Hendrik van Niekerk
Prolem solved. Thanks to all those that assisted me. Hendrik "Joseph W. Goff" <[EMAIL PROTECTED]> wrote in message 004c01c2b813$33f181b0$bdcaa8c0@jg42000">news:004c01c2b813$33f181b0$bdcaa8c0@jg42000... > Without seeing some code I would guess that it is register globals issue. > It falls into the

[PHP] Re: fletcher's checksum

2003-01-09 Thread Dave Gervais
Thanks for the reply. I do have the C code that does this. If anybody can easily translate it to PHP, it would be very apriciated. Here is the C code. There is a decode function, but I don't need it in PHP because I have a C program listening to serial port on the other end that will validate

Re: [PHP] php and asp

2003-01-09 Thread Khalid El-Kary
Maybe you mean that PHP can use COM on windows platforms and load .NET modules http://www.php.net/manual/en/ref.com.php (com) http://www.php.net/manual/en/ref.dotnet.php (.NET) Regards, Khalid Hello all I seem to recall php being able to provide some suport for asp. How would I turn this featu

RE: [PHP] Interesting timeout issue

2003-01-09 Thread Ben Vaughn
Running my code directly from console (/usr/local/bin/php ./code.php) allows the code to complete properly. It must be an HTTP issue. Cheers, Ben -- Ben Vaughn Security Analyst Blackbird Technologies 703-796-1438 W / 703-868-5258 C [EMAIL PROTECTED] -- -Original Message- From:

Re: [PHP] building web album - design questions

2003-01-09 Thread Chris Wesley
On Thu, 9 Jan 2003, Anders Thoresson wrote: > I'm planning to build a web album for my digital photographs, and have > some questions regarding the design: I don't want to discourage you from hacking your own code ... that's phat, so plz take this just as some heads-up info: IMHO, Gallery can'

Re: [PHP] undefined variable notice - how to furn of

2003-01-09 Thread Gurvinder Singh
or give error_reporting(0); in the start of the file "Joseph W. Goff" <[EMAIL PROTECTED]> wrote in message 002601c2b803$26a67110$bdcaa8c0@jg42000">news:002601c2b803$26a67110$bdcaa8c0@jg42000... > In the php.ini file set error reporting to E_ALL & ~E_NOTICE > > - Original Message - > From:

Re: [PHP] Can you insert into $_POST manually?

2003-01-09 Thread Chris Shiflett
--- Noel Wade <[EMAIL PROTECTED]> wrote: > Thanks - I understand that method; but I'm really > looking for a way to pass them without them being > visible / mucking up the URL line with a buncha > stuff... Noel, To answer your original question, no, you cannot force the remote Web client to submi

Re: [PHP] building web album - design questions

2003-01-09 Thread Kevin Stone
- Original Message - From: "Anders Thoresson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 09, 2003 1:20 PM Subject: [PHP] building web album - design questions > Hi, > > I'm planning to build a web album for my digital photographs, and have > some questions rega

[PHP] "re-throw" from custom error handler? error patterns?

2003-01-09 Thread kellan
I was wondering is it possible to "re-throw" an error that one has caught with a custom error handler if, for example, I only wanted to deal with the errors generated by the library I was working on? Or perhaps some way to only catch a custom defined error type? I suppose I'm trying to overload t

Re: [PHP] building web album - design questions

2003-01-09 Thread Rick Emery
1. Store images separately with pointers in the database. It permits faster database queries. 2. 3. int imagecopyresized ( resource dst_im, resource src_im, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH) - Original Message - From: "Anders Thoresson"

Re: [PHP] building web album - design questions

2003-01-09 Thread bbonkosk
> Hi, > > I'm planning to build a web album for my digital photographs, and have > some questions regarding the design: > > 1) Is it better to store the images within the database, or just store > pointers to the images which is put outside, in the filesystem? > IMHO, store a link of "poin

RE: [PHP] session_destroy problem

2003-01-09 Thread Ken Nagorski
Hi there, So it is the browsers problem. I tested what you said and Mozilla acts as you stated and IE does as well. I guess my question is. Is there no way to close clear out the session when the user logs out? The way I set things up the class that I wrote just gets the current sessionid and doe

[PHP] building web album - design questions

2003-01-09 Thread Anders Thoresson
Hi, I'm planning to build a web album for my digital photographs, and have some questions regarding the design: 1) Is it better to store the images within the database, or just store pointers to the images which is put outside, in the filesystem? 2) At log in, I want to show to which albums

Re: [PHP] ftp_put: permission denied

2003-01-09 Thread Oliver Witt
Well, how to I get access to where I'm trying to put it? The rights already are 777. Olli Thomas Seifert schrieb: > it may be, that destiny is wrong. > the error-message tells that you don't have access to where you are trying to upload >the file to. > > Thomas > > On Wed, 08 Jan 2003 20:59:02 +

[PHP] Re: [PHP-DEV] Terminal text objects (PHP CDK NCURSES)

2003-01-09 Thread Dave Mertens
On Wed, Jan 08, 2003 at 03:55:51AM +, Nikolai Vladychevski wrote: > I want to share the code (php-extension) I have included into php-4.2.2 to > support CDK widgets > (http://gd.tuwien.ac.at/hci/cdk/?file=cdk.tar.gz&type=listing) to enable > PHP to use text based "GUI" in terminal environmen

Re: [PHP] newbee

2003-01-09 Thread Joseph W. Goff
Without seeing some code I would guess that it is register globals issue. It falls into the same explanation as the previous problem. You can fix this in one of two ways. 1) use the super globals instead of $typeqty use $_POST['typeqty'] or $_GET['typeqty'] depending on how it is passed. 2) turn r

Re: [PHP] Dynamic menu from DB

2003-01-09 Thread Marek Kilimajer
I don't know about the flash part, but submenus are simple. Your menu items table needs a "parent" column, where the id of the parent menu item, but for top level menus (Flash static menu) it will be 0. Then first select all menu items with parent=0 and as you loop throught the result result, r

RE: [PHP] float precision

2003-01-09 Thread Ford, Mike [LSS]
> -Original Message- > From: Kevin Avila [mailto:[EMAIL PROTECTED]] > Sent: 09 January 2003 04:33 > > I'm having a weird issue with float precision. I am > decrementing the > value of a float by 0.1. The problem is when the float I am working > with reaches 0.1 and I decrement it

RE: [PHP] fletcher's checksum

2003-01-09 Thread Ford, Mike [LSS]
> -Original Message- > From: Dave Gervais [mailto:[EMAIL PROTECTED]] > Sent: 08 January 2003 19:11 > > Does anybody know how to implement the 8 and 16 bit versions of > Fletcher's checksum using PHP? I hit google and came up dry. > It's easy > enough to find how to do it in C, but PHP i

Re: [PHP] checkboxes, radio buttons and $_POST['']

2003-01-09 Thread Marek Kilimajer
In the php.ini file set error reporting to E_ALL & ~E_NOTICE -- Joseph W. Goff Seems like register_globals issue has been replaced by error_reporting ;-) John-Erik Omland wrote: Hi HELP!!! I have read through the manual about using $_POST[''] to retrieve data from forms, but what happens

[PHP] Sessions and Frames...

2003-01-09 Thread Dale Schell
List, I have a website that uses (too) many frames. At its most ugly, it will load 8 frames at once. All of the pages in these frames activate the session, and some of them modify session variables. Can this cause the pages to load slowly? Can a page have the session file write locked and m

Re: [PHP] checkboxes, radio buttons and $_POST['']

2003-01-09 Thread Tim Ward
isset($_POST["chk1"]) will only be true if the checkbox is checked. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: John-Erik Omland <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 09, 2003 6:25 PM Subject: [PHP] checkboxes, radio

[PHP] checkboxes, radio buttons and $_POST['']

2003-01-09 Thread John-Erik Omland
Hi HELP!!! I have read through the manual about using $_POST[''] to retrieve data from forms, but what happens when a form element is not filled in or checked? If I have a checkbox on a form called "chk1" I get an error from PHP when I try this: $chk1 = $_POST['chk1']; // error if user did n

[PHP] Dynamic menu from DB

2003-01-09 Thread Cesar Aracena
Hi all, I'm making a new site for a client and he needs to put several different menus under a static FLASH menu. The bad part is that every item in the flash menu leads to different categories and these need different number of sub menus. I use MySQL & PHP 4. The categories and sub categories are

[PHP] another 4.3.0 issue?

2003-01-09 Thread john
ive recently started experiencing a problem from broadcasts made over a mailing list i wrote some time ago. up until now its been functioning fine, however recently it started sending out raw html unformatted (tags etc appearing in email), instead of the usual interpreted results. this coincided,

Re: [PHP] mail submission... from flash

2003-01-09 Thread travis
well... it returns nothing when using loadVars.sendAndLoad in flash and sends no mail... while this script on the same server called from the same flash file works "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Friday 10 January 2003 0

Re: [PHP] mail submission... from flash

2003-01-09 Thread Jason Wong
On Friday 10 January 2003 00:57, travis wrote: > any one see why this wouldnt work? Why don't you tell us _how_ it doesn't work? [snip] -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications De

Re: [PHP] newbee

2003-01-09 Thread Hendrik van Niekerk
Joseph I can get the errors to go away but then my example just shows a blank page! The variable are not being passed through to the .php doc hendrik "Joseph W. Goff" <[EMAIL PROTECTED]> wrote in message 003201c2b803$ada54f60$bdcaa8c0@jg42000">news:003201c2b803$ada54f60$bdcaa8c0@jg42000... > Thi

RE: [PHP] Newbee observation

2003-01-09 Thread Larry Brown
Better yet a script should be run to have all the e-mails listed by the time they were received at the server instead of what time the e-mail was submitted. That should take care of it I would think. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: Tom Ray

[PHP] Interesting timeout issue

2003-01-09 Thread Ben Vaughn
Hello, I just recently upgraded from 4.2.3 to 4.3.0 and a script of mine has begun behaving erratically. The code is included at the bottom of this message. I am essentially updating a large (1.94m row) table to include a new field...the queries needed to do this updating are somewhat tim

Re: [PHP] Newbee observation

2003-01-09 Thread Tom Ray
Mail servers play a part in this too. Maybe the admins should pack up their servers and send them back too :) -Original Message- From: "Hendrik van Niekerk" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Thu, 9 Jan 2003 11:11:30 -0600 Subject: [PHP] Newbee observation > Why does the webm

Re: [PHP] newbee

2003-01-09 Thread Joseph W. Goff
This is because of the default error reporting setting in the newer version of php. This was not the case when your book was written. In your php.ini file set error reporting = E_ALL & ~E_NOTICE and you will quit getting the 'Undefined Variable' notices. - Original Message - From: "Hendrik

Re: [PHP] undefined variable notice - how to furn of

2003-01-09 Thread Joseph W. Goff
In the php.ini file set error reporting to E_ALL & ~E_NOTICE - Original Message - From: "Borut Kovacec" <[EMAIL PROTECTED]> To: "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, January 09, 2003 9:57 AM Subject: [PHP] undefined variable notice - how to furn of Hi I just installed n

[PHP] Newbee observation

2003-01-09 Thread Hendrik van Niekerk
Why does the webmaster not reject messages that are dates > today's date eq there are numerous messages that have dates with year 2010 and up. A moron who does not have the correct computer date on his machine should pack it up and send it back to the company that sold it to them. JMHO -- PHP

[PHP] Re: forms and sessions ?

2003-01-09 Thread Munir
Scott wrote: hi I'm having some problems submitting forms while using sessions :o( I have a form, that will only display if the session vars exist and are not null or empty. I'm using this is the form handler Write some more information so that we know what u want ok :) -- PHP General Mail

[PHP] mail submission... from flash

2003-01-09 Thread travis
any one see why this wouldnt work? "; $subject = "*www.test.com*"; $date = getdate(time()); $date = sprintf("%s %s %s %s:%s:%s", $date["mday"],$date["month"],$date["year"],$date["hours"],$date["minutes"],$date["seconds"]); $from = sprintf("s s", $HTTP_POST_VARS["Name"], <$HTT

[PHP] newbee

2003-01-09 Thread Hendrik van Niekerk
Hi I'm very new to PHP. (have just bought the book "PHP and MySQL Web Deelopment") SAMS authors Luke Welling and Laura Thompson I working with the examples in the book. I have loaded MySQL, Apache and PHP onto a NT server. All the test passed as per the examples in the book. Working with the th

Re: [PHP] apache and php

2003-01-09 Thread Gareth Thomas
Tim, thanks but it still doesn't work. What puzzles me is that last night I reinstalled a 'vanilla' install of RedHat 8 from the distribution where I selected PHP and Apache. So now I am running PHP 4.2.2 and Apache 2.0.40, I make the change you recommened to httpd.conf, stop and restart the serv

RE: [PHP] undefined variable notice - how to furn of[Scanned]

2003-01-09 Thread Michael Egan
Borut, I had this problem myself just before Christmas. The following solution was proposed: >> All of the PHP scripts hosted on a Linux server >> I'm working with have suddenly begun producing >> an error message: >> >> undefined variable 'variablename' > Looks like someone's tweaked th

Re: [PHP] flash and php (using the varibles)

2003-01-09 Thread Philipp Hartmann
I didnt test this, but something along the line should work [ActionScript] onEnterFrame = function{ i = dataYougetFromMySQL; if (i < max){ this._width = this._width * (i*factor) // factor can slow down or accelerate your animation } } [/ActionScript] hth, Philipp "- [ Paul Ferrie ] -" <[EMAIL

Re: [PHP] Reading Registry

2003-01-09 Thread Kansu Dinçer
Hi, CD> Hello all. I don't think this is possible, but I wanted to ask to be CD> sure. Is it possible to read and write to a web user's registry with CD> php? I believe this can be done with CF and ASP, but I was not sure CD> about PHP. A search turned up nothing usefull. I don't think so.. C

Re: [PHP] PHP 4.3.0 with Oracle

2003-01-09 Thread José Manuel Valente
Id didn´t work out. The same error message :( > On Wed, Jan 08, 2003 at 04:38:25PM -0200, José Manuel Valente wrote: > > Hy Guys, > > > > I´m a newby here. > > > > I´am trying to compile PHP 4.3.0 with Oracle support. When it > > compiles oci8.c , it returns an error, li

[PHP] Reading Registry

2003-01-09 Thread Christopher Ditty
Hello all. I don't think this is possible, but I wanted to ask to be sure. Is it possible to read and write to a web user's registry with php? I believe this can be done with CF and ASP, but I was not sure about PHP. A search turned up nothing usefull. Thanks CDitty -- PHP General Mailing

[PHP] flash and php (using the varibles)

2003-01-09 Thread - \[ Paul Ferrie \] -
Hi guys i hope there is someone in here that use flsah along with php to help with this :) Anyway i will make it simple. mysql returns a number say 123 i want flash to take this number to animate a progress bar, but here the problem it does work but the progress bar dosn't animate it just sets to

Re: [PHP] PHP 4.3.0 with Oracle

2003-01-09 Thread José Manuel Valente
In that server, i am running 8.1.5. Thanks for the help. i am going to try it right away. really thanks! :) Bye, Jose Manuel Valente - Original Message - From: "Thies C. Arntzen" <[EMAIL PROTECTED]> To: "José Manuel Valente" <[EMAIL PROTECTED]> Cc: "PHP" <[EM

[PHP] undefined variable notice - how to furn of

2003-01-09 Thread Borut Kovacec
Hi I just installed new php 4.2.3 on Win XP, Apache 1.3.24.. Everything works fine, just now I'm getting "Notice" messages for every undefined variable or undefined index in arrays.. So now I have to use issset() everytime to avoid this messages... ..is there any way to turn this messages off,

Re: [PHP] how to make server response to emails

2003-01-09 Thread Michael Sims
On Thu, 9 Jan 2003 17:33:02 +0800, you wrote: >I believe >that there is a way to make the mail server, or which ever it is, to >response specifically to text within the mail. [...] >However, I have no idea how this is accomplished and what this system is >called, so I need some precious help here.

Re: [PHP] php and asp

2003-01-09 Thread Clint Tredway
The only thing PHP can do that's related to asp, is use the <% like asp does. This is not recommended though.. Clint - Original Message - From: "Jerry M. Howell II" <[EMAIL PROTECTED]> To: "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Monday, January 06, 2003 7:34 PM Subject: [PHP] php and

Re: [PHP] php and asp

2003-01-09 Thread Adam Voigt
No idea what your talking about, PHP can't parse ASP code and vice versa. On Mon, 2003-01-06 at 20:34, Jerry M. Howell II wrote: Hello all I seem to recall php being able to provide some suport for asp. How would I turn this feature on? is it a line in the php.ini or is

  1   2   >