Re: [PHP] stripping newlines from a string

2003-06-09 Thread Lars Torben Wilson
On Sun, 2003-06-08 at 22:44, Charles Kline wrote: > Hi all, > > How would i go about stripping all newlines from a string? > > Thanks, > Charles Something like this: Good luck, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschap

Re: [PHP] stripping newlines from a string

2003-06-09 Thread Philip Olson
On Mon, 9 Jun 2003, Charles Kline wrote: > Yes. Is weird. I thought this would work too, but for some reason it > was not removing them all. I wonder if re-saving the files with UNIX > linebreaks (or try DOS) would have any effect. Will report back. $str = str_replace (array("\r", "\n"), '', $s

[PHP] post data?

2003-06-09 Thread HPS
Dear all, i am using PHP 4.2.2 with Red Hat 8.0 i had a form in , which has a form like this say, i enter "6" in the text box. After i click the submit button and i echo the value of "course_id", it returned "6course_id=6", NOT "6" do you have any idea? thx a lot! HPS -- PHP General Ma

RE: [PHP] project users manual howto

2003-06-09 Thread electroteque
if you dont mind an example would be nice the site is totally confusing of course i have read the documentation -Original Message- From: Armand Turpel [mailto:[EMAIL PROTECTED] Sent: Sunday, June 08, 2003 11:06 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] project users manual howto With p

RE: [PHP] post data?

2003-06-09 Thread esctoday.com | Wouter van Vliet
What does your form tag look like? -Oorspronkelijk bericht- Van: HPS [mailto:[EMAIL PROTECTED] Verzonden: maandag 9 juni 2003 9:32 Aan: [EMAIL PROTECTED] Onderwerp: [PHP] post data? Dear all, i am using PHP 4.2.2 with Red Hat 8.0 i had a form in , which has a form like this say, i

RE: [PHP] Execute command which has root privileges

2003-06-09 Thread esctoday.com | Wouter van Vliet
Probably you should look over here for info about suexec http://httpd.apache.org/docs/suexec.html, or check the 'sudo' man pages... With that you could gain root privilages.. -Oorspronkelijk bericht- Van: vijaypatel [mailto:[EMAIL PROTECTED] Verzonden: maandag 9 juni 2003 6:06 Aan: [EMAIL

[PHP] Re: urldecode problem :(

2003-06-09 Thread Rosen
Thanks, But how can I understand when to decode string and when not ? Rosen "Seairth Jacobs" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Rosen" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > HI, > > I'm using "urldecode" function to decode string from > >

[PHP] Sending output to audio device from PHP

2003-06-09 Thread Edwin Boersma
Hi, I have written an MP3 Jukebox server with PHP and MySQL, that runs on Linux server with Apache. To play music, I use the external program "plaympeg" from the SDL package. It works fine, but I cannot have any control over the player. To play the next song, I have to wait for the player to co

[PHP] Good Hosting company

2003-06-09 Thread Awlad Hussain
anyone knows any good cheap hosting company in UK/US?? with good support. Many thanks awlad ___ Sheridan Phoenix Company The Business Centre Kimpton Road Luton Bedfordshire LU2 0LB Email: [EMAIL PROTECTED] Phone:

[PHP] Re: Good Hosting company

2003-06-09 Thread Dustin Pate
http://www.meubox.net is a good hosting company. Check out the prices, and if you would like to setup an account contact me at [EMAIL PROTECTED] "Awlad Hussain" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] anyone knows any good cheap hosting company in UK/US?? with good support.

[PHP] Re: reading a file into variable for using in a javascript

2003-06-09 Thread Madhusudhana Rao Sunkara
you could try using file() or readfile(). while file reads the content of the file in to an array, readfile reads a file and writes it to the output buffer. - Madhu Charles Kline wrote: Hi all, I am reading the content of a text file into a variable to be used in a javascript. I am reworking s

[PHP] No input file specified

2003-06-09 Thread Dave Hartburn
I'm running a couple of php scripts from the cgi-bin directory on Slackware linux 8.1, under apache 1.3.20. The most simple example of a script is: #!/usr/local/pkg/php4.3-withsnmp/bin/php If I install php-4.3.0, this will run fine, however compiling php-4.3.2 with the same options: ./configure -

Re: [PHP] post data?

2003-06-09 Thread HPS
the form tag is Thx! HPS "Esctoday.Com | Wouter Van Vliet" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What does your form tag look like? > > -Oorspronkelijk bericht- > Van: HPS [mailto:[EMAIL PROTECTED] > Verzonden: maandag 9 juni 2003 9:32 > Aan: [EMAIL PROTECTED] >

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in f:\.....\none.php on line 286

2003-06-09 Thread Marcelo Luiz de Laia
Hi Thomas and All, > why are you using "sql_query" through your code? > its > mysql_query for mysql! I use phpnuke and it have a sql_layer.php. You are correct, for mysql is mysql_query. But this dont is the problem, I change it and the problem continue! Any tip?? Thanks Marcelo - Origin

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in f:\.....\none.php on line 286

2003-06-09 Thread Marcelo Luiz de Laia
Hi Janet, I dont have know how in php. I inserted the function mysql_error() in my code and it dont return any message! Thanks Marcelo > This means that when you did: > > $result = mysql_query($sql); > > $result did not end up with a valid resource in it. Then, when you do the fetch row comman

RE: [PHP] project users manual howto

2003-06-09 Thread electroteque
i'll make this a bit more clear i'm looking for tutorials or howtos on technical writing , and maybe structures of laying out technical documentation , phpdoc is for developer documentation , phat chance i'm gonna put user level documentation embedded into the comments of the scripts thats just red

[PHP] categorise list

2003-06-09 Thread Awlad Hussain
I am dispalying data from mysql database using the codes below: $while($row=mysql_fetch_array($result)) { echo $row[name]; } How can i format the above data in this format as shown below? in alphabetical order A ---

[PHP] what is the OOP structure for PHP

2003-06-09 Thread See Kok Boon
Dear Experts, Is there an OOP (object oriented programming) structure for PHP? If so, could someone show me the basic structure of such an object? An exmple with definition and implementation would be great. Thanks! Yours sincerely, Mr See Kok Boon

[PHP] $HTTP_POST_VARS

2003-06-09 Thread Awlad Hussain
Whats the advantage (or shall i say disadvantage )of passing form variables to a function like shown below: function function_name($var,$var1,$var2) { } rather than passing the $HTTP_POST_VARS array to the fuction like: function function_name($HTTP_POST_VARS) { } Is any better than other? or

[PHP] Yearbook script?

2003-06-09 Thread MIKE YRABEDRA
Anyone know of a good yearbook script? One that will show a listing of photos, that when clicked on, will bring up a page with more info on the individual? TIA ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock, MacAgent and MacSurfshop

RE: [PHP] Yearbook script?

2003-06-09 Thread John W. Holmes
> Anyone know of a good yearbook script? One that will show a listing of > photos, that when clicked on, will bring up a page with more info on the > individual? I'm sure any gallery type script could be used for this. Just get one that allows comments for the pictures. Maybe adapt the commenting

[PHP] condensing a list from MySQL

2003-06-09 Thread Tony Crockford
Hi all, not sure where to start with this. I have a keywords field in a mysql database - allows up to 100 characters of words seperated by spaces. at a late stage in the development process the client would now like a summary list of keywords that they've entered. I guess what I need to do is o

Re: [PHP] $HTTP_POST_VARS

2003-06-09 Thread Àíòîí
Hi AH> Whats the advantage (or shall i say disadvantage )of passing form variables to a function like shown below: AH> function function_name($var,$var1,$var2) AH> { AH> } AH> rather than passing the $HTTP_POST_VARS array to the fuction like: AH> function function_name($HTTP_POST_VARS) AH> {

RE: [PHP] post data?

2003-06-09 Thread esctoday.com | Wouter van Vliet
in that case,.. I guess something is going wrong in your checkform javascript function .. probably you attach the name and value (by mistake) to eachother in there -Oorspronkelijk bericht- Van: HPS [mailto:[EMAIL PROTECTED] Verzonden: maandag 9 juni 2003 12:16 Aan: [EMAIL PROTECTED] O

RE: [PHP] post data?

2003-06-09 Thread John W. Holmes
It's an Apache2 / PHP bug. Upgrade to the latest versions of each (although Apache2 and PHP are still not recommended). ---John W. Holmes... Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.

Re: [PHP] categorise list

2003-06-09 Thread Bas Jobsen
$letter=''; $while($row=mysql_fetch_array($result)) { if($letter!=$row[name][0]) { echo $row[name][0].''; $letter=$row[name][0]; } echo $row[name].''; } Op maandag 09 juni 2003 12:41, schreef u: > I am dispalying data from mysql database using the codes below: > > $while($row=mysql_fetch_array($

Re: [PHP] filter out with date?

2003-06-09 Thread A. Lyse
"John W. Holmes" <[EMAIL PROTECTED]> wrote > Wouldn't it be smarter to only fill this array with items matching the > date you want in the first place?? How? > > Anyhow...now you'll have to loop through each "ingress Object" and see > if substr($obj->publisert,-2) matches the month you want. Dont k

RE: [PHP] condensing a list from MySQL

2003-06-09 Thread John W. Holmes
> I have a keywords field in a mysql database - allows up to 100 > characters of words seperated by spaces. > > at a late stage in the development process the client would now like a > summary list of keywords that they've entered. > > I guess what I need to do is open each keyword field, extract

Re: [PHP] $PHP_AUTH_USER question...

2003-06-09 Thread Wendell Brown
On Fri, 6 Jun 2003 11:36:51 +0100, [EMAIL PROTECTED] wrote: >How can I get that to talk to $PHP_AUTH_USER? I'm not sure this is exactly what you want (actually, I'm pretty sure this is coming at it from the opposite end), but here is a way I used it for a very simple / low security situation. I

RE: [PHP] filter out with date?

2003-06-09 Thread John W. Holmes
> > Wouldn't it be smarter to only fill this array with items matching the > > date you want in the first place?? > How? I don't know. You do create this array at some point, right? How do you do it? How do you "create" the date field in the "ingress Object" ? Whenever/However you're creating this

RE: [PHP] what is the OOP structure for PHP

2003-06-09 Thread John W. Holmes
> Is there an OOP (object oriented programming) structure for PHP? If so, > could someone show me the basic structure of such an object? An exmple > with > definition and implementation would be great. Thanks! http://us2.php.net/manual/en/language.oop.php ---John W. Holmes... Amazon Wishlist: ht

RE: [PHP] categorise list

2003-06-09 Thread John W. Holmes
> I am dispalying data from mysql database using the codes below: > > $while($row=mysql_fetch_array($result)) > { > echo $row[name]; > } > > How can i format the above data in this format as shown below? in > alphabetical order > > A >

RE: [PHP] Automatic Headers and Footers

2003-06-09 Thread Jay Blanchard
[snip] The reasonn for my "difficult" answer was because the criteria for his solution indicated that he did not want to modify the html pages themselves. Thus the above solution is invalid :| [/snip] I see what you are saying, but how much modification is too much? :) OK, another waythe HTM

RE: [PHP] Yearbook script?

2003-06-09 Thread Edward Peloke
I agree, this would be like most gallery type pages... I also did a small demo page for a used vehicle dealership that could be usedyou just substitute the people for the cars...:) http:\\www.peloke.webhop.org -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent:

[PHP] This is NOT the right place to ask this but I am desperate

2003-06-09 Thread Simon Thurtle
Hi all, I know this is not the right group to this but I am desperate. I have just got Apache and I am a total newbie to Apache and to playing with servers, so as u can imagine I am floundering a tad at the mo!! I have set-up and cofig'd apache 2.0.46 on a Windows XP machine on a LAN with ADSL net

Re: [PHP] This is NOT the right place to ask this but I am desperate

2003-06-09 Thread Randum Ian
Have you tried typing "localhost"? > Hi all, > > I know this is not the right group to this but I am desperate. I have > just got Apache and I am a total newbie to Apache and to playing with > servers, so as u can imagine I am floundering a tad at the mo!! I have > set-up and cofig'd apache 2.0.46

Re: [PHP] This is NOT the right place to ask this but I am desperate

2003-06-09 Thread bbonkosk
Run 'ipconfig' from a command prompt to get your IP address. (or as mentioned, localhost will work) -Brad > Hi all, > > I know this is not the right group to this but I am desperate. I have just > got Apache and I am a total newbie to Apache and to playing with servers, so > as u can imagine I am

[PHP] Creating Images

2003-06-09 Thread Chris Blake
Greetings learned PHP(eople), I am using the code below to create buttons based on entries that are inserted into a text field from the preceding page. I got this code from my trusty tome "PHP and MySQL Web Development" by Luke Wellign/Laura Thomson. Problem is this : If I type in more than 18

[PHP] SAFE MODE Restriction in effect

2003-06-09 Thread Ben Edwards
Getting the below error from a php site I am developing. I am using a new server so I guess it is a php configuration thing, but how do I fix it. Ben Warning: SAFE MODE Restriction in effect. The script whose uid is 510 is not allowed to access /home/virtual/site4/fst/var/www/html/test owned b

Re: [PHP] Yearbook script?

2003-06-09 Thread MIKE YRABEDRA
on 6/9/03 8:58 AM, Edward Peloke at [EMAIL PROTECTED] wrote: What script is this based off? > I agree, this would be like most gallery type pages... > > I also did a small demo page for a used vehicle dealership that could be > usedyou just substitute the people for the cars...:) > > http

Re: [PHP] This is NOT the right place to ask this but I am desperate

2003-06-09 Thread Ryan A
Hi, Apache is a fantastically written server/program, thats why it has its own mailing list. why not write there? You will get a lot more answers to the point plus you wont bug others on this list. Cheers, -Ryan - Original Message - From: "Simon Thurtle" <[EMAIL PROTECTED]> To: <[EMAIL

RE: [PHP] SAFE MODE Restriction in effect

2003-06-09 Thread Ben Edwards
$dp = opendir( $currdir ); Basically it seems like I need to turn 'SAFE MODE' off but I dont really know what it it or how to turn it off. In fact I am not sure where the config file is on a *nix box or what is it called. Ben At 15:58 09/06/2003 +0200, winst0n wrote: what does the line

[PHP] Re: This is NOT the right place to ask this but I am desperate

2003-06-09 Thread Mike Mannakee
http://127.0.0.1:8080 "Simon Thurtle" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I know this is not the right group to this but I am desperate. I have just > got Apache and I am a total newbie to Apache and to playing with servers, so > as u can imagine I am flounde

RE: [PHP] SAFE MODE Restriction in effect

2003-06-09 Thread Ben Edwards
Changed it to dir but not made any difference. I have root access to the server so could change php.ini. However ; Safe Mode ; safe_mode = Off ; By default, Safe Mode does a UID compare check when ; opening files. If you want to relax this to a GID compare, ; then turn on safe_mode_gid. safe_mo

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not avalid MySQL result resource in f:\.....\none.php on line 286

2003-06-09 Thread Thomas Seifert
On Mon, 9 Jun 2003 07:35:16 -0300 [EMAIL PROTECTED] (Marcelo Luiz De Laia) wrote: > I use phpnuke and it have a sql_layer.php. You are correct, for mysql is > mysql_query. But this dont is the problem, I change it and the problem > continue! > > Any tip?? I think you are mixing the layer and nat

[PHP] difference twixt mod_php_memory_usage and top size/res

2003-06-09 Thread Eric Gehner
I'm trying to get reliable values for memory usage on my php scripts, some of which are making big pdfs using PDFlib. I've set up a CustomLog in my apache config file using the PHP memory usage note to apache and I'm trying to understand the discrepancies between the peak memory usage value logged

[PHP] access a static variable of a class

2003-06-09 Thread aberindei
Hello, One line to say this is my first post here, I thought about posting in php-general, but ZE2 is in development, so... I want to access a static variable of a class, but I CANNOT use directly the class name, so class name is in a variable. To be clear: class foo { static $conf =

Re: [PHP] Good Hosting company

2003-06-09 Thread Frank Keessen
Hi, you can go to www.3shost.com very cheap and very good! My collegue's have their website running their.. Due to some specific settng's i'm hosting in the Netherlands.. Regards, Frank - Original Message - From: "Awlad Hussain" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday,

[PHP] Mutile select search engine

2003-06-09 Thread Awlad Hussain
I have a advance search page, similar to this http://www.shaadi.com/partner_search/matrimonial_search/advancedmarriagesearch.php (mine on local server). I can create the sql statement for it ...the only problem i have is passing the all variables from page to page in record navigation..(I use f

RE: [PHP] Mutile select search engine

2003-06-09 Thread John W. Holmes
> I have a advance search page, similar to this > http://www.shaadi.com/partner_search/matrimonial_search/advancedmarriage se > arch.php (mine on local server). > > I can create the sql statement for it ...the only problem i have is > passing the all variables from page to page in record navigatio

Re: [PHP] post data?

2003-06-09 Thread Billy
wouter, the checkform should be alright, coz i had been using Redhat 7.2+apache 1.3 + php 4.1.2 for a year and the program is working very good thx a lot! HPS "Esctoday.Com | Wouter Van Vliet" <[EMAIL PROTECTED]> ??? news:[EMAIL PROTECTED] ???... > in that case,.. I guess something is going wro

Re: [PHP] post data?

2003-06-09 Thread Billy
Thx a lot John. Red Hat 8.0 is bundled with Apache 2 + php 4.2 if i needed to use Red Hat 8.0, except upgrading both program to the latest version (which as u saidnot recommended) , any other combination of apache + php do u recommend? thx a lot! HPS "John W. Holmes" <[EMAIL PROTECTE

RE: [PHP] IE Pagelength issue

2003-06-09 Thread Larry Brown
I found the problem. The script was creating each table within the previous table. Apparently there is a limit of 25 nested levels for IE. I separated each table and it loads all of them ok. Thanks John, Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: L

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not avalid MySQL result resource in f:\.....\none.php on line 286

2003-06-09 Thread Philip Olson
On Mon, 9 Jun 2003, Thomas Seifert wrote: > On Mon, 9 Jun 2003 07:35:16 -0300 [EMAIL PROTECTED] (Marcelo Luiz De Laia) wrote: > > > I use phpnuke and it have a sql_layer.php. You are correct, for mysql is > > mysql_query. But this dont is the problem, I change it and the problem > > continue! > >

Re: [PHP] post data?

2003-06-09 Thread Rasmus Lerdorf
Apache-1.3.x with whatever version of PHP you want. -Rasmus On Tue, 10 Jun 2003, Billy wrote: > Thx a lot John. > > Red Hat 8.0 is bundled with Apache 2 + php 4.2 > if i needed to use Red Hat 8.0, except upgrading both program to the latest > version (which as u saidnot recommended) ,

[PHP] Little help

2003-06-09 Thread Mike Mannakee
Hi, I have a script that records the languange and time zone of every user that comes to the site. Currently I am testing this and need some people to just surf a couple pages in the site, from around the world. If you don't mind, please just see a page or two on this site. It doesn't matter any

RE: [PHP] Yearbook script?

2003-06-09 Thread Edward Peloke
not based off anything...wrote it -Original Message- From: MIKE YRABEDRA [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:38 AM To: PHP List Subject: Re: [PHP] Yearbook script? on 6/9/03 8:58 AM, Edward Peloke at [EMAIL PROTECTED] wrote: What script is this based off? > I agre

RE: [PHP] Automatic Headers and Footers

2003-06-09 Thread Wendell Brown
On Mon, 9 Jun 2003 07:21:45 -0500, Jay Blanchard wrote: >I see what you are saying, but how much modification is too much? :) > >OK, another waythe HTML could be read into a page (fopen()) >containing the header/footer stuff. You'd have to deal with >identification of which page you want load

Re: [PHP] Automatic Headers and Footers

2003-06-09 Thread Paul Chvostek
On Mon, Jun 09, 2003 at 12:26:24PM -0500, Wendell Brown wrote: > > > >OK, another waythe HTML could be read into a page (fopen()) > >containing the header/footer stuff. You'd have to deal with > >identification of which page you want loaded, but shouldn't be too hard. > > Here is what I ended

[PHP] sessions, IE and pop-up windows

2003-06-09 Thread Emma Jane Hogbin
I'm working on a Calendar script right now that uses sessions. When a user clicks on the "edit" button a pop-up window appears so that the full calendar is still available along with the new event that's being editted. It works fine in Mozilla but in IE the pop-up window appears to log out the user

[PHP] Session not working?

2003-06-09 Thread Frank Keessen
Hi, I'm I missing something? I'm trying to get data into a session (booking.php) and then print it off by a second page (test3.php). booking.php: $_REQUEST["submit"]=isset($_REQUEST["submit"])?$_REQUEST["submit"]:""; if($_REQUEST['submit']!="") { $dater=$_POST['$dater']; $aantalvol=$_POST['$aan

Re: [PHP] Session not working?

2003-06-09 Thread Emma Jane Hogbin
On Mon, Jun 09, 2003 at 08:08:18PM +0200, Frank Keessen wrote: > I get page not be displayed... > Even with the full URL in the HEADER section it doesn't work.. What's the URL of the page it's trying to find? i.e. what does the location bar on your browser say? Is it the right URL, or is it lookin

Re: [PHP] Session not working?

2003-06-09 Thread Frank Keessen
Hi, It's pointing towards the booking.php (which is the 'sender' page..) Exact error message: The Page cannot be displayed.. So it's no 404.. I think.. Frank - Original Message - From: "Emma Jane Hogbin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 09, 2003 8:10 PM S

Re: [PHP] post data?

2003-06-09 Thread Rasmus Lerdorf
On Mon, 9 Jun 2003, Michael A Smith wrote: > Get Apache 1.3.27 (I think). and PHP. Follow the instructions on the PHP > site! I found that those are the only one's I could get to work. Any PHP > version using --with-apxs=/usr/local/apache I couldn't get to work. Also > take a look at what you'll ne

[PHP] how to count memory used by a script

2003-06-09 Thread Peter Berglund
How do I count the memory usage of a script/page. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session not working?

2003-06-09 Thread Leif K-Brooks
Use a browser that displays errors properly, like Mozilla. Frank Keessen wrote: Hi, It's pointing towards the booking.php (which is the 'sender' page..) Exact error message: The Page cannot be displayed.. So it's no 404.. I think.. Frank - Original Message - From: "Emma Jane Hogbin"

[PHP] PHP/Apache - Problem with REMOTE_USER var.

2003-06-09 Thread Pavel Janda
Hello everyone, I have installed apache and PHP (using Windows :o(() on two computers, where httpd.conf and php.ini seem to be same. But, on one mashine is variable REMOTE_USER working well and on the second it is empty all the time, however apache auth.-function works well on both of them. (The c

[PHP] Re: Little help

2003-06-09 Thread Pavel Janda
I've just visited your web from Czech rep... Does your script work OK? :o)) Pavel "Mike Mannakee" <[EMAIL PROTECTED]> pí¹e v diskusním pøíspìvku news:[EMAIL PROTECTED] > Hi, I have a script that records the languange and time zone of every user > that comes to the site. Currently I am testing th

Re: [PHP] Session not working?

2003-06-09 Thread Emma Jane Hogbin
On Mon, Jun 09, 2003 at 08:18:10PM +0200, Frank Keessen wrote: > It's pointing towards the booking.php > (which is the 'sender' page..) > Exact error message: The Page cannot be displayed.. > So it's no 404.. I think.. Ah. So it's not even moving off the original page... I don't have your original

Re: [PHP] how to count memory used by a script

2003-06-09 Thread Philip Olson
On Mon, 9 Jun 2003, Peter Berglund wrote: > How do I count the memory usage of a script/page. As of 4.3.2, if you compile PHP with --enable-memory-limit you may use memory_get_usage(). This is documented and will show up when the next PHP manual is built. Regards, Philip -- PHP General Mail

Re: [PHP] Session not working?

2003-06-09 Thread Frank Keessen
Hi, The orignal code was in the first mail; again; $_REQUEST["submit"]=isset($_REQUEST["submit"])?$_REQUEST["submit"]:""; if($_REQUEST['submit']!="") { $dater=$_POST['$dater']; $aantalvol=$_POST['$aantalvol']; $aantalkind=$_POST['$aantalkind']; $aantalvol=addslashes($_POST['aantalvol']); session

Re: [PHP] Session not working?

2003-06-09 Thread Frank Keessen
Hi, The original code: - Original Message - From: "Emma Jane Hogbin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 09, 2003 8:49 PM Subject: Re: [PHP] Session not working? > On Mon, Jun 09, 2003 at 08:18:10PM +0200, Frank Keessen wrote: > > It's pointing towards the bo

Re: [PHP] condensing a list from MySQL

2003-06-09 Thread Pavel Janda
> How about just fixing this so it'll be easier in the future? You should > have a separate table where each "keyword" is in it's own row, with or > without duplicates (depends if you want a "count" of how often the > keyword is used), and an ID relating back to the "article" or whatever > you have

Re: [PHP] sessions, IE and pop-up windows

2003-06-09 Thread Emma Jane Hogbin
On Mon, Jun 09, 2003 at 09:26:45PM +0200, winst0n wrote: > Hi, try to write a @session_start(); in ur popup windows... it will call the > last session opened by the client. I already do thatboth the parent and the main window call a file which has the session_start in it. I believe the problem

Re: [PHP] Session not working?

2003-06-09 Thread Emma Jane Hogbin
On Mon, Jun 09, 2003 at 09:01:49PM +0200, Frank Keessen wrote: > The orignal code was in the first mail; again; > $_REQUEST["submit"]=isset($_REQUEST["submit"])?$_REQUEST["submit"]:""; > if($_REQUEST['submit']!="") > { > $dater=$_POST['$dater']; > $aantalvol=$_POST['$aantalvol']; > $aantalkind=$_PO

[PHP] reading/writing the value of an / text value

2003-06-09 Thread Bruce Douglas
Hi. I have a question regarding the DOM model. Does anyone know how to write to the / text value using the DOM model. I more or less can write to / attributes of the DOM. but I can't figure out how to write (or read) the text of a - attribute I'd like to be able to do something like: echo"

Re: [PHP] Session not working?

2003-06-09 Thread Frank Keessen
Dear all, Fixed it! Typed again the Header syntax and it worked! Also installed Mozilla! Thanks for the help! Frank - Original Message - From: "Frank Keessen" <[EMAIL PROTECTED]> To: "Emma Jane Hogbin" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, June 09, 2003 8:59 PM Subjec

Re: [PHP] reading/writing the value of an / text value

2003-06-09 Thread Leif K-Brooks
This has nothing to do with PHP! Bruce Douglas wrote: Hi. I have a question regarding the DOM model. Does anyone know how to write to the / text value using the DOM model. I more or less can write to / attributes of the DOM. but I can't figure out how to write (or read) the text of a - attribute

[PHP] Re: access a static variable of a class

2003-06-09 Thread Esteban Fernández
Do you try with the "global" sentence ? . . . global $conf; $var = 'foo'; echo $var::$conf ; ?> EF. On Mon, 09 Jun 2003 18:34:33 -0200 [EMAIL PROTECTED] (Aberindei) wrote: > Hello, > > One line to say this is my first post here, I thought about posting in > php-general,

[PHP] Another Session Question

2003-06-09 Thread Pushpinder Singh Garcha
Hello all, I have php ver 4.1.1 running with register_globals() ON on my site. I am trying to use sessions to maintain state during a visit to the site. I have read thru the manual, but my mind is still cluttered with doubts. I understand that use of the $_SESSION global array will greatly ad

[PHP] howto write a DOS file output into a file...

2003-06-09 Thread Ferhat BINGOL
Hi, When I use my system command in PHP I can run a old EXE file. It makes an output and output is automaticly printing on the web browser. I wanna save this output at the same time into a txt. Anyone knows howto do it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Another Session Question

2003-06-09 Thread CPT John W. Holmes
So does your code work? Here's a tip: Try a simple example, like what's in the manual, and see which method works for you. If they both work, which one do you understand? Use that one... ---John Holmes... - Original Message - From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]> To: <[EMAI

Re: [PHP] sessions, IE and pop-up windows

2003-06-09 Thread Kevin Stone
- Original Message - From: "Emma Jane Hogbin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 09, 2003 1:08 PM Subject: Re: [PHP] sessions, IE and pop-up windows > On Mon, Jun 09, 2003 at 09:26:45PM +0200, winst0n wrote: > > Hi, try to write a @session_start(); in ur popup

[PHP] Re: howto write a DOS file output into a file...

2003-06-09 Thread R'twick Niceorgaw
look at ob_start() function. HTH R'twick "Ferhat Bingol" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > When I use my system command in PHP I can run a old EXE file. It makes an > output and output is automaticly printing on the web browser. I wanna save > this output at the

Re: [PHP] sessions, IE and pop-up windows

2003-06-09 Thread Emma Jane Hogbin
On Mon, Jun 09, 2003 at 02:27:50PM -0600, Kevin Stone wrote: > I'll bet you're using an onLoad command to launch the popup aren't you. Use > Output Buffering to keep stdout from flushing before the parent script dies. > If my assumption about onLoad is correct then that'll solve your problem. Um

[PHP] php and flash chat program

2003-06-09 Thread Matt Palermo
Hey, I need some advice if anyone is willing to offer it. I have a chat program I am working on. The interface is built in flash, and it uses PHP also. There is a main chat area where the users type their messages back and forth, and there is also a smaller area which displays all of the current

Re: [PHP] sessions, IE and pop-up windows

2003-06-09 Thread Jason k Larson
Try adding the SessionID to the URL. openEdit("add=event&cellid=10&"); or a little better: $thisSession = Session_Name().'='.Session_ID(); openEdit("add=event&cellid=10&"); Then of course the editsmall.php must still do a session_start somewhere. -- Jason k Larson Emma Jane Hogbin wrote: On Mon,

Re: [PHP] Re: move_uploaded_file > 1MB

2003-06-09 Thread Maurício Valente
Another thing a noticed was that when I comment the line wich uploads the file, it still give me the same error, saying server was not found. I think, maybe, the amount of memory enabled for each object of the form is limited by 1Mb. I got that idea because I use the following script: print "pat

[PHP] Question about current() and key()

2003-06-09 Thread Jim Lucas
Does anybody know any benifits to using current() and key() I will show two examples of what I mean. "; $arr1 = array(array(1 => 10), array(2 => 12), array(3 => 13), array(4 => 14), array(5 => 15), array(6 => 16),

[PHP] PHP using Linter...

2003-06-09 Thread Scott Fletcher
Hi Everyone! Have anyone here ever use the Linter software? What is your opinion on this? Have anyone experienced compiling Apache/PHP with Linter and was it easy to use? Have anyone experienced writing a PHP script to access the Linter? All of those questions, is it giving you a headache

Re: [PHP] Question about current() and key()

2003-06-09 Thread Lars Torben Wilson
On Mon, 2003-06-09 at 14:38, Jim Lucas wrote: > Does anybody know any benifits to using current() and key() See below: > I will show two examples of what I mean. > > > echo ""; > > $arr1 = array(array(1 => 10), > array(2 => 12), > array(3 => 13), > ar

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in f:\.....\none.php on line 286

2003-06-09 Thread Marcelo Luiz de Laia
Hi Philip and Thomas and All. Thanks very much for yours helps. I am Brazillian and I speak in portuguese, for this, I am sorry very much for my bad english. After a long time, my code works very good! But, I dont understand what was the problem! My code was: $result = sql_query("select catego

Re: [PHP] sessions, IE and pop-up windows

2003-06-09 Thread Kevin Stone
- Original Message - From: "Emma Jane Hogbin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 09, 2003 2:32 PM Subject: Re: [PHP] sessions, IE and pop-up windows > On Mon, Jun 09, 2003 at 02:27:50PM -0600, Kevin Stone wrote: > > I'll bet you're using an onLoad command to l

[PHP] Cook Book Script

2003-06-09 Thread Wendell Brown
I'm looking for a cook book script. I've googled for it, looked in php.resourceindex.com and hotscripts but I haven't found one that does what I'm looking for. Here's what I'm shooting for. 1) User ID registration - need to be able to have users "own" recipes and cookbooks. 2) Allow users to

Re: [PHP] sessions, IE and pop-up windows

2003-06-09 Thread Emma Jane Hogbin
On Mon, Jun 09, 2003 at 03:23:16PM -0600, Jason k Larson wrote: > or a little better: > $thisSession = Session_Name().'='.Session_ID(); > openEdit("add=event&cellid=10&"); This plus a reboot did the trick, THANKYOU!! > Then of course the editsmall.php must still do a session_start somewhere. Alr

[PHP] Bitwise flagging in mysql database

2003-06-09 Thread Mike Mannakee
I have a script that is collecting a bunch of information, and storing this in a database. However, the rows are kinda big and I'm thinking of packing the information into flag bits, and storing this information in one string in the database. I'm wondering if I should use mysql's bitwise operator

Re: [PHP] php and flash chat program

2003-06-09 Thread Richard Baskett
What I normally do in these situations is have two fields separated by tabs or commas or whatever you want. The first field is the username and the second field is a timestamp. The timestamp can be updated every time the user writes a message, since Im sure you are logging also.. or after, say a

RE: [PHP] Cook Book Script

2003-06-09 Thread electroteque
this is easy i say do it yourself , when u get them to add the entries store their userID in a session variable and add that userID value to a column in the recipes table -Original Message- From: Wendell Brown [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 7:59 AM To: [EMAIL PROTEC

RE: [PHP] PHP using Linter...

2003-06-09 Thread Ralph
What is Linter? -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 2:43 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP using Linter... Hi Everyone! Have anyone here ever use the Linter software? What is your opinion on this? Have anyone expe

[PHP] solved Re: [PHP] sessions, IE and pop-up windows

2003-06-09 Thread Emma Jane Hogbin
On Mon, Jun 09, 2003 at 03:56:28PM -0600, Kevin Stone wrote: > I still believe what's happening is the edit script is being executed before > the parent script has died. Are you doing some kind of looping background > process or something that's keeping the parent script from exiting? No. In fact

  1   2   >