Re: [PHP] Extracting string from shell_exec call

2004-07-27 Thread raditha dissanayake
C.F. Scheidecker Antunes wrote: Hello all. I have a function that executes the unzip command. .. What I want to do is to extract the value(s) after inflating, so that I can check what was extracted from the zip. You can do so with regular expresson but a more simple aproach may be to use the spl

[PHP] We give you $200 bonus at Casino Zeal!

2004-07-27 Thread Homer R. McIntosh
Hi, I have a special offer available for you at our casino. $20 to try our internet casino, no deposit is necessary! At the casino software's cashier enter bonus code: FR93P $200 bonus on your first deposit! At the casino software's cashier enter bonus code: FMJKU Allow us to show you our quali

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Burhan Khalid
Vern wrote: I get: # wget -O -q http://www.comp-wiz.com/index.html | lpr -P hp1300n What I wrote was wget -O -q - http://www.domain.com/file.php | lpr -P hp1300n You forgot - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Extracting string from shell_exec call

2004-07-27 Thread C.F. Scheidecker Antunes
Hello all. I have a function that executes the unzip command. function test_unzip($command) { $stdout = shell_exec($command); echo $stdout; } This is the content of $stdout after calling it with $command = "unzip ./email/test.zip"; Archive: ./email/test.zip inflating: ./txt/test.t

[PHP] Re: Data management tool

2004-07-27 Thread Harry G
You can also use an application called CodeCharge. It's very easy to use. By the way are you living in India or abroad?? Harmeet "Jaskirat Singh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Everyone, > I am looking for a tool that lets me do simple data managment ie. > edit,

[PHP] Page Numbering Search Results

2004-07-27 Thread Harry G
Hi I am doing a search in the database and would like to limit the display to x numbers only. But would like to put two links next and previous. Where they click to goto next page. Say there were 28 results returned by query but i want to display 5 on first and subsequent pages. The way I do t

Re: [PHP] Data management tool

2004-07-27 Thread Justin Patrin
On Tue, 27 Jul 2004 22:09:35 -0700 (PDT), Jaskirat Singh <[EMAIL PROTECTED]> wrote: > Hi Everyone, > I am looking for a tool that lets me do simple data managment ie. > edit,update,insert and delete records in tables of a database. > > I am kinda fed up of writing those php scripts for back ends o

[PHP] Call for XML / XPATH examples

2004-07-27 Thread Jason Barnett
I'm working on a project that makes use of the DOMXPath class in PHP5. I have some test xml documents / queries, but it would be good to test my project with other people's documents / xpath queries that do things mine don't. Please reply off list though, since I doubt most of the people here wan

Re: [PHP] Urgent..my MYSQL dies..

2004-07-27 Thread Jason Barnett
[EMAIL PROTECTED] wrote: please give me a command line to startup MySQL using safe_mysqld C:\> ---John Holmes... HAHAHA How'd you guess they would have a drive letter for their prompt :) Oh, us poor, poor windows users. Microsoft has "protected" us from it for so long that we've forgotten wha

[PHP] Re: Problem with circular include statement

2004-07-27 Thread Jason Barnett
I *believe* that include_once will be all that is necessary. However if that doesn't stop the problem, you can use a DEFINE and at the top of each script: if (!defined(FILE1)) { include_once 'file1.php'; } -- file1.php - define ('FILE1', TRUE); -- PHP General Mailing List (

[PHP] Data management tool

2004-07-27 Thread Jaskirat Singh
Hi Everyone, I am looking for a tool that lets me do simple data managment ie. edit,update,insert and delete records in tables of a database. I am kinda fed up of writing those php scripts for back ends of websites over and over :). I am looking for some thing generic to replace that if possible.

Re: [PHP] Urgent..my MYSQL dies..

