[PHP] SMS

2002-09-03 Thread Lejanson C. Go
what are the components to be use if you want to set up a site that SENDS Free SMS and uses PHP? -- Lejanson C. Go, SDE I -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Please help with fresh fish.

2002-09-03 Thread René Moonen
Anh wrote: >Hello everyone, > >I would like to study PHP but do not have any experience about PHP or >programming. Could you please give me some advice to begin such as books, >news, forum... > >Many thanks in advance, >Anh > > > > > You already found the best PHP forum there is ;-) René

Re: [PHP] Re: PHP OOP

2002-09-03 Thread René Moonen
Rodrigo Dominguez wrote: >I made a mistake while I was writting the example, in my original code I >wrote it as you did, with $this->b[0] = new one(); but it doesn't work. >Thank you. > >"Philip Hallstrom" <[EMAIL PROTECTED]> escribió en el mensaje >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >

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

2002-09-03 Thread René Moonen
Øystein Håland wrote: >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: > > require "../utils.php"; > $link=openDB(); > $file = $target.form; > >// Queries for student >if ($target == "student")

Re: [PHP] PHP 4.2.2 install problem

2002-09-03 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, Yes, you can add those two linesadd them at the bottom. ~Pauly On Tuesday 03 September 2002 06:57 pm, Mark McCulligh wrote: > I am new to Linux and is trying to install PHP/MySQL/SSL. > > I used the instruction found on this link: > http://w

Re: [PHP] creating mail on submitting a form.

2002-09-03 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, Take a look at http://php.net/mail If you want a script written I'll need to see the page that has the form and the email id you want the message sent to. ~Pauly On Tuesday 03 September 2002 06:46 pm, Anil Garg wrote: > hi, > > In a form i have

[PHP] php/mysql slow with zone alarm

2002-09-03 Thread ed
Hey all. I do most of my coding on win98 before uploading it to my web host running linux. I'm running the windows versions of apache/mysql/php. I'm using the cgi version of php. I also run the personal firewall software, zone alarm. When zone alarm is running it slows php/mysql down so much

Re: [PHP] Please, help with Sourceforge's PHP command-line not working at all

2002-09-03 Thread Tomasz Orzechowski
Alberto wrote on Tue, Sep 03, 2002 at 06:32:56PM -0300: > There is an error code that says that it cannot load module 'mm' at line > 0, or something like that. in your shell do: ldd `which php` it will most likely say something like: 'libmm.so.11 not found' you will then need to find the 'mm'

Re: [PHP] Re: PHP / Bulk E-Mail

2002-09-03 Thread Tomasz Orzechowski
Justin French wrote on Wed, Sep 04, 2002 at 11:58:10AM +1000: > Currently I have one client who demands personalised emails. Luckily, it's > a small list (200 people), and I break the send-out down to batches of 20 > emails, split apart by 2 minutes (this could be done manually, or with META > re

[PHP] Re: Pass array in HTTP_POST_VARS question

2002-09-03 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Is it possible to pass an array in a form post? If so, how do I reference > the array on the next page? > > Thank You > Paul > php I believe you may need serialize/unserialize here. Use serialize($array) to create a simple variable th

Re: [PHP] XML vs Everything Else

2002-09-03 Thread Rodrigo Dominguez
I'm writting an application, a control panel for a web site, and it will be great if I can separe data from presentation, I know that I have to work with XML and XSL but I didn't understand how it works. Can you give me a simple example? Let guess that a client request index.php, and I have inde

[PHP] Pass array in HTTP_POST_VARS question

2002-09-03 Thread Paul Maine
Is it possible to pass an array in a form post? If so, how do I reference the array on the next page? Thank You Paul php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] exit() function question

2002-09-03 Thread Tom Rogers
Hi, Wednesday, September 4, 2002, 1:30:49 AM, you wrote: RL> Why exit() funtion always exit with 255 value instead of the passed RL> value, in php 4.2.2, even when I compile with --enable-cli. RL> Check the code bellow, to see RL> # cat t3.php RL> #!/usr/src/php-4.2.2/php RL> echo "Version: ",

[PHP] Re: PHP / Bulk E-Mail

