[PHP] Re: Is "gd" present?

2003-06-04 Thread Esteban Fernandez
"Todd Cary" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Is there a way to check within an application if the "gd" library has > been installed? > > Todd > -- > > Is there a way to check

[PHP] Sessions and headers

2003-06-04 Thread Chris Boget
When using PHP sessions, if the user's browser supports cookies, PHP sets the session id as a cookie (so far as I understand it). So when trying to use the session ID in a script, a cookie request is sent to the browser to get the ID and assigns it to the internal variable $PHPSESSID (again, so f

[PHP] Re: Is "gd" present?

2003-06-04 Thread Erick
just use phpinfo() ? -- "Todd Cary" <[EMAIL PROTECTED]> ???:[EMAIL PROTECTED] > Is there a way to check within an application if the "gd" library has > been installed? > > Todd > -- > > Is there a way to c

Re: [PHP] Best open source banner advertising application

2003-06-04 Thread John Wards
On Wednesday 04 Jun 2003 2:41 pm, Randum Ian wrote: > The best one without a shadow of a doubt would be phpnewads. I would have to disagree on that one ;-) http://oasis.sourceforge.net/ It wipes the floor with phpadsnew, I have used both. But it can be a bit overkill if you are only a small sit

Re: [PHP] How to optimize this MySQL command?

2003-06-04 Thread Erick
So, how about this? $resultb = mysql_query("SELECT id,title,mid,lastedit,hit,reply,`lock` FROM bt_message where ch='$ch' ORDER BY top,lastedit DESC LIMIT $limit,30",$db); while ($result = mysql_fetch_array($resultb)) { $result2b = mysql_query("SELECT nick FROM bt_member where id ='$result[mid]'",$

[PHP] Is "gd" present?

2003-06-04 Thread Todd Cary
Is there a way to check within an application if the "gd" library has been installed? Todd --

RE: [PHP] How to optimize this MySQL command?

2003-06-04 Thread PHP4 Emailer
YEAH, disregard my message, I was doing what James was doing but didn't see that you where using ""2"" seperate tables already, sigh been a great morning already. but there's my idea anyhow!! hehe David :) -Original Message- From: James Lobley [mailto:[EMAIL PROTECTED] Sent: Wednesday, Ju

php-general Digest 4 Jun 2003 13:43:27 -0000 Issue 2097

2003-06-04 Thread php-general-digest-help
php-general Digest 4 Jun 2003 13:43:27 - Issue 2097 Topics (messages 150095 through 150154): Problem with strtotime() 150095 by: Sachin Bennur\(DigitalRayInc\) 150096 by: John W. Holmes Doing simple math 150097 by: Chris Cameron 150098 by: John W. Holmes

RE: [PHP] How to optimize this MySQL command?

2003-06-04 Thread PHP4 Emailer
Wouldn't it be easier to "SELECT * from bt_member WHERE ch='$ch' && id='$result[mid]',$db); //I'm not sure of the exact syntax there since I'm a newbie, but wouldn't it be easier to do that and then do a pulling of the fields that you want? //ie... while ($result = mysql_fetch_object($resul

Re: [PHP] setlocale() changes?

2003-06-04 Thread CPT John W. Holmes
> I've been getting a warning on one of my scripts since I upgraded from 4.1.2 > to the most recent version of PHP. The warning is: > > Warning: setlocale(): Passing locale category name as string is deprecated. > Use the LC_* -constants instead > > > The script at the line that is failing sez: >

Re: [PHP] Best open source banner advertising application

2003-06-04 Thread CPT John W. Holmes
> From: "Randum Ian" <[EMAIL PROTECTED]> > Why pay for something when you can get this for nowt! ;o) I love getting things for nowt... like candy from a baby... :) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to optimize this MySQL command?

2003-06-04 Thread James Lobley
I'd guess at: $resultb = mysql_query("SELECT bt_member.nick FROM bt_member, bt_message WHERE bt_member.id=bt_message.mid AND bt_message.ch='$ch'", $db); $result2 = mysql_fetch_array($resultb); . -Original Message- From: Erick [mailto:[EMAIL PROTECTED] Sent: 04 June 2003 13:12 To:

Re: [PHP] Best open source banner advertising application