2004-07-27 Thread holmes072000
> please give me a command line to startup > MySQL using safe_mysqld C:\> ---John Holmes... --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.690 / Virus Database: 451 - Release Date: 22/05/2004 -- PHP General Mailing List (htt

[PHP] Problem with circular include statement

2004-07-27 Thread C.F. Scheidecker Antunes
Hello all, I have 3 scripts script1.php and script2.php where both include the same general.inc file of functions. Then I have script3.php that calls functions from both scritp1.php and script2.php. As both script1 and script2 include general.inc when I try to use diferent function on script3 I

Re: [PHP] Adding +7 more days on date() value problem

2004-07-27 Thread Jason Davidson
Definately check out strtotime() function, way easier than adding up the seconds of a timestamp, or breaking apart a getdate array. Jason On Wed, 28 Jul 2004 11:30:42 +0800, Louie Miranda <[EMAIL PROTECTED]> wrote: > I can't figure how could i add +7 more days on the DD (Day) value. My > problem

[PHP] Re: [phpug-ph] expiring logins with-in 5days, nde pwede cookies.

2004-07-27 Thread Louie Miranda
HAHAHAHHAHA http://ph.php.net/manual/en/function.strtotime.php :) -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adding +7 more days on date() value problem

2004-07-27 Thread Jason Wong
On Wednesday 28 July 2004 11:30, Louie Miranda wrote: > I can't figure how could i add +7 more days on the DD (Day) value. My > problem is, when the day is close on the end of the month like > > 07/29/2004 > > when i add +7 on 29 = 36, its obvious we dont have 36 on the calendar. > And im creating

Re: [PHP] Adding +7 more days on date() value problem

2004-07-27 Thread Justin Patrin
On Wed, 28 Jul 2004 11:30:42 +0800, Louie Miranda <[EMAIL PROTECTED]> wrote: > I can't figure how could i add +7 more days on the DD (Day) value. My > problem is, when the day is close on the end of the month like > > 07/29/2004 > > when i add +7 on 29 = 36, its obvious we dont have 36 on the cal

[PHP] Adding +7 more days on date() value problem

2004-07-27 Thread Louie Miranda
I can't figure how could i add +7 more days on the DD (Day) value. My problem is, when the day is close on the end of the month like 07/29/2004 when i add +7 on 29 = 36, its obvious we dont have 36 on the calendar. And im creating a program below, to explode it and maybe just add +. But i think i

[PHP] Re: how to restart deamon??

2004-07-27 Thread David Robley
On Wed, 28 Jul 2004 12:49, Fitra Alfina wrote: > how to restart deamon?? How to ask questions the smart way http://www.catb.org/~esr/faqs/smart-questions.html -- David Robley Dogs come when you call. Cats have answering machines. -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] how to restart deamon??

2004-07-27 Thread Fitra Alfina
how to restart deamon?? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.690 / Virus Database: 451 - Release Date: 22/05/2004 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Urgent..my MYSQL dies..

2004-07-27 Thread raditha dissanayake
Fitra Alfina wrote: please give me a command line to startup MySQL using safe_mysqld try the mysql list -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP

RE: [PHP] Urgent..my MYSQL dies..

2004-07-27 Thread Ed Lazor
It depends on your configuration, OS, etc... > -Original Message- > From: Fitra Alfina [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 27, 2004 7:37 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Urgent..my MYSQL dies.. > > please give me a command line to startup MySQL using safe_mysqld -

[PHP] Urgent..my MYSQL dies..

2004-07-27 Thread Fitra Alfina
please give me a command line to startup MySQL using safe_mysqld --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.690 / Virus Database: 451 - Release Date: 22/05/2004 -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Jason Wong
On Wednesday 28 July 2004 04:51, Vern wrote: > I get: > > # wget -O -q http://www.comp-wiz.com/index.html | lpr -P hp1300n > --16:49:59-- http://www.comp-wiz.com/index.html >=> `-q' > Resolving www.comp-wiz.com... done. > Connecting to www.comp-wiz.com[207.234.154.95]:80... connected.

[PHP] RE[PHP] Using htaccess to show diff dir (0T) (SOLVED)

2004-07-27 Thread PHP Gen
Hey, Dont worry about it, found it: http://www.thinkhost.com/services/kb/301-redirect.shtml Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) ___

[PHP] Using htaccess to show diff dir (0T)

2004-07-27 Thread PHP Gen
Hi, instead of showing my index.php page located at / I want to show my index.html page located at /cached/ but I dont want to use javascript as the clients JS might be off...and I dont want to get blacklisted by the search engines for redirecting... I did read somewhere that you can redirect via

RE: [PHP] Showing all users who are logged in

2004-07-27 Thread Vail, Warren
I did one application where I used the PHP session table to tell who was logged on, and which area of the application they were most recently in. One of several flaws, was that I used Kill session to logoff, and that caused them to disappear from any count of users logged on. Course, if they had l

Re: [PHP] Showing all users who are logged in

2004-07-27 Thread Jason Davidson
If you have a users table, you could add a field to it that contains the last login datetime. and query that table for datetimes that are less then your session timeout (if one exists). Of coarse, you would have to update that table when a user logs in. Jason On Tue, 27 Jul 2004 19:55:49 -0400,

Re: [PHP] Showing all users who are logged in

2004-07-27 Thread Justin Patrin
On Tue, 27 Jul 2004 19:55:49 -0400, Jason Giangrande <[EMAIL PROTECTED]> wrote: > Anyone have any suggestions as to the best way to keep track of all > users who are logged in at a given time? I thought of writing them to a > temp text file and them deleting the names from the file when a user > l

[PHP] Showing all users who are logged in

2004-07-27 Thread Jason Giangrande
Anyone have any suggestions as to the best way to keep track of all users who are logged in at a given time? I thought of writing them to a temp text file and them deleting the names from the file when a user logged out, but I think there has to be a better way. Anyone have any suggestions?

Re: [PHP] eliminate keyword

2004-07-27 Thread Justin Patrin
On Tue, 27 Jul 2004 18:29:42 -0500, Raúl Castro <[EMAIL PROTECTED]> wrote: > Hello, > > I have a form with a textarea field, I'm trying to eliminate the keywords > that users write on it, what can I do using php? for instance: the original phrase > would be: "Hello world!" > after using a func

Re: [PHP] eliminate keyword

2004-07-27 Thread Jason Davidson
if you mean remove the new line characters, then a str_replace('\n', '', $textbody); should be sufficient. If thats not what you mean, please clarify. Jason On Tue, 27 Jul 2004 18:29:42 -0500, Raúl Castro <[EMAIL PROTECTED]> wrote: > Hello, > > I have a form with a textarea field, I'm trying to

[PHP] eliminate keyword

2004-07-27 Thread Raúl Castro
Hello, I have a form with a textarea field, I'm trying to eliminate the keywords that users write on it, what can I do using php? for instance: the original phrase would be: "Hello world!" after using a function php must be: "Hello world!". Thanks

[PHP] freetds

2004-07-27 Thread Jon Bertsch
Hi, Make sure freetds was compiled with --enable-msdblib Make sure that php was compiled with --with-mssql=/path/to/freetds Make sure that you edit the file freetds.conf (freetds/etd/freetds.conf) to have an entry for your database e.g: [myserver] host = myserver.domain.name port =

Re: [PHP] Verifying AUthorised Users through Session Variables not Working...?

2004-07-27 Thread Justin Patrin
On Tue, 27 Jul 2004 23:21:34 +0100, Harlequin <[EMAIL PROTECTED]> wrote: > Hi all. > > I'm using session variables to identify if a user is authorised, if yes - > display x and so on. > > However, I've come across a couple of issues: > > when users access a page that's 2 folders deep into the ro

Re: [PHP] html text area and mysql text fields

2004-07-27 Thread Matthew Sims
>> i keep the string intact as well, for that exact reason, when you want >> to edit dynamically, i dont want all sorts of html tags in my >> textarea. So, the solution i found works, is to use the php funtion >> nl2br(). use that when displaying the info in html., that way you dont >> actually ch

[PHP] Anyone use japha?

2004-07-27 Thread Brent Clements
I found a cool project called Japha which is a port of the main java classes to php. It's at www.japha.net I haven't used it yet, but have read through the site and the classes a bit. Anyone using these classes/libraries in their applications. -Brent

[PHP] Verifying AUthorised Users through Session Variables not Working...?

2004-07-27 Thread Harlequin
Hi all. I'm using session variables to identify if a user is authorised, if yes - display x and so on. However, I've come across a couple of issues: when users access a page that's 2 folders deep into the root I.e. www.mydomain.com/folder1/folder2 any include references I use have to be absolute

Re: [PHP] Sendmail Return-Path

2004-07-27 Thread Enda Nagle - Lists
Hi Justin, I just tried this code: $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $headers .= "From: Webstore <[EMAIL PROTECTED]>\n"; $headers .= "To: $email_address\n"; $headers .= "Bcc: [EMAIL PROTECTED]"; $headers .= "X-Priority: 1\n"; $headers

Re: [PHP] html text area and mysql text fields

2004-07-27 Thread Matthew Sims
> i keep the string intact as well, for that exact reason, when you want > to edit dynamically, i dont want all sorts of html tags in my > textarea. So, the solution i found works, is to use the php funtion > nl2br(). use that when displaying the info in html., that way you dont > actually change

Re: [PHP] html text area and mysql text fields

2004-07-27 Thread Jason Davidson
i keep the string intact as well, for that exact reason, when you want to edit dynamically, i dont want all sorts of html tags in my textarea. So, the solution i found works, is to use the php funtion nl2br(). use that when displaying the info in html., that way you dont actually change the origin

[PHP] Re: Sendmail Return-Path

2004-07-27 Thread Manuel Lemos
Hello, On 07/27/2004 06:07 PM, Enda Nagle - Lists wrote: I¹m using PHP¹s mail() function on several sites, but have difficulty sometimes with the mails being tagged as SPAM. I want to have the Return-Path set to the site admin, but can¹t see where to do this. I know that it can be done at server ro

Re: [PHP] Sendmail Return-Path

2004-07-27 Thread Curt Zirzow
* Thus wrote Enda Nagle - Lists: > Hi Guys, > > I¹m using PHP¹s mail() function on several sites, but have difficulty > sometimes with the mails being tagged as SPAM. > > I want to have the Return-Path set to the site admin, but can¹t see where to > do this. > > I know that it can be done at ser

Re: [PHP] html text area and mysql text fields

2004-07-27 Thread Enda Nagle - Lists
I usually leave the string intact in the database because if you need to show it in an admin area or something, you don¹t need to convert it back again before populating the text area. Suppose it just comes down to personal preference... Or is there a specific benefit to doing it this way? Regard

Re: [PHP] html text area and mysql text fields

2004-07-27 Thread Matthew Sims
> Hi, > > If I have a html textarea for inputting text into a database text field > how can I keep the formatting of the entered text? > > i.e. on the html textarea if the user enters carriage returns i.e. a new > paragraph I want that to go into the database then when I retrieve it and > display i

[PHP] html text area and mysql text fields

2004-07-27 Thread Matthew Oatham
Hi, If I have a html textarea for inputting text into a database text field how can I keep the formatting of the entered text? i.e. on the html textarea if the user enters carriage returns i.e. a new paragraph I want that to go into the database then when I retrieve it and display it on a norma

Re: [PHP] Array assistance

2004-07-27 Thread Matt M.
> Ten separate arrays with an array at 0 that has the data I'm after. > This is where I'm getting stuck. How can I get to the keys that are > either 'mc' or 'truefalse' and sum them? foreach my man http://us2.php.net/foreach foreach ($_SESSION['arans'] as $arans) { $truefalse += $arans['truefals

Re: [PHP] Sendmail Return-Path

2004-07-27 Thread Justin Patrin
On Tue, 27 Jul 2004 22:07:52 +0100, Enda Nagle - Lists <[EMAIL PROTECTED]> wrote: > Hi Guys, > > I¹m using PHP¹s mail() function on several sites, but have difficulty > sometimes with the mails being tagged as SPAM. > > I want to have the Return-Path set to the site admin, but can¹t see where to

Re: [PHP] Array assistance

2004-07-27 Thread Jason Davidson
I would simply build the array more specifically, so that it doesnt include things you dont want. Jason On Tue, 27 Jul 2004 16:20:02 -0500, Alex Hogan <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a page where I'm collecting answers from a series of questions. > The questions are entered into t

Re: [PHP] Sessions Timeout

2004-07-27 Thread Matt M.
> Problem is that when someone goes so far in the ordering process, and then > (for whatever reason) leaves the site, and comes back hours, seconds or > whatever later, and goes again to place an order, the details are different > (time), and the session stays the same so the order entry is entered

Re: [PHP] Sessions Timeout

2004-07-27 Thread Jason Davidson
I would put a timelimit on the session, create a session var called time, or loginTime or something, and compare it to time() with php, give a leyway of an hour or something. This is a standard securty measure to prevent people from leaving the pc with a session running all day, and someone else si

[PHP] Array assistance

2004-07-27 Thread Alex Hogan
Hi All, I have a page where I'm collecting answers from a series of questions. The questions are entered into the array one at a time so I can keep track of paging. $arans = array($_POST); $_SESSION['arans'][$pageid] = $arans; Then I want to check the sum of the array for scoring purposes

[PHP] Sendmail Return-Path

2004-07-27 Thread Enda Nagle - Lists
Hi Guys, I¹m using PHP¹s mail() function on several sites, but have difficulty sometimes with the mails being tagged as SPAM. I want to have the Return-Path set to the site admin, but can¹t see where to do this. I know that it can be done at server root level but I can¹t really do that as its a

[PHP] Sessions Timeout

2004-07-27 Thread Enda Nagle - Lists
Hi Guys, I have a problem with a site where I¹m using sessions. Basically, I have it so that someone enters the site and their session (shopping cart ref) is created on entry (unless it already exists) and all variables are stored in the session. Problem is that when someone goes so far in the o

Re: [PHP] freeTDS

2004-07-27 Thread Josh Close
Well, they're going to have to install php with mssql support also ./configure --with-mssql --with-freetds there are examples in the freetds.conf file of what you need to do. Basically just telling it where to connect. -Josh On Tue, 27 Jul 2004 16:49:37 -0400, John Nichel <[EMAIL PROTECTED]> w

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Erik Franzén
Thanxs for the help Curt!! Thats a tricky solution, but it works... This is almost motivating a new method in PHP5: $foo->__destroy() which will destroy the object once and for all... :) /Erik Curt Zirzow wrote: * Thus wrote Erik Franzn: $oObjectB[$i] = &$oObjectA[$i]; The above statement does no

Re: [PHP] perl LWP for PHP?

2004-07-27 Thread Matt M.
> I'm familiar with perl's LWP library. Today I searched through the PHP > documentation, but the only thing I found that was somewhat similar to > LWP was file() and some socket-functions to do http-GET/POST calls to a > foreign server. Are any higher level functions available so I don't have > to

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Vern
I get: # wget -O -q http://www.comp-wiz.com/index.html | lpr -P hp1300n --16:49:59-- http://www.comp-wiz.com/index.html => `-q' Resolving www.comp-wiz.com... done. Connecting to www.comp-wiz.com[207.234.154.95]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 22,

[PHP] perl LWP for PHP?

2004-07-27 Thread Marten Lehmann
Hello, I'm familiar with perl's LWP library. Today I searched through the PHP documentation, but the only thing I found that was somewhat similar to LWP was file() and some socket-functions to do http-GET/POST calls to a foreign server. Are any higher level functions available so I don't have t

Re: [PHP] freeTDS

2004-07-27 Thread John Nichel
Edward Peloke wrote: no, I don't see any mssql info...and yes, they said they did recompile with freetds. If there anything I have to change in the freetds conf file or in php.ini? Then either : A) It hasn't been compiled with FreeTDS or, B) The web server hasn't been restarted. -- John C. Nichel