2002-09-03 Thread Justin French
Eric, Please don't email me off-list, unless you're looking to pay me for my services. 1. I generally dedicate a certain amount of my time per day to the list 2. If we discuss things off-list, then no one else benefits from the discussion. on 04/09/02 5:26 AM, Eric J Schwinder ([EMAIL PROTECTE

[PHP] Re: I need a useful sample code for opening from ftp servers using fopen() or file() commands

2002-09-03 Thread nicos
Note that you can use also: $content = implode("",file($filename)"); but I dont know if file() works with ftp. You should use my first tip anyway. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Javier Campo Martinez" <[EMAIL PROTECTED]> a écrit da

[PHP] Re: I need a useful sample code for opening from ftp servers using fopen() or file() commands

2002-09-03 Thread nicos
Hi, You should read www.php.net/fopen : If filename begins with "ftp://"; (not case sensitive), an ftp connection to the specified server is opened and a pointer to the requested file is returned. If the server does not support passive mode ftp, this will fail. You can open files for either readi

[PHP] I need a useful sample code for opening from ftp servers using fopen() or file() commands

2002-09-03 Thread Javier Campo Martinez
Hi, I will appreciate if you have some sample code about opening a file from a UNIX server. This is the code I wrote for this issue: ftp://usuario:clave@servidor/afiedt.buf","r";); while ($fich[$i]) { echo $fich[$i]; echo ""; $i++; } ?> This is the message error/warning: Warning: File not

Re: [PHP] Re: Please help with fresh fish.

2002-09-03 Thread Anh Nguyen
Hi Dan, Thank you so much for your advice. Anh "Dan Ostrowski" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I truely recommend "Beginning PHP4" by Wrox Press (www.wrox.com or p2p.wrox.com) if you have no experience in programming or PHP. It is, by far, th

[PHP] Re: bugs/master are back

2002-09-03 Thread nicos
Yes, it looks its a new stuff because I get the reply to all my post too. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Eriol" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Ahh.. Okay.. Thanks.. > > I don't know if thi

Re: [PHP] Re: Please help with fresh fish.

2002-09-03 Thread Dan Ostrowski
I truely recommend "Beginning PHP4" by Wrox Press (www.wrox.com or p2p.wrox.com) if you have no experience in programming or PHP. It is, by far, the best $40 you will ever ever spend. I promise. regards, dan On Tue, 3 Sep 2002 16:46:03 -0700 (PDT) Philip Hallstrom <[EMAIL PROTECTED]> wrote:

[PHP] Re: bugs/master are back

2002-09-03 Thread eriol
Ahh.. Okay.. Thanks.. I don't know if this is a normal issue (first time I've seen it), but in my initial reply to your thread, I received the following back via email.. I typically post through replies the newsgroup way at news.php.net and not the mailing list route.. Didn't know if I should poi

[PHP] Re: bugs/master are back

2002-09-03 Thread nicos
Yes thats normal. master.php.net is used by the members of PHP (cvs accounts etc..) to manage their account. They've got the correct url to do that from master.php.net. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Eriol" <[EMAIL PROTECTED]> a é

[PHP] Re: bugs/master are back

2002-09-03 Thread eriol
http://master.php.net redirects me to http://www.php.net, but the "bugs" url works fine.. I'm not sure what "master" would be which is why I tried accessing it.. Is this normal to redirect to the main site? TIA.. Take care.. peace.. eriol <[EMAIL PROTECTED]> disgorged: : For those who are

[PHP] Re: Please help with fresh fish.

2002-09-03 Thread Philip Hallstrom
Read everything at the following sites :-) www.php.net www.zend.com www.phpbuilder.com In particular read the manuals, tips, tricks, examples, and links to other sites sections. Lots of good info there and will point to more sites. On Tue, 3 Sep 2002, Anh wrote: > Hello everyone, > > I would

[PHP] bugs/master are back

2002-09-03 Thread nicos
For those who are interested, master.php.net and bugs.php.net are back. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Please help with fresh fish.

2002-09-03 Thread Anh
Hello everyone, I would like to study PHP but do not have any experience about PHP or programming. Could you please give me some advice to begin such as books, news, forum... Many thanks in advance, Anh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

[PHP] mod_php4 / apache config question

2002-09-03 Thread Lee Doolan
If there is some way to do this, then it has eluded me for several hours. I would like to set a variable in the apache config file which I can then access in a php script. I'm running mod_php4 and apache 1 I have tried things like this: php_value WSERVER red2.office.com and this: Set

[PHP] mod_php / apache config

2002-09-03 Thread Lee Doolan
I apologize beforehand in case this message is posted twice. If there is some way to do this, then it has eluded me for several hours. I would like to set a variable in the apache config file which I can then access in a php script. I'm running mod_php4 and apache 1 I have tried things like

[PHP] Re: php back?

2002-09-03 Thread Manuel Lemos
Hello, On 09/03/2002 12:44 PM, Erich Kolb wrote: > What is the PHP equivalent to javascript: back? echo "Back"; It may not work though. -- Regards, Manuel Lemos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Uploading file

2002-09-03 Thread Clemson Chan
relative paths work too. Thank you so much. --Clemson -Original Message- From: Rodrigo Dominguez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 3:55 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Uploading file You are doing wrong... you are checking for the temp file and af

RE: [PHP] Uploading file

2002-09-03 Thread Clemson Chan
Thank you so much. I got the uploaded files now with full path ("/home/user/www/uploaded_files/") as the new path. can I use relative path such as "../uploaded_files/" ? Thanks --Clemson -Original Message- From: Rodrigo Dominguez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2

Re: [PHP] XML vs Everything Else

2002-09-03 Thread Geoff Hankerson
> > >Can anyone direct me to a page with xml in use? Something that can help me >grasp what its all about. > > > I didn't understand xml at all until I started using it . I asked pretty much the same question as you (what is it good for?). Now I will almost always use xml in any app I work o

[PHP] PHP 4.2.2 install problem

2002-09-03 Thread Mark McCulligh
I am new to Linux and is trying to install PHP/MySQL/SSL. I used the instruction found on this link: http://www.brtnet.org/linux/lampssl.htm Everything seemed to install OK; on the last step, open httpd.conf and uncomment the lines: AddType application/x-httdp-php .php AddType application/x-htt

Re: [PHP] Uploading file

2002-09-03 Thread Rodrigo Dominguez
You are doing wrong... you are checking for the temp file and after that you are deleting the temp file, you should copy the files first This is your code if(isset($UploadedFile)) { unlink($UploadedFile); // Here you are deleting the temp file print("Local File: $UploadedFile \n"

[PHP] creating mail on submitting a form.

2002-09-03 Thread Anil Garg
hi, In a form i have several text area.when i submit the form, I need to send a email at a particular id which contains the text entered in the text area. Can someone gimme a script which gives me and idea about how to do that...or some link where i can find that. Thanx and regards anil

Re: [PHP] mysql string comparison not working

2002-09-03 Thread timo stamm
Hi David, in PHP, you can not access associative arrays with index numbers (and your mysql row arrays will be of the associative kind). But Chris posted a kludge recently: //snip Just for kicks ... here's something pretty ugly (I'd never use it), but neat if you're interested (or somehow real

Re: [PHP] RE : include interpreted php file

2002-09-03 Thread timo stamm
@all: I just noticed that I was not replying to the list, but to the posting email adresses. I just switched to another email client and was not aware of this. My apologies :-( --- You, could it be that you want to do the following?: Am Dienstag den, 3. September 2002, um 00:15, schrie

Re: [PHP] Safe_Mode problem....

2002-09-03 Thread timo stamm
Hi Jim, I had the very same strange issue with a cfg var not changing. It worked after using ini_restore(). (I played around with ini_set() before. Did you as well?) I am not sure if it has anything to do with it. It sounds pretty illogical. But PHP ignoring a setting in php.ini sounds illo

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

2002-09-03 Thread timo stamm
Hi Øystein, PHP is interpreted on the server side, JS on the client side. I guess thats what you need to realize. Try starting with less complex stuff and just concentrate on one language at a time, in the beginning. Timo Am Montag den, 2. September 2002, um 17:49, schrieb Øystein Håland

RE: [PHP] Uploading file

2002-09-03 Thread Clemson Chan
Thanks Juan, and other listers, I have this example, Figure 7-3 \n"); print("Name: $UploadedFile_name \n"); print("Size: $UploadedFile_size \n"); print("Type: $UploadedFile_type \n"); print("\n"); } ?> and t

[PHP] Re: XML vs Everything Else

2002-09-03 Thread nicos
Hi, XML, eXtensible Markup Language. Meta-language. XML allows you to create your own variables and meta names. You should read some doc about it. Btw your question has nothing to do with PHP but really with XML you should take a look to the XML's mailing list they will help you better than we c

[PHP] XML vs Everything Else

2002-09-03 Thread Taylor York
Ok, Help me out on this one. As far as i can tell, xml documents store data..pretty much just a dababase. Now please, correct me on anything I say incorrectly...But i just cannot seem to grasp the point of using XML over MySQL. Can anyone direct me to a page with xml in use? Something that can h

RE: [PHP] ftp_put

2002-09-03 Thread victor
Well I'm having the same problem... no useful suggestions from ME yet. :) - Victor > www.argilent.com -Original Message- From: Jason Romero [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 5:13 PM To: [EMAIL PROTECTED] Subject: [PHP] ftp_put I am having problems getting the

[PHP] Please, help with Sourceforge's PHP command-line not working at all

2002-09-03 Thread Alberto
Hello, I was suggested by a user at SF to write you to see if you could provide me some ideas of what is going wrong with the new PHP command-line at SourceForge. I used to do some daily work in PHP and crontab at my site in SF but now it is not working any longer. I think that it has sta

[PHP] ftp_put

2002-09-03 Thread Jason Romero
I am having problems getting the ftp_put command to upload a file to an apache server i get this error Warning: error opening C:\\WINDOWS\\Desktop\\Jason\\jjmckay\\testaudio.mp3 in /home/virtual/site31/fst/var/www/html/clientadmin/mp3upload.php on line 32 here is the code $dest = "/var/www/html/

Fw: [PHP] FORUM CODE

2002-09-03 Thread Kevin Stone
str_replace(); http://www.php.net/manual/en/function.str-replace.php Here's an example how you might use str_replace() to create your own scripting syntax.. --- $myformtxt = '[i]Hello[/i] [B]world[/B]'; // pretend this came from a form. function parse_script($str) { // The array could be stor

Re: [PHP] cURL and HTTP request header field/XML 2b

2002-09-03 Thread Kristopher Yates
I added the header and blank line to my $outgoing_data but no luck. It was like... ..xml document.."; ..curl exec (see prev message or email me).. ?> Any cURL XML phreaks out there? Or someone that can tell me how to pass an HTTP header through cURL before sending my XML. I can provide cod

[PHP] Re: Uploading file

2002-09-03 Thread eriol
Definately check out the URL Juan posted first to learn how you can easily do this yourself.. You can also check http://www.hotscripts.com/PHP/Scripts_and_Programs/ and look into the "/File Manipulation/Upload Systems" and "/Form Processors" directorys there for some pre-written upload scripts.. Y

[PHP] Re: PHP OOP

2002-09-03 Thread Rodrigo Dominguez
I made a mistake while I was writting the example, in my original code I wrote it as you did, with $this->b[0] = new one(); but it doesn't work. Thank you. "Philip Hallstrom" <[EMAIL PROTECTED]> escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Not tested, but what if you chan

[PHP] PHP OOP

2002-09-03 Thread Rodrigo Dominguez
I have a problem, I can't create an array of classes into a class, for example: class one { var $a; function foo() { echo "foo"; } } class two { var $b; function initialize() { $b[0] = new one(); $b[1] = new one(); } } $test = new two(); $test->

[PHP] Re: PHP OOP

2002-09-03 Thread Philip Hallstrom
Not tested, but what if you change $b[0] = new one(); $b[1] = new one(); to: $this->b[0] = new one(); $this->b[1] = new one(); On Tue, 3 Sep 2002, Rodrigo Dominguez wrote: > I have a problem, I can't create an array of classes into a class, for > example: >

RE: [PHP] Uploading file

2002-09-03 Thread victor
tell you most things about php and some things about web server and dbs - Victor > www.argilent.com -Original Message- From: Clemson Chan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 4:04 PM To: [EMAIL PROTECTED] Subject: [PHP] Uploading file Hi, I am new to this grou

[PHP] cURL and HTTP request header field/XML 2b

2002-09-03 Thread Kristopher Yates
Hi, I recently took a few minutes to install cURL library. A few minutes later, I had a working PHP script, which uses cURL to send some data to a remote server and get a response. I then, of course, parse the response and PHP creates the appropriate page for output to end user. Worked gre

[PHP] PHP OOP

2002-09-03 Thread Rodrigo Dominguez
I have a problem, I can't create an array of classes into a class, for example: class one { var $a; function foo() { echo "foo"; } } class two { var $b; function initialize() { $b[0] = new one(); $b[1] = new one(); } } $test = new two(); $test->

RE: [PHP] FORUM CODE

2002-09-03 Thread Brian V Bonini
My guess would be a regex replace function. The latest version of Phorum has this capability. You could grab the source form phorum.org and have a look. > -Original Message- > From: Tony Harrison [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 03, 2002 2:23 PM > To: [EMAIL PROTECTED

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

[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

[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.

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

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

[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
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] 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 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

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] 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,

[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

[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] 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

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: 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

[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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: '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: 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] 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

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] 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]..

[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

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

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!!!

[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 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

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 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 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 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

[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 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

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: >

  1   2   >