2003-06-04 Thread Randum Ian
Why pay for something when you can get this for nowt! ;o) I use it on a large scale site with tens of thousands of hits a day and it works very well. > It never ceases to amaze me how much people want for free... ANYWAY, > phpAdsNew seems to be the popular recommendation on this list. > > http://w

Re: [PHP] Best open source banner advertising application

2003-06-04 Thread Justin French
It never ceases to amaze me how much people want for free... ANYWAY, phpAdsNew seems to be the popular recommendation on this list. http://www.phpadsnew.com/ Justin on 05/06/03 12:12 AM, Adrian Teasdale ([EMAIL PROTECTED]) wrote: > Hi there > > We are looking for an open source banner advert

Re: [PHP] Best open source banner advertising application

2003-06-04 Thread Randum Ian
The best one without a shadow of a doubt would be phpnewads. > Hi there > > We are looking for an open source banner advertising application to > integrate into a site. The site will be getting a LOT of hits, so > something that will scale well, report well and just work well would be > useful. An

[PHP] Best open source banner advertising application

2003-06-04 Thread Adrian Teasdale
Hi there We are looking for an open source banner advertising application to integrate into a site. The site will be getting a LOT of hits, so something that will scale well, report well and just work well would be useful. Anyone got any thoughts on their preferred application? I'd be interested i

Re: [PHP] setlocale() changes?

2003-06-04 Thread Neil Freeman
Try removing the double quotes around LC_TIME Neil Mike At Spy wrote: *** This Message Was Virus Checked With : SAVI 3.69 May 2003 Last Updated/Checked 2nd June 2003 **

[PHP] setlocale() changes?

2003-06-04 Thread Mike At Spy
I've been getting a warning on one of my scripts since I upgraded from 4.1.2 to the most recent version of PHP. The warning is: Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead The script at the line that is failing sez: setlocale ("L

Re: [PHP] Round Off $ prices

2003-06-04 Thread Joci
Hi! ceil -- Round fractions up round -- Rounds a float floor -- Round fractions down Joe - Original Message - From: "Ralph" <[EMAIL PROTECTED]> To: "PHP General Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, June 04, 2003 2:51 PM Subject: [PHP] Round Off $ prices > How do I round o

[PHP] Round Off $ prices

2003-06-04 Thread Ralph
How do I round off prices to the like rounding off $24.80 to $25? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Registered sessions.

2003-06-04 Thread Ed Gorski
You need to append the session name and id to the header location everytime you redirect that way. So your header redirect should read: header('Location: researchpapers2.php?'.session_name().'='.session_id()); When you have normal links to other pages you don't have to do this but on header redi

RE: [PHP] My Sincere Greetings

2003-06-04 Thread Jonathan Wilkes
good point! -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: 03 June 2003 14:25 To: [EMAIL PROTECTED] Subject: Re: [PHP] My Sincere Greetings Hey Guys, If any of you recive a message like this dont just delete it, take a minute of your time and report it to the US secret

Re: [PHP] My Sincere Greetings

2003-06-04 Thread Ryan A
Hey Guys, If any of you recive a message like this dont just delete it, take a minute of your time and report it to the US secret service (or your countrys "Nigerian Scam" law authority) You can find out where to report it and all the details you ever need by just running "nigerian scam" on google

[PHP] How to optimize this MySQL command?

2003-06-04 Thread Erick
$resultb = mysql_query("SELECT id,mid FROM bt_message where ch='$ch' ",$db); while ($result = mysql_fetch_array($resultb)) { $result2b = mysql_query("SELECT nick FROM bt_member where id ='$result[mid]' ",$db); $result2 = mysql_fetch_array($result2b); . } Can combine together? -- PHP Ge

Re: [PHP] My Sincere Greetings

2003-06-04 Thread Mirco Ellis
True that!!! - Original Message - From: "Jonathan Wilkes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, June 04, 2003 13:55 Subject: RE: [PHP] My Sincere Greetings > Will someone ban this f***ing spam... > > Anyone believing this is an idiot! > > regard

RE: [PHP] ODBC

2003-06-04 Thread Jay Blanchard
Have you RTFM at http://us3.php.net/manual/en/ref.odbc.php HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] selecting first character from a MySQL table