Re: [PHP] freeTDS

2004-07-27 Thread John Nichel
Edward Peloke wrote: no, I don't see any mssql info...and yes, they said they did recompile with freetds. If there anything I have to change in the freetds conf file or in php.ini? Then either : A) It hasn't been compiled with FreeTDS or, B) The web server hasn't been restarted. -- John C. Nichel

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Matthew Sims
> > This is not true. PHP 5 passes objects by reference to functions > only. Assignments are treated the same way as php4 externally. > > > /* note: no &$f */ > function testfoo($f) { > $f->foo = 'testfoo'; > } > > class foo { public $foo; } > > /* object is passed by reference */ > $a = new f

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Curt Zirzow
* Thus wrote Erik Franzn: > $oObjectB[$i] = &$oObjectA[$i]; > > The above statement does not matter, because in PHP5 "objects are > referenced by handle, and not by value". This is not true. PHP 5 passes objects by reference to functions only. Assignments are treated the same way as php4 extern

RE: [PHP] freeTDS

2004-07-27 Thread Edward Peloke
no, I don't see any mssql info...and yes, they said they did recompile with freetds. If there anything I have to change in the freetds conf file or in php.ini? -Original Message- From: Matt M. [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 27, 2004 4:05 PM To: Edward Peloke Cc: Php-General

