[PHP] Re: mysql string comparison not working

2002-09-03 Thread Henry
Have you tried single quotes ' '? "David Banning" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > if I set test = "Y"; > then > > if ($test == "Y") {echo ("it matches");} > > seems to work while > > if ($row[24] == "Y") {echo ("it matches");} > > does not. > Th

[PHP] Function expects string but receiving array Warming??

2002-09-03 Thread Jean-Christian Imbeault
I get the following warning which makes no sense to me. Warning: header() expects parameter 1 to be string, array given in /www/htdocs/jc/administration/edit_products/show_products.php on line 96 It's true that I am passing at an array to the function, but what I don't understand is why the fu

Re: [PHP] Function expects string but receiving array Warming??

2002-09-03 Thread Justin French
You are trying to set a header() using methods not supported. But the really interesting bit is that you appear to be using it NOT for sending HTTP headers, but for setting header information on a TABLE read http://php.net/header ...this isn't what it does. "; foreach($values as $key =

[PHP] limit in a loop function to prevent server load

2002-09-03 Thread electroteque
hi there i was wondering if there was a way to limit the ammount of items in a loop to execute sleep then execute the rest of the items to prevent server load ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Function expects string but receiving array Warming??

2002-09-03 Thread Chris Wesley
On Tue, 3 Sep 2002, Jean-Christian Imbeault wrote: > Warning: header() expects parameter 1 to be string, array given in > /www/htdocs/jc/administration/edit_products/show_products.php on line 96 > > How can I fix my code to get rid of this error (while keeping the var as > an array)?My code looks

Re: [PHP] limit in a loop function to prevent server load

2002-09-03 Thread Bas Jobsen
Op dinsdag 03 september 2002 10:46, schreef u: > hi there i was wondering if there was a way to limit the ammount of items > in a loop to execute sleep then execute the rest of the items to prevent > server load ? for($i=0;...) { if($i>0&&$i%100==0)sleep(10); } -- PHP General Mailing List

[PHP] Re: mail() again...

2002-09-03 Thread :B nerdy
the mail server is hosted on the mail server. i think thats whats casuing the problem. how can i get around this? i use unix. i remember a command to find out the smtp server.. anyone know? cheers "Manuel Lemos" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >

Re: [PHP] Function expects string but receiving array Warming??

2002-09-03 Thread Jean-Christian Imbeault
Justin French wrote: > But the > really interesting bit is that you appear to be using it NOT for sending > HTTP headers, but for setting header information on a TABLE Oops!! I had defined my own function called header() without even stopping to think there was already a PHP header() functi

[PHP] html to php with echo <<

2002-09-03 Thread adi
I try to transform a html file in -php file, but i have errors in it("Error in page.") Where is mistake? index.php WRONG END; ?> index.html GOOD: tx in adv for any help Ady

[PHP] wordwrap function (that skips html tags)

2002-09-03 Thread [EMAIL PROTECTED]
hello! i found a nice function that i would like to use but unfortunately there is a problem i can not solve. for my notepool device it would be great to use php's wordwrap function but because the string that needs to be wordwrapped contains also html tags i can not use this function like this.

[PHP] Re: mysql string comparison not working

2002-09-03 Thread lallous
try to: var_dump($row[24]) and see what happens? it might be that the "Y" is stored as lowercase in MySql's table. Elias "David Banning" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > if I set test = "Y"; > then > > if ($test == "Y") {echo ("it matches");} > >

[PHP] threads in Apache 1.3

2002-09-03 Thread Heiko Mundle
I would like to know how many PHP page apache generates in one thread at the same time. For example, two clients share the same thread of the apache web server. they request at the same time a php page. Does apache process them one by one? I use persistant database connections and I wonder, if o

php-general Digest 3 Sep 2002 10:02:43 -0000 Issue 1563

2002-09-03 Thread php-general-digest-help
php-general Digest 3 Sep 2002 10:02:43 - Issue 1563 Topics (messages 114963 through 115000): Re: help, array values echoed as Array on loop! 114963 by: Victor Re: How to escape " in hidden field? 114964 by: Tom Rogers 114965 by: Martin Towell 114984 by: Mart

