Re: [PHP] CMS question.

2003-08-26 Thread Robert Cummings
On Mon, 2003-08-25 at 10:14, Edmond Baroud wrote: > On August 25, 2003 08:13 am, Jay Blanchard wrote: > > > What makes you think that the developer did something unethical? > > It looks like you're familiar with this particular case and the developper > happens to be your friend so you're defend

RE: [PHP] Session problem in back button

2003-08-26 Thread Paul Fitzpatrick
Hi, This will stop them seeing the login once they are in a registered session Only diplay the login form if NOT a registered session variable 'sessionname' (or some other session variable) If (!isset($_SESSION['sessionname'])) { //Display login form code goes here } Cheers. -Origin

Re: [PHP] Recursive Object Troubles

2003-08-26 Thread Mike Migurski
>I am building a recursive Menu object. Inside each menu item there is an >array which should allow me to add submenu items and so on. I am having >trouble, though, with getting the submenus to stay. They are >disappearing as I go along. Without really going through your code (sorry) I would ha

Re: [PHP] CMS question.

2003-08-26 Thread [EMAIL PROTECTED]
exactly. The development company usualy has all the rights. That's why NDAs were invented :-) Robert Cummings wrote: On Mon, 2003-08-25 at 10:14, Edmond Baroud wrote: On August 25, 2003 08:13 am, Jay Blanchard wrote: What makes you think that the developer did something unethical?

Re: [PHP] verifying sql INSERTs

2003-08-26 Thread John W. Holmes
Chris W. Parker wrote: Hi! (MySQL) What's the best way to determine a sql INSERT statement has executed successfully? You should use mysql_error() to ensure your query did not fail for any reason. Assuming the query was successful, you can use mysql_affected_rows() to see if it actually had an

Re: [PHP] querystring and frameset issue

2003-08-26 Thread [EMAIL PROTECTED]
frame set will need to be in php try something like this [code] [/code] all the best Irvin Amoraal wrote: Can somebody tell me how to pass a value between two php pages within a frameset. I have a simple two column framset: navbar on the left, content on the right. I have two pages that are disp

Re: [PHP] preg_match bug

2003-08-26 Thread John W. Holmes
Christian Calloway wrote: Hey I wanted to see if anyone was getting the same problem. Using preg_match in the following pattern: "/(.|\n)+?<\/tr>/" You need to escape the double quotes in your string at the very least. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

[PHP] help with parse error

2003-08-26 Thread Stevie D Peele
I have a parse error on line 12 -- --- "); echo(""); echo($row['Title']. ""); echo(""); echo(""); echo($row['SubT'].""); echo(""); echo(""); echo($row['Author']. ""); echo($row['Story']); echo("");

[PHP] Impossible error

2003-08-26 Thread Mjec
Hi, I have a 163 line file. I get a parse error on line 164. Ideas? Thanks, mjec -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Impossible error

2003-08-26 Thread Ashley M. Kirchner
Mjec wrote: I have a 163 line file. I get a parse error on line 164. Ideas? That generally means you've forgotten a bracket somewhere. Check and correct the missing bracket and you should be good to go. -- H| I haven't lost my mind; it's backed up on tape somewhere. +

RE: [PHP] Impossible error

2003-08-26 Thread Jennifer Goodie
> I have a 163 line file. I get a parse error on line 164. Ideas? > You're probably missing a } somewhere. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] help with parse error

2003-08-26 Thread Paul Fitzpatrick
Hi, Maybe.. $sql = "SELECT Title, SubT, Author, Story FROM SiteNews;" should be $sql = "SELECT Title, SubT, Author, Story FROM SiteNews"; -Original Message- From: Stevie D Peele [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 5:41 PM To: [EMAIL PROTECTED] Subject: [PHP] he

RE: [PHP] How to open random Flash page with hyperlink?

2003-08-26 Thread Cody Phanekham
Curt, Your absolutely right it is a security hole, however the response was a quick solution without much thought in regards to the security integrity of the script. > -Original Message- > From: Curt Zirzow [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 26 August 2003 01:04 > To: [EMAIL PROT

[PHP] if seat is sold

2003-08-26 Thread Jay Fitzgerald
1. here is my code: http://codedump.phpfreaks.com/viewcode.php?id=1162 2. here is a screenie of my seating chart: http://www.bayou.com/jay/chart.gif 3. what i am wanting to do is using CSS i want to "strike-through" the seats that are in the db - else, I want them to display normally note: the

[PHP] FTP hosting PHP releases?

2003-08-26 Thread Simon Fredriksson
Is there any official FTP server hosting the PHP tar balls? I've done a shell script that downloads, compiles and installs PHP. Problem is that it's kinda hard to fetch the tarballs since there are no good static links. They seem to change with every release. Trying to run "wget http://www.php.

Re: [PHP] preg_match bug

2003-08-26 Thread Christian Calloway
Obviously its an example, otherwise the script wouldn't have even parsed. $regularExpression = '"/(.|\n)+?<\/tr>/'; preg_match ($regularExpression, $fileString, $matches) This regular expression causes PHP to crash for me, not a parsing error. "John W. Holmes" <[EMAIL PROTECTED]> wrote in messa

[PHP] SMTP - Authorization?

2003-08-26 Thread Mathiau
Hey all! glad to bea here! got alot to learn! k, basically i am sending out a mailing list to customers, - using a PHP script, however the SMTP i am using needs to have Authorization to log into the outgoing SMTP - i HAVE to use this authentication no if's and ot butt's., otherwise i will be bl

Re: [PHP] FTP hosting PHP releases?

2003-08-26 Thread Sascha Schumann
On Tue, 26 Aug 2003, Simon Fredriksson wrote: > Is there any official FTP server hosting the PHP tar balls? I've done a > shell script that downloads, compiles and installs PHP. Problem is that > it's kinda hard to fetch the tarballs since there are no good static > links. They seem to change with

Re: [PHP] Unix end of line versus windows end of line

2003-08-26 Thread Curt Zirzow
* Thus wrote Bohdan Blaha ([EMAIL PROTECTED]): > Hi, > > I use PHP with apache on two systems.. > (linux and windows) > > when I use PHP on linux, it is ok.. I get Unix end of line, when I write to the file > with fwrite function... > when I run the same script on windows machine, I get Unix end

Re: [PHP] preg_match bug

2003-08-26 Thread Curt Zirzow
* Thus wrote Christian Calloway ([EMAIL PROTECTED]): > Hey I wanted to see if anyone was getting the same problem. Using preg_match > in the following pattern: > > "/(.|\n)+?<\/tr>/" > > PHP seems to be crashing. I get a "Page cannot be displayed" message from > the browser. I've come across this

Re: [PHP] preg_match bug

2003-08-26 Thread Curt Zirzow
* Thus wrote Christian Calloway ([EMAIL PROTECTED]): > Obviously its an example, otherwise the script wouldn't have even parsed. You provided an example that he had to make certain guesses for why you think php is crashing. > > $regularExpression = '"/(.|\n)+?<\/tr>/'; This still is not right.

[PHP] mb_send_mail displays boundary marker

2003-08-26 Thread Martin Towell
I've written an email class that works fine when I use mail() But now I have added support for mb_send_mail() and the boundary marker is being displayed in the body of the email. Putting it back to mail() works fine... I'm doing all the header info myself (ie, mb_send_mail('', '', $body, $headers

Re: [PHP] how to keep decimals from rounding

2003-08-26 Thread Curt Zirzow
* Thus wrote Rob Yelvington ([EMAIL PROTECTED]): > Is there a way to surpress round() or number_format() from rounding > decimal places? > > I have a value of ".253338" being returned via a calc function. > > I take that value and multiply by 100 because I want "25.333" to be > displayed. > >

Re: [PHP] Use PHP or MySQL for MD5 function

2003-08-26 Thread Curt Zirzow
* Thus wrote Daevid Vincent ([EMAIL PROTECTED]): > > If you really care, just make a program like this and do some MD5() calls in > both mysql and php to see which is faster. I'd be curious to know as well... > You'll have to modify appropriately, and only do a single MD5 check because > I think l

Re: [PHP] PHP permissions problem

2003-08-26 Thread Curt Zirzow
* Thus wrote Lowell Allen ([EMAIL PROTECTED]): > My commercial host is set up with the public root directory, "public_html", > owned by user: userid, group: nobody. Directories I create within > public_html are owned by user: userid, group: userid. As a result, PHP does > not have permission to cre

Re: [PHP] Cookie saving path on Clinet

2003-08-26 Thread Tom Rogers
Hi, Monday, August 25, 2003, 12:01:53 PM, you wrote: BA> Hi Everybody BA> I know this is vague but couldn't find the answer. BA> Where (i mean system path) cookies are saved on Client's machine. BA> I though it is in windows/temp or temporaray internet files (in win 2000) but it wasn't there.

Re: [PHP] need help figuring out how to delete rows?

2003-08-26 Thread Deadsam
Cool thanks I'll try it out :) Deadsam "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Actualy, it will not. LIMIT can have only one argument with DELETE. > This will ($count is the number of rows you need to get in a previous > query): > > DELETE FROM table ORDER BY

[PHP] Re: Displaying Multidimensional Arrays

2003-08-26 Thread Jason Williard
I actually found a way of handling this on my own. Thanks. - Jason "Jason Williard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am trying to create a function that will take a multidimensional array and > turn it into a form based off the information in the array. I have run

Re: [PHP] Session problem in back button

2003-08-26 Thread murugesan
Seems confusing. - //include.php session_name("sessionname"); session_start(); -->> This was added in a separate file and included that file in all the files including index.php In index.php I registered a variable s_authed and initialised it to 0 -

[PHP] determine how many checkboxes are selected.

2003-08-26 Thread Angelo Zanetti
Hi I have a tabel that gets populated dynamically from a DB query. Each row is a seperate record and they all have a checkbox. I want to put a button/image @ after the table and when it is click ed to determine which checkboxes have beeen selected. I also name the checkboxes dynamically with chk

[PHP] php-cli stopping on exit.

2003-08-26 Thread Simon Fredriksson
Can someone explain why PHP freezes when I don't specify a file for it? Like when I run "php -v" it outputs: PHP 4.3.3 (cli) (built: Aug 24 2003 22:05:23) Copyright (c) 1997-2003 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies Then stops. It doesn't return to the comma

Re: [PHP] determine how many checkboxes are selected.

2003-08-26 Thread murugesan
First count the number of entries($count) to be displayed in the page. Accordingly assign the names for($i=0;$i< $count;$i++) { $chkval="chkv".$i; $chkfun="chkf".$i; echo ""; echo " "; //display record $i echo " function $chkfun() { if(document.forms[0].$chkval.value=='off')

[PHP] onchange = "$_SESSION['Alarm'] = getelementbyid('alarmReport').value ;"

2003-08-26 Thread Mrunal Wagh
hi, I have a SELECT in which I would like to store the variable value in the Session variable of onchange event of the SELECT. I am stuck up with the syntax could u please help. http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] [Newbie Guide] For the benefit of new members

2003-08-26 Thread Burhan
Quoting "Chris W. Parker" <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] > on Monday, August 25, 2003 5:11 AM said: > > > 5. Provide a clear descriptive subject line. Avoid general subjects > > like "Help!!", "A Question" etc. > > Change to: > > 5. Provide a clear descr

[PHP] MD5 System Password check with PHP

2003-08-26 Thread Chinmoy Barua
Hello everybody, I want to authenticate my user from web with PHP script. The user's passwords are stored in System as MD5 format (in /etc/shadow). Can anybody help me? - Chinmoy __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: [PHP] SMTP - Authorization?

2003-08-26 Thread Manuel Lemos
Hello, On 08/25/2003 09:34 PM, Mathiau wrote: basically i am sending out a mailing list to customers, - using a PHP script, however the SMTP i am using needs to have Authorization to log into the outgoing SMTP - i HAVE to use this authentication no if's and ot butt's., otherwise i will be blocked

Re: [PHP] MD5 System Password check with PHP

2003-08-26 Thread murugesan
First store the password in the DB as $passwd=md5($passwd) insert into table values( $passwd); get the user password and check by comparing if(md5($password)==$fetchedpasswdfromDB) { ... } -murugesan - Original Message - From: "Chinmoy Barua" <[EMAIL PROTECTED]> To: <[EMAIL PRO

[PHP] Re: Uploading by email

2003-08-26 Thread Manuel Lemos
Hello, On 08/25/2003 05:41 PM, Wouter Van Vliet wrote: I know it's slightly not totally about PHP.. but since I wanna do it with PHP, i'll post it here. I was wondering if anybody can help me to accomplish the following: - Somebody sends an email to, for example, [EMAIL PROTECTED] This email has s

Re: [PHP] MD5 System Password check with PHP

2003-08-26 Thread Justin French
On Tuesday, August 26, 2003, at 04:04 PM, Chinmoy Barua wrote: Hello everybody, I want to authenticate my user from web with PHP script. The user's passwords are stored in System as MD5 format (in /etc/shadow). Can anybody help me? Which part do you want help with? The form? The SQl query? The

Re: [PHP] MD5 System Password check with PHP

2003-08-26 Thread Burhan
Quoting Justin French <[EMAIL PROTECTED]>: > On Tuesday, August 26, 2003, at 04:04 PM, Chinmoy Barua wrote: > > > Hello everybody, > > > > I want to authenticate my user from web with PHP > > script. The user's passwords are stored in System as > > MD5 format (in /etc/shadow). > > > > Can anybod

Re: [PHP] Problem with date('w')

2003-08-26 Thread BEOI 7308
i found out that using strtotime did the trick !! > > I have a problem with the date function > > > > > $theday = date("Y-m-d", time()); > > echo date((w), $theday); > > ?> > > I'm pretty sure the optional second argument for date is a unix timestamp > that you would generate by using either

RE: [PHP] determine how many checkboxes are selected.

2003-08-26 Thread Ralph Guzman
Change box names to chk[] and assign the id as the value, so for example: to check which boxes have been checked simply traverse through the chk[] array like this: $chk_array = $_POST['chk']; for($chk_array as $chk_key => $chk_value) { print 'Checkbox Id:'. $chk_key . ' Value:'. $chk_value

[PHP] Problem with session_start after upgrading from 4.0.6 to 4.3.1

2003-08-26 Thread Richard NAGY
Hello, I'm using an apache server 1.3.28 on RedHat GNU/Linux 6.2 with php 4.3.1. Before, I was using apache 1.3.14 with php 4.0.6. Since I have upgraded, I have problems with session_start. I have tried to set register_globals either to on or to off but it has no effect on this problem. Example :

php-general Digest 26 Aug 2003 07:35:50 -0000 Issue 2259

2003-08-26 Thread php-general-digest-help
php-general Digest 26 Aug 2003 07:35:50 - Issue 2259 Topics (messages 160678 through 160733): Re: "back" works in opera but not in internet explorer 160678 by: Eric Wood how to keep decimals from rounding 160679 by: Rob Yelvington 160684 by: DvDmanDT 160713 b

Re: [PHP] MD5 System Password check with PHP

2003-08-26 Thread Justin French
Burhan, Please try to quote the right person when replying to a thread -- your messages was, I assume, intended for Chinmoy Barua, not me. It saves confusion, and keeps the thread more useful and easier to follow. Thanks, Justin French On Tuesday, August 26, 2003, at 04:17 PM, Burhan wrote:

[PHP] weird output on my Apache2, PHP 4.2.3 Win2k box...

2003-08-26 Thread jsWalter
Can someone tell me why all mt PHP generated HTML has this pre-pended to it? And how can I turn it off? Thanks Walter