Re: [PHP] freeTDS

2004-07-27 Thread James E Hicks III
On Tuesday 27 July 2004 03:54 pm, Edward Peloke wrote: > My web host recompiled php with the freeTDS library for me so that I can > use the php mssql extensions but it still doesn't seem to work. He has > told me that I can change the configuration file...what needs to be done? Just guessing her

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Matthew Sims
> > The object is not destroyed!? How do I destroy it without calling > unset($b)? > Not sure if this is your solution but have you looked in to destructors? Half down this page it explains: http://us4.php.net/migration5.oop -- --Matthew Sims -- -- PHP General Mailing

Re: [PHP] exists max number of case block in switch steatment ?

2004-07-27 Thread Alister
Gianni Pirini wrote: Hello !! First of all, sorry for my english... I've one question, what is a reasonable max number of case block in a switch steatment? If i want to redirect 300 pages, for example, to one page index.php?id=32 and include in this page, in base of the id value, 300 different page

Re: [PHP] freeTDS

2004-07-27 Thread Matt M.
> I was simply using a script which attempts to use the mssql_connect function > yet I still get the error that it is undefined > > http://mwvre.ht-tech.net/dbtest.php if you do a phpinfo() do you see any mssql information? php needs to be compiled with freetds http://us4.php.net/mssql --