2003-06-04 Thread Jay Blanchard
How about a substring comparison? Select all from your database and then loop through using an array of the alphabet. [NOT TESTED] $alpha_array = array("A","B","C", ); $alpha_count = count($alpha_array); for($i=0; $i<$alpha_count; $i++){ $sql = "SELECT name FROM table WHERE LEFT(nam

RE: [PHP] My Sincere Greetings

2003-06-04 Thread Jonathan Wilkes
Will someone ban this f***ing spam... Anyone believing this is an idiot! regards, Dark Angel -Original Message- From: MR NZANGA JOSEPH MOBUTU [mailto:[EMAIL PROTECTED] Sent: 04 June 2003 12:56 To: [EMAIL PROTECTED] Subject: [PHP] My Sincere Greetings FROM:Mr. Nzanga Joseph Mobutu DIRE

[PHP] My Sincere Greetings

2003-06-04 Thread MR NZANGA JOSEPH MOBUTU
FROM:Mr. Nzanga Joseph Mobutu DIRECT E-MAIL:[EMAIL PROTECTED] Dear Friend, I am the first son of the late Mobutu Sese Seko, the former President of the Congo Republic. I am presently under protective custody in Nigeria as a political refugee. I got your contact during my search for a stranger that

RE: [PHP] splitting text solved

2003-06-04 Thread electroteque
i found a snippet somewhere which helped me out and i modified it $value) { $keyword .= " +".$value; } } echo $keyword; ?> so basically u can have a heap of keywords with some in exact phrases within quotes and it adds the + for you to make it an AND boolean search string

Re: [PHP] Imgs in Database

2003-06-04 Thread PHP
An Image file is just text typically If you know the format of the images it should be a case of extracting the 'text' that is the file and sending the appropriate headers... - Original Message - From: "Craig" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 04, 2003

Re: [PHP] Gracefully dealing with Cookies OFF

2003-06-04 Thread John Huggins
On Wed, 04 Jun 2003 03:08:00 -0400, Monty wrote: >I've decided to require that members for a site need to have cookies enabled >in their browsers to sign-up and use the site. Is there a graceful way to >deal with this when users who have cookies off try to sign-up or log-in to >the site? You can

[PHP] Imgs in Database

2003-06-04 Thread Craig
Im converting a site from asp to php, Its db driven and some images are stored in the db. The previous developer stored the image files in a text string format, Im assuming I have to convert the text back into a binary format, anyone had any experience with this or can shed some light on this for

[PHP] ODBC

2003-06-04 Thread Tomá¹ Kubi¹
Hello, I need to connect from my Linux server to DSN (MS Access) on WindowsXP via ODBC. Would you helo me? Thanks Toma Kubis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Error capturing

2003-06-04 Thread Svein Larsen
Hello, Anybody got a good solution for capturing errors in php scripts? I can catch the errors by logging them to a log file (log_errors in php.ini) My problem is that i'm running a lot of sites on my server and i need to know wich site generate the error and cant find any way to get this in the

Re: [PHP] How to optimize this MySQL command?

2003-06-04 Thread Jomi Garrucho
try this if it works SELECT nick FROM bt_member LEFT JOIN bt_message ON bt_member.id=bt_message.mid WHERE bt_message.ch ='$ch' - Original Message - From: "Sunil Samuel" <[EMAIL PROTECTED]> To: "Erick" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, June 04, 2003 11:09 PM Subject:

Re: [PHP] Full path to download !!!

2003-06-04 Thread Marek Kilimajer
You want to get some file from another server by using http fopen wraper? Then please note, that some functions, e.g. file_exists(), filesize() don't work across http. fr r wrote: i have this code working perfect to allow users to download songs from my web site, but the download.php must be in

Re: [PHP] @getimagesize

2003-06-04 Thread Diana Castillo
THANKS FOR all your help, I found out it was a custom error handling program that we had that was putting out that error. "John Coggeshall" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Are you using PHP 4.3.2? Try upgrading :) > > John > > On Tue, 2003-06-03 at 05:23, Diana Castil

[PHP] Registered sessions.

2003-06-04 Thread Angelo Zanetti
Hi, I have a php page that validates if a username and password are valid. if they are the php page registers and assignes a session variable a value. Then straight after that it automatically calls then next php page using the header("Location: researchpapers2.php"); command. My question is:

RE: [PHP] Re: OpenSource PHP Project