[PHP] Re: html to php with echo <<

2002-09-03 Thread Erwin
Adi wrote: > I try to transform a html file in -php file, but i have errors in > it("Error in page.") > Where is mistake? On my machine their both good. But a question raises? Why do you use echo in this case? Why don't you just give the filename the extension .php? Just rename the file from inde

[PHP] Re: Session problem

2002-09-03 Thread Erwin
> I am using session_start() and > session_register("variablename") . The when I click on > the back button from the browser it shows me the > following error: "Warning: Page has Expired The page > you requested was created using information you > submitted in a form. This page is no longer avail

Re: [PHP] wordwrap function (that skips html tags)

2002-09-03 Thread Bas Jobsen
Hello, What's your php version? Take at look at: http://www.php.net/manual/en/function.wordwrap.php and http://www.php.net/manual/en/function.strip-tags.php b.e. $str='http://www2.snm-hgkz.ch/~rieger/notepool/addnote.php'; echo wordwrap(strip_tags($str),8,'',1); i you can't use wordwrap(), try:

[PHP] Re: posting form values doesn't work

2002-09-03 Thread Erwin
ØYstein HåLand wrote: > Yes, you were right. Now a natural question. WHY? I don't understand > your explanation, since I thought it was equal, getting a field value > using document.answerform.name.value in javascript AND the variable > $name in php. If you submit a form, you will POST the variab

[PHP] sorting array question