RE: [PHP] freeTDS

2004-07-27 Thread Edward Peloke
I was simply using a script which attempts to use the mssql_connect function yet I still get the error that it is undefined http://mwvre.ht-tech.net/dbtest.php -Original Message- From: Matt M. [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 27, 2004 3:52 PM To: Edward Peloke Cc: Php-G

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Erik Franzén
$oObjectB[$i] = &$oObjectA[$i]; The above statement does not matter, because in PHP5 "objects are referenced by handle, and not by value". Look at this example: $a = new foo(); $b = $a; unset($a); var_dump($b); >? This will output: object(foo)#1 (0) { } The object is not destroyed!? How do I destr

Re: [PHP] freeTDS

2004-07-27 Thread Matt M.
> My web host recompiled php with the freeTDS library for me so that I can use > the php mssql extensions but it still doesn't seem to work. He has told me > that I can change the configuration file...what needs to be done? any error messages? Can you use tsql to connect to the mssql databases?

[PHP] freeTDS

2004-07-27 Thread Edward Peloke
My web host recompiled php with the freeTDS library for me so that I can use the php mssql extensions but it still doesn't seem to work. He has told me that I can change the configuration file...what needs to be done? Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Matt M.
On Tue, 27 Jul 2004 21:22:05 +0200, Erik Franzén <[EMAIL PROTECTED]> wrote: > I am correcting myself... > > class foo {} > > $oObjectA = array(); > $oObjectB = array(); > > for($i=0;$i<2;$i++) { > $oObjectA[$i] = new foo(); > $oObjectB[$i] = $oObjectA[$i]; > } > > unset($oObjectA[1]);

[PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Erik Franzén
I am correcting myself... $oObjectA = array(); $oObjectB = array(); for($i=0;$i<2;$i++) { $oObjectA[$i] = new foo(); $oObjectB[$i] = $oObjectA[$i]; } unset($oObjectA[1]); var_dump($oObjectA); var_dump($oObjectB); ?> will output: array(1) { [0]=> object(foo)#1 (0) { } } array(2) { [0]

[PHP] destroying objects in an array in PHP5

2004-07-27 Thread Erik Franzén
See the following example: How do I remove an element in the oObjectA array without destroying the object? I do not want to clone any object. If I call unset($oObjectA[3]), the object will also be destroyed. apparently $oObjectB[3] is also destroyed? /Erik -- PHP General Mailing List (http://w

Re: [PHP] Is there a brian I can pick?

2004-07-27 Thread Rory McKinley
Tom Ray [Lists] wrote: Hey all- I've run into a small bump in some code I'm writing for a membership database. The first thing that needs to be done is an index of all states in the US with members. The fun part is that the state information is stored as the abbreviation in the database (ie MI,

[PHP] xored TruStudio PHP Editor

2004-07-27 Thread Daryl Meese
Does anyone know how to get the "hover" functionality working in xored's webstudio/trustudio for PHP. TIA, Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] exists max number of case block in switch steatment ?

2004-07-27 Thread Gianni Pirini
Hello !! First of all, sorry for my english... I've one question, what is a reasonable max number of case block in a switch steatment? If i want to redirect 300 pages, for example, to one page index.php?id=32 and include in this page, in base of the id value, 300 different pages, i can have some pr

Re: [PHP] Extra byte added to PDF streaming file

2004-07-27 Thread Scott Taylor
Larry E. Ullman wrote: I've seen cases where extra buffer content gets added to the downloaded file. The problem was fixed by deleting any existing buffer before sending the file to the client. Not sure that will solve the problem but it's worth a shot. How does one delete an existing buffer?

Re: [PHP] exists max number of case block in switch steatment ?

2004-07-27 Thread raditha dissanayake
Gianni Pirini wrote: Hello !! First of all, sorry for my english... I've one question, what is a reasonable max number of case block in a switch steatment? Depends on what you are trying to achieve. But if you have a lot of cases in your switch - that probably means your design can be improved.

Re: [PHP] exists max number of case block in switch steatment ?

2004-07-27 Thread Justin Patrin
On Tue, 27 Jul 2004 15:36:13 +0200, Gianni Pirini <[EMAIL PROTECTED]> wrote: > Hello !! > First of all, sorry for my english... > I've one question, what is a reasonable max number of case block in a switch > steatment? > If i want to redirect 300 pages, for example, to one page index.php?id=32 > a

[PHP] exists max number of case block in switch steatment ?

2004-07-27 Thread Gianni Pirini
Hello !! First of all, sorry for my english... I've one question, what is a reasonable max number of case block in a switch steatment? If i want to redirect 300 pages, for example, to one page index.php?id=32 and include in this page, in base of the id value, 300 different pages, i can have some pr

[PHP] exists max number of case block in switch steatment ?

2004-07-27 Thread Gianni Pirini
Hello !! First of all, sorry for my english... I've one question, what is a reasonable max number of case block in a switch steatment? If i want to redirect 300 pages, for example, to one page index.php?id=32 and include in this page, in base of the id value, 300 different pages, i can have some pr

Re: [PHP] Apache 2 and PHP for Production?

2004-07-27 Thread Marten Lehmann
Hello, And following the last line - I'm still running Apache2 with PHP5 on Windows on an increasing number of sites, without a single problem to date ;) I switched to Apache 2 and PHP 5.0.0 a week ago and hand no problems so far (several hundred thousand hits each day). Apache 2 is running in

Re: [PHP] Extra byte added to PDF streaming file

2004-07-27 Thread Larry E . Ullman
I've seen cases where extra buffer content gets added to the downloaded file. The problem was fixed by deleting any existing buffer before sending the file to the client. Not sure that will solve the problem but it's worth a shot. How does one delete an existing buffer? ob_end_flush();? ob_end_

Re: [PHP] Re: JavaScript conversion to PHP code...

2004-07-27 Thread Scott Fletcher
Good thinking... I like without the substr() because substr() take more time than we want it to be FletchSOD "Matt M." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > --snip-- > > $char_code = strpos($char_set,(substr($input,$loop,1))); > > --snip-- > > even a little shorter >

Re: [PHP] Re: Creating a PHP5 RPM

2004-07-27 Thread Brent Clements
The easiest thing to do is to take the existing Redhat EL3 php source rpm, install and get the php spec file. Edit that spec file and modify it for php5. Then copy the php 5.0 tar.gz file over to /usr/src/redhat/SOURCES and then run rpmbuild -bb php.spec or whatever you named your php spec file.

[PHP] Re: php & paypal

2004-07-27 Thread Chris Martin
Vail, Warren wrote: Did you think of saving the information (invoice number) in a session or cookie before sending them off to paypal, for use when the user returns? Warren Vail -Original Message- From: Mike R [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 27, 2004 8:51 AM To: Jason Davidso

[PHP] Re: Creating a PHP5 RPM

2004-07-27 Thread Chris Martin
Marcus Bointon wrote: I normally compile PHP straight from the regular source, however, this means that RPM loses track of what PHP version is installed on RedHat Linux (EL3), causing dependency and version mismatch problems. So it appears that I need to build an RPM from the normal source, then in

Re: [PHP] Installing PEAR on Windows

2004-07-27 Thread Matt M.
> Warning: main(PEAR.php): failed to open stream: No such file or directory in C:\ > www\pear\Archive\Tar.php on line 21 > > Fatal error: main(): Failed opening required 'PEAR.php' (include_path='/C:\DOCUM > E~1\ADMINI~1.DEV\LOCALS~1\Temp\gop1.tmp') in C:\www\pear\Archive\Tar.php on line > 21 > p

Re: [PHP] Retrieve The Last Record in a Table

2004-07-27 Thread Curt Zirzow
* Thus wrote Harlequin: > I would like to retrieve the last entry in a login table and present that to > a user so they can verify the date we have when they last logged in. retrieving the last record is a lot of overhead, instead add a 'last logged in' field to the user table. retrieve the field

[PHP] Re: PHP5 for Fedora Core 2

2004-07-27 Thread PHPDiscuss - PHP Newsgroups and mailing lists
C.F. Scheidecker Antunes wrote: > Hello all, > Are there any pre compiled rpm packages from Fedora Core 2 yet? > If not, I will most likely built it myself. > Thanks. Any chance you can send it to me when you finish? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

RE: [PHP] php & paypal

2004-07-27 Thread Vail, Warren
Did you think of saving the information (invoice number) in a session or cookie before sending them off to paypal, for use when the user returns? Warren Vail -Original Message- From: Mike R [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 27, 2004 8:51 AM To: Jason Davidson Cc: [EMAIL PROT

[PHP] Re: php & paypal

2004-07-27 Thread Steve Douville
If you have a business account there, you can use the PayPal API which does return values to you when the transaction is complete. Take a read through the PayPal docs, it's pretty well laid out there. "Mike R" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Does anyone know if it i

[PHP] Installing PEAR on Windows

2004-07-27 Thread webmaster
I've had no luck with the PEAR General List... so... I've successfully "manually" installed PEAR onto my windows server after trying many attempts at installing it properly - however, it's prooving a pain in the arse to upgrade the packages, and install any new ones. So, can anyone assist in why

RE: [PHP] php & paypal

2004-07-27 Thread Mike R
That's trueI didn't even think of that. Not a cc number, but, say, an invoice number that the person starts with before they go off to paypal and return from paypal with the same invoice number so that I can then do more things with the user (the invoice number being unique). :) Thanks, -M

Re: [PHP] Retrieve The Last Record in a Table

2004-07-27 Thread JOHN MEYER
Or you could retrieve that information prior to inserting the login information, say, as soon as they type in their login name, store that, then present it. From: Jason Davidson <[EMAIL PROTECTED]> To: Harlequin <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] Retrieve The Last Recor

Re: [PHP] php & paypal

2004-07-27 Thread Jason Davidson
Might be easier to use session vars to track whatever it is your tracking. Jason On Tue, 27 Jul 2004 11:11:31 -0400, Mike R <[EMAIL PROTECTED]> wrote: > > Does anyone know if it is possible to pass a variable in the URL to the > return page when using paypal? > > Meaning, when someone is done a

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Burhan Khalid
Vern wrote: One would think this should be really simple but it's not. wget -O -q - http://www.domain.com/file.php | lpr -P hp1300n -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php & paypal

2004-07-27 Thread Jason Merrique
You mean like the credit card number? :\ > -Original Message- > From: Mike R [mailto:[EMAIL PROTECTED] > Sent: 27 July 2004 16:12 > To: [EMAIL PROTECTED] > Subject: [PHP] php & paypal > > > Does anyone know if it is possible to pass a variable in the > URL to the return page when usin

  1   2   >