2003-06-04 Thread Wim Paulussen
Check this out , mate. Fatal error: Failed opening required 'PEAR.php' (include_path='') in /home/groups/p/pr/prattcms/htdocs/phplayersmenu-2.3.5/lib/layersmenu.inc.php on line 4 -Oorspronkelijk bericht- Van: Randum Ian [mailto:[EMAIL PROTECTED] Verzonden: Wednesday, June 04, 2003 11:33 A

Re: [PHP] Gracefully dealing with Cookies OFF

2003-06-04 Thread Justin French
Why on earth would you refuse users without cookies?? Take a look at all the major websites (amazon & msn for starters). Do they require cookies? No. Do they require JavaScript? No. Do they require anything else special on the site? No. They take advantage of technology where available (DHTML

[PHP] IP atlas alternatives anyone?

2003-06-04 Thread Simon Dedeyne
I'm looking for a little script like IP atlas: "IP-Atlas uses NetGeo data to find latitude and longitude coordinates for a domain or ip address, as well as the city and country. It then uses GD or CSS to plot it on the globe." http://xpenguin.com/ip-atlas.php This script seems to work for me,

Re: [PHP] Re: OpenSource PHP Project

2003-06-04 Thread Randum Ian
Try here mate, http://prattcms.sourceforge.net/ > May help if the website worked... OR give us a link to the SF project > page? > > "Michael A Smith" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Hi, >> >> Anyone interested in helping out with an opensource CMS project. >> PHP/M

[PHP] Re: OpenSource PHP Project

2003-06-04 Thread Brian McGarvie
May help if the website worked... OR give us a link to the SF project page? "Michael A Smith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Anyone interested in helping out with an opensource CMS project. > PHP/MySQL/Smarty Templates/Modules checkout prattcms.sf.net. It's >

[PHP] PHP & ORA9.2.0 Stored procedure

2003-06-04 Thread news.php.net
Hi, I have deveolped a stored procedure within oracle 9.2.0. This procedure has an output parameter that is a defined as a REF CURSOR and I would to know if it is posible, using ORA functions in PHP, to run this procedure and retrieve the data contained by this REF CURSOR. I would be very grateful

[PHP] Gracefully dealing with Cookies OFF

2003-06-04 Thread Monty
I've decided to require that members for a site need to have cookies enabled in their browsers to sign-up and use the site. Is there a graceful way to deal with this when users who have cookies off try to sign-up or log-in to the site? Thanks, Monty -- PHP General Mailing List (http://www.php

Re: [PHP] How to delete a line in a TXT-file

2003-06-04 Thread Jason Wong
On Wednesday 04 June 2003 14:35, poetbox wrote: > Thank you,Mr. Jason Wong,I think what you said is below.If not,tell > me the right way,ok? [snip] > Is there any wrong above?Sorry,it do nothing again. In your original, you had some code which used explode() on the line to extract

[PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread Monty
If you're getting errors for undefined variables, you can reduce the level of error reporting in PHP.ini so it only does so for more serious errors. I had a similar problem and this cleared things up. See the PHP manual... http://www.php.net/manual/en/ref.errorfunc.php#ini.error-reporting Also, I

[PHP] Full path to download !!!

2003-06-04 Thread fr r
i have this code working perfect to allow users to download songs from my web site, but the download.php must be in same folder with any song to be downloaded. but i have songs on another server, so i can't make the file name full path like this: http://myserver.com/son1.mp3 any help plz !!

Re: Re: [PHP] How to delete a line in a TXT-file

2003-06-04 Thread poetbox
Jason Wong,您好! Thank you,Mr. Jason Wong,I think what you said is below.If not,tell me the right way,ok? =filename:edit.php===(still have ERRORs)=begin==> "; for($i=0;$i<$num;$i++) { echo "".$news[$i]." DELETE THIS LINE"; if((

[PHP] Oracle 9.2.0 stored procedure & PHP 4.3.2

2003-06-04 Thread jon
Hi, I have deveolped a stored procedure within oracle 9.2.0. This procedure has an output parameter that is a defined as a REF CURSOR and I would to know if it is posible, using ORA functions in PHP, to run this procedure and retrieve the data contained by this REF CURSOR. I would be very grateful

Re: [PHP] create script MYSQL

2003-06-04 Thread Chris Cook
There is a mysql command for doing a sql dump (dont remember what it is though). Also, you might want to check out phpmyadmin at sourceforge. This has flexible tools for putting databases into a text file. Chris From: "agus" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: [PHP] create scr

[PHP] splitting text

2003-06-04 Thread daniel
hi there , i am building a fulltext search engine which will use the mysql boolean search features , although it defaults to OR with words between spaces you have to explictly put a + in front of words so say i typed "some word" word2 ,to get both i have to do +"some word" +word2 how can i split

Re: [PHP] How to delete a line in a TXT-file

2003-06-04 Thread Jason Wong
On Wednesday 04 June 2003 08:36, poetbox wrote: > As you know,I'm a newbie in PHP,I tried your way last night,but to my > surprise,it do nothing for any way,it didn't delete any line in the > TXT-file,even the file "outputfile.txt" indeed! Perhaps it because that I > haven't understand your though

Re: [PHP] Multi Selection

2003-06-04 Thread Frank Keessen
Guys Just another challenge; i've taken the code of Wouter and as you can see i'm first passing data to the reis table.. Then i retrieve the ID... But when you have multiple selection's the trouble starts... The first record is o.k. but then the second record Get's the ID of the first.. How to avo

[PHP] Re: How do I grab the first X characters of a string?

2003-06-04 Thread Kai Poppe
$short_string = substr($long_string, 0, $length); "Erich Kolb" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > How do I grab the first X characters of a string? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] OpenSource PHP Project

2003-06-04 Thread Michael A Smith
Hi, Anyone interested in helping out with an opensource CMS project. PHP/MySQL/Smarty Templates/Modules checkout prattcms.sf.net. It's different from other CMSs in that it is not user-driven. The pages use a WYSIWYG editor (inline, htmlarea, also open-source). Thanks! -Michael -- PHP General

[PHP] create script MYSQL

2003-06-04 Thread agus
hi everyone how can i convert database mysql to text file/script file?

Re: [PHP] Administration packages

2003-06-04 Thread Justin French
I've built my own framework over time, and would highly recommend it, because you get exactly what you want. but here's a few things that might help: - some sort of form building/validating class (10's or 100's even at phpclasses.com) - read up on some of the large app frameworks... fusebox come

Re: [PHP] buildconf doesn't seem to be working for 4.3.2

2003-06-04 Thread Robert Cummings
Puzzling as heck, the buildconf just took, perhaps was related to the timestamp of the config.m4 file changing since it never took untill I started mucking with that. incidentally it worked even though the contents weren't changed *pffft* :) Cheers, Rob. Robert Cummings wrote: > > I could have s

[PHP] Session Login

2003-06-04 Thread Rodrigo
Hi guys I’m trying to build a login system with a diferential for na administration login and a partner, where a partner would have certain editing rights and the administrator would have editing rights for all the articles, but I’m having problems with sessions, and I’d like to know where could I

Re: [PHP] Doing simple math

2003-06-04 Thread Lars Torben Wilson
On Tue, 2003-06-03 at 20:02, Chris Cameron wrote: > On Tue, 2003-06-03 at 20:59, Lars Torben Wilson wrote: > > On Tue, 2003-06-03 at 19:49, Chris Cameron wrote: > > > > > > An example that looks like it -should- work: > > > > > > $Math = sqrt(81)(5+4)-1; > > > > > > What is the relation between

Re: [PHP] Doing simple math

2003-06-04 Thread Chris Cameron
On Tue, 2003-06-03 at 20:59, Lars Torben Wilson wrote: > On Tue, 2003-06-03 at 19:49, Chris Cameron wrote: > > > > An example that looks like it -should- work: > > > > $Math = sqrt(81)(5+4)-1; > > > What is the relation between the sqrt(81) and the (5+4)-1? i.e. there > is no operator there...w

Re: [PHP] Doing simple math

2003-06-04 Thread Lars Torben Wilson
On Tue, 2003-06-03 at 19:49, Chris Cameron wrote: > I'm having a problem I don't think I should be having. Basically, I'm > doing some simple math, and I'm having issues in making PHP do it (with > the brackets in particular). > > An example that looks like it -should- work: > > $Math = sqrt(81)(

[PHP] php 4.3.2 display_errors problem

2003-06-04 Thread steven melendez
Hello, I am using php 4.3.2 on NT, and I have set display_errors to Off in php.ini. However, errors are still being displayed in the browser. I have tried setting display_errors to 0, and checked using phpinfo() that the settings in php.ini are being read. I have also tried turning display_erro

RE: [PHP] Doing simple math

2003-06-04 Thread John W. Holmes
> I'm having a problem I don't think I should be having. Basically, I'm > doing some simple math, and I'm having issues in making PHP do it (with > the brackets in particular). > > An example that looks like it -should- work: > > $Math = sqrt(81)(5+4)-1; Do you mean: $Math = sqrt(81)*(5+4)-1;

[PHP] Doing simple math

2003-06-04 Thread Chris Cameron
I'm having a problem I don't think I should be having. Basically, I'm doing some simple math, and I'm having issues in making PHP do it (with the brackets in particular). An example that looks like it -should- work: $Math = sqrt(81)(5+4)-1; Well of course that doesn't work because of the (I beli

RE: [PHP] Problem with strtotime()

2003-06-04 Thread John W. Holmes
> I am not sure if this is a PHP problem. I am using strtotime() to convert > date string to timestamp. But this function fails with date prior to 1970. > The documentation however says that range is Fri, 13 Dec 1901 20:45:54 GMT > to Tue, 19 Jan 2038 03:14:07 GMT Actually it says it's "typically"

[PHP] Problem with strtotime()

2003-06-04 Thread Sachin Bennur\(DigitalRayInc\)
Hello, (B (BI am not sure if this is a PHP problem. I am using strtotime() to convert (Bdate string to timestamp. But this function fails with date prior to 1970. (BThe documentation however says that range is Fri, 13 Dec 1901 20:45:54 GMT (Bto Tue, 19 Jan 2038 03:14:07 GMT (B (BTo be specif

RE: [PHP] mcrypt installation

2003-06-04 Thread Daniel Rychlik
Here is how I installed it and got it working. This is straight out of the PHP manual. You should read it, it helps. LIV. Mcrypt Encryption Functions Introduction This is an interface to the mcrypt library, which supports a wide variety of block algorithms such as DES, TripleDES, Blowfish (

[PHP] buildconf doesn't seem to be working for 4.3.2

2003-06-04 Thread Robert Cummings
I could have sworn buildconf was used to rebuild the configure script with any new extensions added to the ext/ directory. For some reason though nothing is being added and I'm getting no warning for PHP 4.3.2 Anyone have any ideas? Cheers, Rob. -- .-.

Re: Re: [PHP] How to delete a line in a TXT-file

2003-06-04 Thread poetbox
Jason Wong,您好! As you know,I'm a newbie in PHP,I tried your way last night,but to my surprise,it do nothing for any way,it didn't delete any line in the TXT-file,even the file "outputfile.txt" indeed! Perhaps it because that I haven't understand your thought and absolutely copy your words to th

Re: [PHP] php session not persisting

2003-06-04 Thread Eric D.
Thanks again Kirk. session_id() is not being passed correctly. The two pages contain different page ids. I had "display_errors = ON" in php.ini and received the following msgs: Notice: Undefined index: sess_var in D:\Program Files\Apache Group\Apache2\htdocs\page2.php on line 13 sess_var = So pa

Re: [PHP] Shipping Rates

2003-06-04 Thread Jaap van Ganswijk
At 2003-06-01 01:48 -0700, Ralph wrote: >Maybe it's just that it's late, but can't seem to figure this out. I >want to show a shipping price depending on the amount of purchase. I >thought about using a lot of if() statements, but I know this is not the >best way to go about this. > >Can anybody en

[PHP] Administration packages

2003-06-04 Thread christian calloway
Hey everyone, I find myself building alot of admin control areas, or in otherwords, a group of forms that lets an end user control data and appearances of his/her site. What I am looking for is a package of classes/functions that will help me automate and modularize this process a little more. I a

Re: [PHP] Re: move_uploaded_file > 1MB

2003-06-04 Thread Yves Daemen
No it's not possible, you have to see the error to actually believe it ;-) It goes like this: You have a form with a file input field, you select a file on your HD, and almost the "exact" moment you press the "submit"-button, you get a "Page not found 404". It's very weird when you see it actuall

[PHP] PHP extension is not installed?

2003-06-04 Thread David Busby
List, I'm trying to install PHP and after each make I get this: Installing PEAR environment: /usr/lib/php/ [PEAR] Archive_Tar: 'xml' PHP extension is not installed [PEAR] Console_Getopt: 'xml' PHP extension is not installed [PEAR] PEAR: 'xml' PHP extension is not installed [PEAR] DB: 'xm

Re: [PHP] preg_replace help

2003-06-04 Thread Ernest E Vogelsinger
At 19:18 03.06.2003, Jackson Miller said: [snip] >Maybe I should clarify. > >$message = 'Visit http://jaxn.org"; target="_top">My personal >site to learn more about me. >Visit http://memigo.com";>memigi to learn about current >events.'; > >What I want is to r

RE: [PHP] Re: move_uploaded_file > 1MB

2003-06-04 Thread electroteque
move_uploaded_file is copying the temp file to a permanent directory right ? thats on the server , check if the temp file is there with $_POST['tmp_name'] or its size value -Original Message- From: Yves Daemen [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 7:44 AM To: [EMAIL PROT

Re: [PHP] CLI problems

2003-06-04 Thread Jackson Miller
Try using #!/usr/local/bin/php My guess is that when you run: ls -ls /usr/bin | grep php you will see that php is a symlink to /usr/local/bin/php -Jackson On Tue, 2003-06-03 at 16:54, Brian Paulson wrote: > I have been looking for answer but have not located any thing that will > solve my probl

RE: [PHP] php session not persisting

2003-06-04 Thread Johnson, Kirk
Set your error reporting to E_ALL, to see if anything else is going on. Add this line right after session_start() in both files, to make sure the session ID is getting passed correctly. The same ID should be displayed in both files: echo "ID = " . session_id() . ""; > -Original Message-

[PHP] CLI problems

2003-06-04 Thread Brian Paulson
I have been looking for answer but have not located any thing that will solve my problem. The problem I am having is that I cannot get php scripts to run from the command line, I can run php straight from the command line and it works and by using -f it parses my file just fine, but when it comes

[PHP] Re: move_uploaded_file > 1MB

2003-06-04 Thread Yves Daemen
I got the same error some time ago, and I almost went nuts trying to find the cause of this seemingly "insoluble" problem. But it has actually nothing at all to do with your script or the max_file_size in PHP or the one you give with the HTML form. Those are offcourse 2 limits which are important,

Re: [PHP] Change object state

2003-06-04 Thread Lars Torben Wilson
On Tue, 2003-06-03 at 14:34, [EMAIL PROTECTED] wrote: > Is there any way I can change the state of an already instantiated object? > > ex: > > $thisone = new Object(); > > $content = something; > > $thisone -> SetContent($content); > > $thisone -> Display(); > > > That creates the object. N

[PHP] Change object state

2003-06-04 Thread [EMAIL PROTECTED]
Is there any way I can change the state of an already instantiated object? ex: $thisone = new Object(); $content = something; $thisone -> SetContent($content); $thisone -> Display(); That creates the object. Now if I want to change its content: $content = something different; $thisone ->

[PHP] Sorting a merged array? how?

2003-06-04 Thread A. Lyse
Please dont kill me for posting here. I dont know where else to post. I'm a newbie and is completly stuck with a php problem :( I got this code (among with more though...): *** $i1=hentIngresser($nettstedid,38,$sprakid,$offsetannet,$antallmotor); $i2=hentIngresser($nettstedid,

[PHP] PHP runtime error with Apache 1.3.27 & Oracle 9.0.1.0

2003-06-04 Thread Jonathan Cowherd
I'm attempting to upgrade a machine from SLES7 to SLES8 and when I recompiled apache + php4 + oracle on SLES8, I get this when attempting to start apache. I can copy the libphp4.so from the old machine over and it will start, but it won't connect to the database. Is this a bug in php, Oracle, or

Re: [PHP] Multi Selection

2003-06-04 Thread Jim Lucas
if you are using a mysql data base setup and you have any indecies on the table that you are inserting the data into, then MySQL will automatically re-index the table each and every time the data in the table is modified. Jim Lucas - Original Message - From: "Frank Keessen" <[EMAIL PROTECT

Re: [PHP] php session not persisting

2003-06-04 Thread Eric D.
Thanks Kirk! I have all of the conditions you set out met. And still doesn't work. I also added session__is_registered("sess_var") to check and it tells me that it's not registered. 1st script - page1.php: "; //echos fine here ?> Next page 2nd script - page2.php: ";} else {echo "false"

Re: [PHP] php session not persisting

2003-06-04 Thread Eric D.
Thanks Kirk! I have all of the conditions you set out met. And still doesn't work. I also added session__is_registered("sess_var") to check and it tells me that it's not registered. 1st script - page1.php: "; //echos fine here ?> Next page 2nd script - page2.php: ";} else {echo "false"

Re: [PHP] Fw: What Visual PHP Edit ?

2003-06-04 Thread Bix
Dreamweaver MX has a Live mode. It uploads the script to a testing server and it shows the output live as you edit, given whatever post/get/cookie variables you want to pass to it. Quite clever. Unfortunately, DW MX is as stable as an elephant on a pole. "Miles Thompson" <[EMAIL PROTECTED]> wrot

Re: [PHP] Re: PHP and base32 encryption

2003-06-04 Thread Mark
There's a dec2bas() function on this page that might be helpful... http://us3.php.net/bc - search the page for base32 There are also a number of references that come up quickly on google that will explain base32 encoding. You should be able to reverse engineer it. --- DvDmanDT <[EMAIL PROTECTED]>

[PHP] move_uploaded_file > 1MB

2003-06-04 Thread Maurício Valente
Hello everybody! I'm trying to upload a file using the move_uploaded_file function, everyting works fine when the files have less than 1MB but when I upload one more than this, IE returns the error The page cannot be displayed and in it's title shows Cannot find server. I alreary edit php.ini sett

[PHP] selecting first character from a MySQL table

2003-06-04 Thread Tim Thorburn
Hi, First, let me say many thanks to those who responded to my cron tab question - it's working well now. And now for my next trick ;) I'm looking for more of an opinion here. I'm doing an alphabetical listing of members for this site, I've done a general query of my MySQL table to select al

Re: [PHP] php session not persisting

2003-06-04 Thread Jason Wong
On Wednesday 04 June 2003 04:08, Eric D. wrote: > Thanks. I'm using PHP-4.3.1. That's good, so again ... > > If you're using PHP > 4.1.0 then you ought to be using $_SESSION for all > > your session needs -- see manual for examples. Reiterate, read: manual > Session handling functions > The pro

RE: [PHP] Validating user input

2003-06-04 Thread Lars Torben Wilson
On Tue, 2003-06-03 at 02:46, Sichta Daniel wrote: > Another way is to do it on client side (javascript) > > DS Indeed, but then you have to be prepared for it not to work if the user doesn't have js enabled. Torben > -Original Message- > From: Shaun [mailto:[EMAIL PROTECTED] > Sent:

Re: [PHP] Multi Selection

2003-06-04 Thread Frank Keessen
Guys Just another challenge; i've taken the code of Wouter and as you can see i'm first passing data to the reis table.. Then i retrieve the ID... But when you have multiple selection's the trouble starts... The first record is o.k. but then the second record Get's the ID of the first.. How to avo

Re: [PHP] OK guys, thank you so far

2003-06-04 Thread Lars Torben Wilson
On Tue, 2003-06-03 at 13:20, David Nicholson wrote: > Hello, > > This is a reply to an e-mail that you wrote on Tue, 3 Jun 2003 at 20:04, > lines prefixed by '>' were originally written by you. > > I've tried and here's the output: > > Undefined index: input > > if ($HTTP_GET_VARS['printout'] != "

Re: [PHP] Multi Selection

2003-06-04 Thread Frank Keessen
Jim, Why does the data have to be reindexed??? I don't understand, can you give me an explenation? Thanks, Frank - Original Message - From: "Jim Lucas" <[EMAIL PROTECTED]> To: "Frank Keessen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, June 03, 2003 10:30 PM Subject: Re: [PH

[PHP] mcrypt installation

2003-06-04 Thread Tom Ray [Lists]
I'm just a little curious, I've never really don't this before, but is installing mcrypt usually a very hard thing to do, or will it be pretty simple for a dolt like me? :) Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   >