2002-09-03 Thread Javier Montserat
i have the following code which reads a list of files from a directory - $listcmd = "ls " .$dirPath; $temp = exec($listcmd, $listoffiles, $status); if($status == 0) { for ($i =0; $i < sizeof($listoffiles); $i++) { $this->fileName[$i] = $listoffiles[$i]; $this->sizeofFile[$i] = sprintf("%01.

[PHP] Carriage Returns in Text Fields

2002-09-03 Thread RoyW
I have a script which takes a memo field and stuffs it into a "mediumtext" column of a MySQL table. When I spit out the contents of the field, the carriage returns are no longer there... how do I maintain the integrity of the paragraphs in text fields? Thanks -- PHP General Mailing List (ht

[PHP] Re: header()-question

2002-09-03 Thread Erwin
> Fatal error: Cannot redeclare createlinks() > (previously declared in c:\apache\htdocs\ha\recycle\lankar.php:6) in > c:\apache\htdocs\ha\recycle\lankar.php on line 5 > > The problem is: the call for the function createlinks() is done from > the previous page (index.php), the file where I user he

[PHP] Re: Carriage Returns in Text Fields

2002-09-03 Thread lallous
How and where are you spitting out the text? If to HTML output, the use the nl2br(). or spit between tags. Elias "Royw" <[EMAIL PROTECTED]> wrote in message 00a301c25336$9815cc60$[EMAIL PROTECTED]">news:00a301c25336$9815cc60$[EMAIL PROTECTED]... > I have a script which takes a memo field and st

[PHP] greeting based on time

2002-09-03 Thread Javier Montserat
really simple one - does someone have a bit of code that will variously display 'good morning', 'good afternoon', 'good evening' based on the current time? good morning from london, Javier _ Send and receive Hotmail on your mob

[PHP] progress bar for a server side process

2002-09-03 Thread electroteque
hi there i have created a script to regenerate thumbnails for a photo gallery , i have changed my code to use gd true color although it takes forever now , i have it generating 20 at a time then doing the rest but still takes forever , i know its impossible to generate a true progress bar for imag

[PHP] PHP freelancer offer

2002-09-03 Thread Peter Turcan
Hi! I would like to work as a freelancer on some PHP projects. see my web page for skills/experiences: http://dorwin.wz.cz best regards Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] webmail without imap functions???

2002-09-03 Thread ask
Hi NG Is it possible to make a webmail without enabled imap functions on the running version of .php? As far as I can see on http://www.php.net/manual/en/ref.imap.php it is the various imap functions I should use. I'd like to make a webinterface to my various POP3 email accounts, but my isp does

[PHP] Freelancer offer

2002-09-03 Thread Peter
Hi to all I would like to take contract in PHP/MySQL as a freelancer. my web page: http://dorwin.wz.cz best regards Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Carriage Returns in Text Fields

2002-09-03 Thread Ryan A
Hey, I myself am a newbie to PHP, but I believe what you are looking for is the nl2br() functionI presume you are outputting html. Hope that helped. Cheers, -Ryan. - Original Message - From: "RoyW" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 03, 2002 12:42 PM

Re: [PHP] greeting based on time

2002-09-03 Thread Bas Jobsen
Op dinsdag 03 september 2002 13:01, schreef Javier Montserat: > really simple one - > > does someone have a bit of code that will variously display 'good morning', > 'good afternoon', 'good evening' based on the current time? > > good morning from london, > > Javier > > > >

RE: [PHP] Re: Session problem

2002-09-03 Thread victor
Make sure also that both pages have session_start(); on them so that sessions continue. I have used sessions and forms and basically I have the engines that process forms on different pages, and when the forms are submitted, the engine pages display a message and a link to the previous page, you m

Re: [PHP] How to escape " in hidden field?

2002-09-03 Thread Jan Kudrman
Try HTMLSpecialChars function. http://www.php.net/htmlspecialchars Regards, Jan - Original Message - From: "Martin Thoma" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 02, 2002 11:59 AM Subject: [PHP] How to escape " in hidden field? > Hello! > > I have a simp

[PHP] Class operator :: Problem

2002-09-03 Thread Unger, Christian
I have problems to make a dynamic call, please help me returns: Fatal error: Call to undefined function: a::test() in /usr/local/share/version2.mypsi.de/index.html on line 10 --- Christian Unger IT-Consultant PSI Infrastruktur Services GmbH Dirc

RE: [PHP] Class operator :: Problem

2002-09-03 Thread Scott Houseman
Hi There Try doing it this way: Regards -|Scott > -Original Message- > From: Unger, Christian [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 03, 2002 2:51 PM > To: '[EMAIL PROTECTED]' > Subject: [PHP] Class operator :: Problem > > > I have problems to make a dynamic call, ple

[PHP] Re: PHP freelancer offer

2002-09-03 Thread nicos
This has nothing to do with this newsgroup. This is not jobless.general. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet "Peter Turcan"

[PHP] Class operator :: Problem

2002-09-03 Thread Javier Montserat
i think because you assign a method to the variable rather than a data member you need to include parenthsis... a::test() >> I have problems to make a dynamic call, please help me returns: Fatal error: Call to undefined function: a::test() in /usr/local/share/version2.mypsi.de/index.

Re: [PHP] progress bar for a server side process

2002-09-03 Thread Marek Kilimajer
I've got a nice progress bar with this code: for($i=0;$i<10;$i++) { flush(); sleep(1); echo ''; } But read manual for the flush() function. electroteque wrote: >hi there i have created a script to regenerate thumbnails for a photo >gallery , i have changed my code to use gd true co

[PHP] Downloading php4.2.2.zip??

2002-09-03 Thread Andre Dubuc
I'm wonder whether I doing something wrong. I've tried, without any success, to d/l php 4.2.2.zip from all the US mirrors, the Canadian ones, Ireland, Australia, and even the main php.net site. I get as far as get_download . . . and nothing happens. Is there ftp access to get this file, o

Re: [PHP] Class operator :: Problem

2002-09-03 Thread Marek Kilimajer
Try a helper function function helper() { return a::test(); } $testfunct = "helper"; ... Unger, Christian wrote: >I have problems to make a dynamic call, please help me > >class a { > function test() { > echo "Hallo"; > } >} > >$testfunct = "a::test"; > >$testfunct(); > >?> > >r

[PHP] Re: sorting array question

2002-09-03 Thread nicos
There is readdir() to read a complete directory. It will put it into an array, then use asort to class it. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement

Re: [PHP] greeting based on time

2002-09-03 Thread Justin French
Ummm, current time where? :) Assuming you mean your server's time, it shouldn't be too hard, but i thought I'd point out that your readers/users are bound to be in different time zones. Whilst some may think "oh, different time zone", others will probably think "idiots" :) Then another option w

[PHP] Info into Class

2002-09-03 Thread Gerard Samuel
Are there any rules as to how information from outside a class can be moved into it. What Ive been doing so far is 1. Through the constructor 2. defining a constant 3. Create a method whose sole purpose is to move data from the outside into the class. i.e. bar = $bar; } .. } //

[PHP] Re: Downloading php4.2.2.zip??

2002-09-03 Thread nicos
Hi, Yes, we're experimenting some problems with our downloads servers. Please wait a little and try again. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergemen

[PHP] Re: Freelancer offer

2002-09-03 Thread nicos
We've got it. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet "Peter" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTEC

[PHP] Re: webmail without imap functions???

2002-09-03 Thread nicos
Hi, There are many webmails that don't use imap but just POP3. You should check at them. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Interne

Re: [PHP] Re: webmail without imap functions???

2002-09-03 Thread ask
Thnx - could you please guide me to an example, all I can find use the imap_open() like: $mbox = imap_open ("{localhost/pop3:110}INBOX", "user_id", "password"); But my ISP does not support these imap functions. [EMAIL PROTECTED] said: > Hi, > > There are many webmails that don't use imap

[PHP] FW: Texas PHP Developers Conference

2002-09-03 Thread Jay Blanchard
-Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 9:03 AM To: Jay Blanchard Subject: Texas PHP Developers Conference Howdy! Thanks for taking interest in the (hopefully annual!) Texas PHP Developers Conference. I am in the process of s

[PHP] rand()

2002-09-03 Thread Erwin
Hi all, I'm having a problem with the rand function. I use the function below: function gen_short_primary_key_value( $maxlength = 5 ) { $mt = split( ' ', microtime(), 2 ); $foo = (double) ($mt[0] + $mt[1]) * 1; $md5 = strtoupper( md5( $foo ) ); for ( $j = 0; $j < $maxlength;

[PHP] Re: rand()

2002-09-03 Thread Erwin
By the way, rand() will only return 0 if I call it with it's arguments. Without arguments it will return a random value. Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] exit() function question

2002-09-03 Thread Renato Lins
Why exit() funtion always exit with 255 value instead of the passed value, in php 4.2.2, even when I compile with --enable-cli. Check the code bellow, to see # cat t3.php #!/usr/src/php-4.2.2/php # ./t3.php ; echo "last run exit value:"$? Version: 4.2.2 last run exit value:255 -- PHP Genera

[PHP] php back?

2002-09-03 Thread Erich Kolb
What is the PHP equivalent to javascript: back? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Info into Class

2002-09-03 Thread Greg Martin
The thing about PHP classes is that there are not many rules. It is usually suggested, as a matter of good practice to use get and set functions for your variables in classes in any language. A lot of people my think this is a bunch of extra work, but let's say you are keeping track of customers

Re: [PHP] php back?

2002-09-03 Thread Justin French
There is none, really. Remember, PHP is being PARSED ON THE SERVER SIDE, and THEN spits out HTML to the browser. So your PHP script doesn't have a back or anything similar... it just parses PHP, and outputs HTML. What do you want to achieve exactly? Do you want to conditionally "go back" in yo

[PHP] Any netscape users out there?

2002-09-03 Thread Dan Ostrowski
I develop mostly in a Linux environment anymore, but I have a problem with Netscape and PHP. Well, not so much with PHP but developing it with Netscape. Post data makes Netscape REFUSE to show the underlying source code! It's virtually impossible to design form handling stuff when I can't see

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Ashley M. Kirchner
Dan Ostrowski wrote: > Post data makes Netscape REFUSE to show the underlying source code! It's virtually >impossible to design form handling stuff when I can't see the code that's generated >when i send post data. Is this a bug and how do you fix it?? i've never seen this problem in ns,

[PHP] IBM UniVerse + PHP

2002-09-03 Thread Jackson Miller
I first asked on the PHP-DB list but got no response, so I thought I might try here. Is _anyone_ using PHP with IBM's UniVerse database? I am about to start a project that will connect to a UniVerse database, and would like to use PHP, but can't find any information on it (and I am not familiar

[PHP] re: Refering to an object from within an array variable in another class

2002-09-03 Thread Javier Montserat
Hi, Syntax B doesnt seem to work exactly because as you say "it doesn't directly access the 'bars' variable..."; here... $reference_to_bar = $this->GetBar($id) ; it seems that a copy of the bar object is being created, which is a new object. This new bar object is not related to the bar obj

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Dan Ostrowski
It happens ANYWHERE there is post info for me. Not just on my own PHP development pages. I was just wondering if there was a setting on Netscape to fix this kind of thing. regards, dan On Tue, 03 Sep 2002 10:07:11 -0600 "Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote: > Dan Ostrowski wrote: >

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Robert Cummings
Netscape 4.xx series is notorious for caching issues. When you post data and then try to view the source code netscape thinks it has expired and thus gone. Another issue is when you resize the view source window, netscape reloads the page *ack*. On my site at http://www.wocmud.org I think my no ca

[PHP] re: Refering to an object from within an array variable in another class

2002-09-03 Thread Javier Montserat
I believe the following discussion from Web Application Development with PHP 4.0 (available online at http://safari.oreilly.com) may shed some light on your question... >> Whenever PHP encounters a statement for which write access to a variable is needed, it evaluates and calculates the data

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Ashley M. Kirchner
Robert Cummings wrote: > My > solution is to use Mozilla/Netscape 7 to view the source when I need to and just > use the 4.xx brokwser when I want to make sure it looks ok visually. d'oph. this might be way i never bothered - i use mozilla as well to check code. :) -- W | I haven't lost m

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Dan Ostrowski
Which is strange because I use Netscape 6. Hmm... Perhaps I should upgrade to 7. Also, would the fact that I have Netscape 4.x installed on the same machine as my Netscape 6 cause anything funny to "bleed" over, you think? Perhaps its a shared library thing.. hmmm... Well thanks for the advic

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Geoff Hankerson
Dan Ostrowski wrote: >I develop mostly in a Linux environment anymore, but I have a problem with Netscape >and PHP. Well, not so much with PHP but developing it with Netscape. > >Post data makes Netscape REFUSE to show the underlying source code! It's virtually >impossible to design form hand

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Robert Cummings
Shouldn't be any bleeding from shared libraries. but then I'm on Linux and your probably under windows, and so I don't know for sure anymore :) Cheers, Rob. Dan Ostrowski wrote: > > Which is strange because I use Netscape 6. Hmm... Perhaps I should upgrade to 7. > > Also, would the fact that I

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Dan Ostrowski
hmmm... must be a bug. Same thing happens on Mozilla as Netscape. Anything with post data greys out the view source button, and I can't get it open. Weird. Time to hit some Linux IRC rooms. dan On Tue, 03 Sep 2002 12:56:02 -0400 Robert Cummings <[EMAIL PROTECTED]> wrote: > Dan Ostrowski wrot

[PHP] Parse errors: path?

2002-09-03 Thread Wm
I'm getting a parse error with this PHP statement: $file\n"; } } ?> The browser is showing me the following error though, with a changed path: Parse error: parse error in /usr/local/psa/home/vhosts/.../httpdocs/fashion.php on line 144 That's the only PHP in the entire page, so the error

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Peter Janett
Simply hold down the control key and then push the "r" key while looking at the source code window. That will cause the page source to repost, and you will see the resulting source code. HTH, Peter Janett New Media One Web Services New Upgrades Are Now Live!!!

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Robert Cummings
Dan Ostrowski wrote: > > hmmm... must be a bug. Same thing happens on Mozilla as Netscape. > Anything with post data greys out the view source button, and I > can't get it open. > > Weird. Time to hit some Linux IRC rooms. Hmmm, I don't have that probem under Mozilla *grin*. Of course it didn't

[PHP] Re: Parse errors: path?

2002-09-03 Thread nicos
Hi, I get no error with that syntax, thats pretty strange, btw why are you putting "..." into your directory? You shouldn't. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Wm" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTEC

[PHP] Re: Parse errors: path?

2002-09-03 Thread Wm
Sorry, I was just snipping part of the path to make it shorter. The "..." is an abbreviation and isn't really in there, in either the code or the parse error. Sounds like the problem must be with the path then. Wm <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]..

Re: [PHP] IBM UniVerse + PHP

2002-09-03 Thread Chris Hewitt
Jackson Miller wrote: > >I am about to start a project that will connect to a UniVerse database, >and would like to use PHP, but can't find any information on it (and I >am not familiar with UniVerse). > Jackson, Is there an ODBC driver for it? If so, you might be able to use ODBC. Ask IBM? HT

[PHP] Help with inserting Flash into MySQL database

2002-09-03 Thread Mitja Stepan
I'm using this script to insert picture into database: $data = addslashes( fread( fopen( $arrayUploadedSomething['tmp_name'], "r"), filesize($arrayUploadedSomething['tmp_name'] ) ) ); And then i use ordinary mysql_query to insert it into database (BLOB field). When i print image on screen, I us

[PHP] Re: hide system output from header

2002-09-03 Thread Richard Lynch
>i execute a system function which works great only prob is it breaks the >header so what i need to know is how i can prevent the output from this and >append it to a variable, i allready tried appending to variable but still >outputted http://php.net/exec -- Like Music? http://l-i-e.com/arti

[PHP] Re: 'save as'

2002-09-03 Thread Richard Lynch
> > >Running GNU/Debian Sid. Im Running into problems, Apache cant see the >.php file (it brings up the save-as dialog everytime) > >I have this line enabled (see below) still no success > >AddType application/x-httpd-php .php > >installed php4 4.2.2-2, php4-mysql 4.2.2-2, phpnuke 5.6-3, apache >1

[PHP] Re: Writing Files

2002-09-03 Thread Richard Lynch
>How do you write files so that theyre chmoded 777 by default. the folders >theyre written to are 0777 but the files aren't. so i cant delete or modify >the files through PHP, i have to first chmod them with FTP, which takes >ages. Do http://php.net/umask before you create them. Include the opti

[PHP] Re: and validator problem

2002-09-03 Thread Richard Lynch
>I have a tag: >CV > >when I want to validate page (W3C online validator) , validator prints: > >Line 37, column 50: >How can I solve this? (& doesn't functioning, because after that is >&PHPSESSID added automatically by php) PHPSESSID is being added by PHP in order to pass the session data throu

[PHP] Re: Useragent and file

2002-09-03 Thread Richard Lynch
>// get a web page into an array >$fcontents= file ($targeturl); > >However I dont know how to mimic a different useragent. Using LWP::UA (in >perl) i can pretend to be iexplore6 running on win2k or anything i want.. >Is there a way i can do this in PHP? Yes, but you'll need to roll your own f

[PHP] Re: problem with include

2002-09-03 Thread Richard Lynch
>// one.php > >--- html code --- >// end file one.php > >// two.php > >--- html code --- >//end two.php Where is three.php?... >well, when I see in my browser www.myweb.com/two.php this shows two.php >plus the include file in it "three.php", so this works ok, but when i see >in my browser (IE

[PHP] Re: Help with writing multiple records to a table

2002-09-03 Thread Richard Lynch
>$_POST['category_id']; What do you think this does? Cuz it don't really "do" anything... > $numcat = count($category); > if ($numcat>1){ > $category_id=implode(",",$category); > } elseif ($numcat==1){ > $category_id=$category; > } You have an array of '$c

[PHP] Re: Email formatting

2002-09-03 Thread Richard Lynch
>Is it safe to assume that email addresses are accepted by all servers case >insensitive? NO! The domain part (after the @) is case-insensitive. The username part (before the @) is case-sensitive. It is *POSSIBLE* for [EMAIL PROTECTED] and [EMAIL PROTECTED] to be very different people. It's n

[PHP] Re: Ridding myself of HTML tags

2002-09-03 Thread Richard Lynch
>My site accepts HTML files by upload. A lot of these files are written in MS >Word and then saved as HTML files from that. MS Word likes to put a bunch of >garbage at the beginning of the file. Now, when users upload their HTML >files, my script goes and striptags all of the unnecessary junk in t

[PHP] Re: Mail/Confirmation Script delivery problems

2002-09-03 Thread Richard Lynch
>if(@mail($to, $subject, $message)) >. Is there an "else" clause here to tell you what went wrong if the email didn't go out?... Also add some headers like this: $headers = "From: [EMAIL PROTECTED]\r\n"; $headers .= "Reply-to: [EMAIL PROTECTED]\r\n"; and change your mail() to: mail($to,

[PHP] Re: newbie question

2002-09-03 Thread Richard Lynch
>How do I get PHP to automatically open another PHP page in a browser if a >condition is met? > > I have a pull down HTML table that submits a form to a PHP script. That >script then uses a little logic to figure out which web page to go to. I >have 5 different pages, and each has different cont

[PHP] Re: request what a user clicked

2002-09-03 Thread Richard Lynch
>what is php's request object? >like in ASP - Request("variable") $_REQUEST['variable'] Or, if you want to distinguish between GET and POST: $_GET['variable'] $_POST['variable'] In the future, if you're not sure where/how PHP is going to give you data, this function will *TELL* you: Throw

[PHP] Re: Resource ID??

2002-09-03 Thread Richard Lynch
>When trying to do this query: > >$rsum =mysql_query("SELECT SUM(rating) FROM ratings where threadid = $ratevar")or >die (mysql_error()); > >This is the output: >Resource id #15 >or some other seemingly arbitrary Resource ID number? >First of all what is a resource ID and second how do I get it to

[PHP] Re: --with-imap strangeness in 4.3 dev

2002-09-03 Thread Richard Lynch
>./configure --with-imap-ssl=/usr (other options not shown) > >Everything configures fine. I can also "make" and "make install" with >no errors. You don't have IMAP in PHP. ./configure has a nasty habit of issuing "warning" messages for stuff you asked for --with-xxx and then blindly marching f

[PHP] Re: session encode and session decode question

2002-09-03 Thread Richard Lynch
>I'm trying to get the one variable I stored insite a session, the >variable's name is $username I am trying to do it like this, but I think >it's wrong: > >$PHPSESSID = session_encode(); >$username = session_decode(); > >It tells me I have wrong parameters for session decode. > >What am I suppose

Re: [PHP] Refering to an object from within an array variable in another class

2002-09-03 Thread Bas Jobsen
> Any insight appreciated. In a best case if someone can add in the required > '&'s to the following code that would be great. ' ; error_reporting ( E_ALL ) ; class Foo { var $bars = array() ; function AddBar($id,$text)

[PHP] Re: Mail/Confirmation Script delivery problems

2002-09-03 Thread Andre Dubuc
Hi Richard, Thank you for continuing to research this problem. Just before the weekend, I talked to my IP about the problem I was having. He thought it was strange: suggested I look at my browser settings to see what was being passed. To make a long story short, he mentioned that with 'mailt

[PHP] $PHPRC and CGI php ; multiple php.ini files

2002-09-03 Thread Tomasz Orzechowski
For a summary see http://bugs.php.net/bug.php?id=19202 :) Please be sure to follow the link to my phpinfo(); which will include the environment variables as seen by the CGI PHP parser. The link is also in the 'bug' report - http://aktualnosci.tras.pl/php.sphp Can someone please either confirm t

[PHP] Question about correct PHP/MySQL configuration

2002-09-03 Thread David Berlind
Hello. I'm in the process of setting up a RH Linux/Apache/MySQL/PHP configuration. Prior to attempting this setup, I've never installed Apache, MySQL, or PHP. So, please bear with me. Also, My RH Linux setup had PHP and Apache on it already (via the orginal RH install). So, here's my situ

Re: [PHP] Question about correct PHP/MySQL configuration

2002-09-03 Thread Rasmus Lerdorf
Step 1, please limit your lines in your emails to mailing lists to 78 chars or less in width. Your entire message shows up as 2 lines for me. Step 2, you need to install the php-mysql rpm. Then everything should work. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Help with inserting Flash into MySQL database

2002-09-03 Thread Paul Colcutt
Hi Mitja, You need to specify the dimensions with the 'width' and 'height' attributes of the tag and tell the movie to start playing with: For NS put WIDTH="xxx" HEIGHT="xxx" PLAY="true" in the tag. HTH Paul At 7:54 pm +0200 3/9/02, Mitja Stepan wrote: > >I know that I must use HTML like

RE: [PHP] Help with inserting Flash into MySQL database

2002-09-03 Thread Mike Krisher
Your embed source and object movie value needs to be a file path to a swf. Your values are currently set to something.php, needs to be something.swf. hope that helps, -- Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] This is weird, this script does/doesn't work

2002-09-03 Thread Øystein Håland
on my own machine, W2k+Apache+php4.2 this works without problem, on the Internet-server though, (Linux), the following script produces a blank page: // Change student info // Delete student } // Queries for result if ($target == "result") { // Delete result } if(!isset($administrate)

Re: [PHP] Help with inserting Flash into MySQL database

2002-09-03 Thread Mitja Stepan
No, it doesn't work... If I right-click on movie a contex menu opens, and there is an option "Movie not loaded" (which is disabled)... I think there is something wrong with printing .swf out of the database, but I cant figure out what... -- Regards, Mitja

[PHP] Uploading file

2002-09-03 Thread Clemson Chan
Hi, I am new to this group. I am trying to figure out how to let people to upload image files to my website. My ISP is using PHP 3 (I believe). If someone can give me simple example, that will be great. Thanks. --Clemson How can I tell what version of PHP is running on the system (linux)? --

Re: [PHP] Help with inserting Flash into MySQL database

2002-09-03 Thread Mitja Stepan
Yes, but I'm reading .swf file from database That is why a used: header("Content-Disposition: inline; filename=" . $arraySomething['something_name'] ); You see, I thought that filename = ... told the name of the file... But I don't now if it does ... probably not ... but how can I solve thi

RE: [PHP] Any netscape users out there?

2002-09-03 Thread Roger Lewis
Ctrl r worked for me -Original Message- From: Peter Janett [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 10:00 AM To: Robert Cummings; [EMAIL PROTECTED] Cc: Dan Ostrowski; [PHP GENERAL] Subject: Re: [PHP] Any netscape users out there? Simply hold down the control key and t

[PHP] FORUM CODE

2002-09-03 Thread Tony Harrison
Hi, im wondering how in popular forum software, those 'BB codes' are done in PHP, like, [B] and stuff. I just cant figure it out. - [EMAIL PROTECTED] http://www.cool-palace.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

[PHP] continuation to the ftp story

2002-09-03 Thread Victor
The problem with my other php - well - problem was that the destination and file variables were reversed, I think, no I changed them, but I get this error when I try to ftp a file to a server: Warning: ftp_put(): error opening /home/victor/sites/kodak/user_pictures/vic Can user permissions cause

Re: [PHP] Uploading file

2002-09-03 Thread Juan Pablo Aqueveque
Hi friend, http://www.php.net/manual/en/features.file-upload.php And take a look to the User Contributed Notes --jp At 13:03 03-09-2002 -0700, Clemson Chan wrote: >Hi, I am new to this group. >I am trying to figure out how to let people to upload image files to my >website. >My ISP is using PHP

  1   2   >