[PHP] dynamic website screenshot/screen capture

2003-02-21 Thread olinux
Hi all - While I know that this is not possible with PHP alone, Does anyone know how to capture website screen shots using PHP. I have recieved many spam mails featuring a screen shot of our company website and I imagine that it would be quite possible combined with some sort of web browser. It w

[PHP] cookie problem..

2003-02-21 Thread Terry Lau
Hello, I want to set a cookie when I enter a text into the text field, and it shows the text I submitted immediately, thus I write a sample php code like this: (I set the text field is Name and the data will be sent to another page) In another page, I insert in the beginning of the code.

RE: [PHP] selection in form-field

2003-02-21 Thread John W. Holmes
Client side issue. Use javascript or DHTML. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -Original Message- > From: Michiel van Heusden [mailto:[EMAIL PROTECTED] > Sent: Friday, February 21, 2003 4:47 AM > T

RE: [PHP] Memory used by script...

2003-02-21 Thread John W. Holmes
> Hi... I got a big site, which is not very well constructed inside, and the > script began to throw (rather often, but NOT always) a fatal error " Fatal > error: Allowed memory size of 8388608 bytes exhausted ", every time in > different places. I wonder how should I debug that, as there is pretty

RE: [PHP] session expiration

2003-02-21 Thread John W. Holmes
> >> I'm using sessions for authentication in a content management system > and > >> experiencing rare but occasional problems with the session apparently > >> expiring unexpectedly. I've checked the manual and I've reviewed the > > session > >> configuration on the commericial host I'm using. I do

RE: [PHP] Re: including in shtml

2003-02-21 Thread John W. Holmes
> anyone? Do you want everyone on the list to send you a message saying they're not sure what to do?? Just be patient and if someone has an idea, they'll let you know. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ >

RE: [PHP] preg_match question: locating unmatched HTML tags

2003-02-21 Thread John W. Holmes
> I'm trying to build a regexp that would parse user-supplied text and > identify cases where HTML tags are left open or are not properly > matched-e.g., tags without closing tags. This is for a sort of > message board type of application, and I'd like to allow users to use > some HTML, but just

RE: [PHP] Re: including in shtml

2003-02-21 Thread Matt Honeycutt
I'll check, but I'm pretty sure my host only allows me to edit the existing *.shtml files to customize my error pages. I don't think it will allow me to set the error pages to different URL's. ---Matt -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Friday, Februa

RE: [PHP] MAC address user recognition?

2003-02-21 Thread Larry Brown
One other thing you could do is simply set up SSL with your own certificate so that it will encrypt the connection and then run code via JAVA or some other client side applet that will get the MAC address from the client machine directly. You can then check the MAC against the addresses allowed. S

RE: [PHP] Re: including in shtml

2003-02-21 Thread John W. Holmes
> If you figure out how to do this successfully, please share. I'm forced > to use SHTML for my error pages (404.shtml and whatnot), but I'd like to > get those to interact with PHP as well. Most any web server will allow you to set a URL as the error handler, so you can have it as a PHP page. Is

RE: [PHP] PHP running on Win 2000 and IIS

2003-02-21 Thread John W. Holmes
> I wish to run PHP on a Win 2000 server, MS SQL and IIS. Can someone please > guide me to some place where there are some tutorials on how to install > and run the above? The PHP manual has an installation channel the works. > Also are there any problems by running PHp on Win 2000, MS SQL and

RE: [PHP] Array instead of Switch

2003-02-21 Thread John W. Holmes
> >Let's say I need to take one of 20 actions depending on a form selection. > I > >could use a switch statement with 20 cases, but I could also do something > >like: > > > >// Pretend this comes from a form > >$formchoice = "mars"; > > > > > >$response = array( > > "mars" => "go_mars()", > > "merc

[PHP] Re: passing variables to flash

2003-02-21 Thread Lord Loh.
See the flash docs. There are ways of making javascript and flash interact. So make a dynamically generated javascript which will pass variable to flash! Or are there special reasonds to use only GET ? Lord Loh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] Array instead of Switch

2003-02-21 Thread David Otton
On 22 Feb 2003 03:28:22 -, you wrote: >Let's say I need to take one of 20 actions depending on a form selection. I >could use a switch statement with 20 cases, but I could also do something >like: > >// Pretend this comes from a form >$formchoice = "mars"; > > >$response = array( > "mars" =>

Re: [PHP] "Constants" for dummies, please?

2003-02-21 Thread Philip Olson
Some thoughts on variables and constants: a) You can't redefine a constant but can redefine a variable. b) Constants are autoglobal (like superglobals) so for example: Had we not used global $variable, the $variable would not have been available inside the function. But, the

Re: [PHP] Logging Referer

2003-02-21 Thread Tom Rogers
Hi, Saturday, February 22, 2003, 9:19:13 AM, you wrote: MH> Hi all, MH> I'm working on adding some logging functionality to a PHP image counter MH> script that I wrote. The counter outputs an image representing the current MH> number of hits and is used via an tag. After it displays the image,

Re: [PHP] Array instead of Switch

2003-02-21 Thread David T-G
Chris, et al -- ...and then Chris said... % % Let's say I need to take one of 20 actions depending on a form selection. I % could use a switch statement with 20 cases, but I could also do something % like: % % // Pretend this comes from a form % $formchoice = "mars"; % % % $response = array(

[PHP] Utah PHP User

2003-02-21 Thread Ray Hunter
I am thinking of starting a Utah PHP user group. If there are any Utah php user out there, please let me know if you would be interested in starting a user group for PHP. Thanks, Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP running on Win 2000 and IIS

2003-02-21 Thread Denis L. Menezes
Hello friends, I wish to run PHP on a Win 2000 server, MS SQL and IIS. Can someone please guide me to some place where there are some tutorials on how to install and run the above? Also are there any problems by running PHp on Win 2000, MS SQL and IIS? Thanks Denis -- PHP General Mailing Lis

Re: [PHP] Re: including in shtml

2003-02-21 Thread Tom Rogers
Hi, Saturday, February 22, 2003, 12:29:36 PM, you wrote: HP> Im trying to write a poll script that is easy to intergrate into other HP> documents of a site and thought that since shtml is a much used method, I HP> want to make it available. HP> "Hans Prins" <[EMAIL PROTECTED]> schreef in bericht

[PHP] PHP Job Opening

2003-02-21 Thread Chris
http://www.alaska.edu/hr/jobs/external/tmp19_3.xml -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: including in shtml

2003-02-21 Thread Matt Honeycutt
If you figure out how to do this successfully, please share. I'm forced to use SHTML for my error pages (404.shtml and whatnot), but I'd like to get those to interact with PHP as well. ---Matt -Original Message- From: Hans Prins [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003

[PHP] Array instead of Switch

2003-02-21 Thread Chris
Let's say I need to take one of 20 actions depending on a form selection. I could use a switch statement with 20 cases, but I could also do something like: // Pretend this comes from a form $formchoice = "mars"; $response = array( "mars" => "go_mars()", "mercury" => "go_mercury()", "earth"

Re: [PHP] user registration system

2003-02-21 Thread olinux
this is decent A Complete, Secure User Login System by tim perdue http://phpbuilder.com/columns/tim2505.php3 and of course - hotscripts.com --- Dennis Gearon <[EMAIL PROTECTED]> wrote: > Anybody know of a good user registration system, > using emailed web addresses for verification of > e

RE: [PHP] Logging Referer

2003-02-21 Thread Matt Honeycutt
Yeah, I had thought about using JavaScript. I had hoped that there was another way, but if there is, I can't figure it out. ---Matt -Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 8:37 PM To: Matt Honeycutt; Php-General Subject: Re: [PHP]

Re[2]: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread Tom Rogers
Hi, Saturday, February 22, 2003, 2:26:35 AM, you wrote: M> I see that its looking for mysql.sock in /tmp/mysql.sock M> but I searched on my system and only found mysql.sock in /var/lib/mysql/ M> is there a section where I need to change this setting? or a conf file? M> "Hans Prins" <[EMAIL PROT

[PHP] preg_match question: locating unmatched HTML tags

2003-02-21 Thread Andy Crain
My apologies in advance if this too basic or there's a solution easily found out there, but after lots of searching, I'm still lost. I'm trying to build a regexp that would parse user-supplied text and identify cases where HTML tags are left open or are not properly matched-e.g., tags without

Re: [PHP] Logging Referer

2003-02-21 Thread Justin French
on 22/02/03 10:19 AM, Matt Honeycutt ([EMAIL PROTECTED]) wrote: > I'd also like for it to log the referer, > but because the counter is triggered via an tag, the referer is always > the page that has the tag. Is there any other way to grab the referer > that actually sent the user to the page t

[PHP] Re: including in shtml

2003-02-21 Thread Hans Prins
Im trying to write a poll script that is easy to intergrate into other documents of a site and thought that since shtml is a much used method, I want to make it available. "Hans Prins" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Hello, > > I have a problem with including a "tes

Re: [PHP] Convert *.PST Files to Something Else (LDAP...)

2003-02-21 Thread David T-G
Michael -- ...and then Michael A Smith said... % % Hi, Hi! % % Is there any way using PHP (or any thing else, preferably PHP) to % convert a MS Outlook *.PST file to another file that would be usable by Converting from Outhouse comes up a lot on the mutt-users list. To date the only thing o

Re: [PHP] Re: including in shtml

2003-02-21 Thread Tom Rogers
Hi, Saturday, February 22, 2003, 8:22:44 AM, you wrote: HP> anyone? HP> "Hans Prins" <[EMAIL PROTECTED]> schreef in bericht HP> news:[EMAIL PROTECTED] >> Hello, >> >> I have a problem with including a "test.php" into a "test.shtml" and HP> passing >> a variable to the "test.shtml" which should be

Re: [PHP] ob_gzhandler problems under 4.3.0???

2003-02-21 Thread Gerard Samuel
Thanks. Worked like a charm... Jason Sheets wrote: PHP is starting output buffering automatically for you and then you are starting it in your script as well, that is why you are receiving the message ob_gzhandler can not be used twice. Use ob_get_level to check if output buffering is not alread

[PHP] ssi problem

2003-02-21 Thread Hans Prins
Could anyone please shed some light on the following issue? I have a problem with including a "test.php" into a "test.shtml" and passing a variable to the "test.shtml" which should be available and processed in the "test.php" the "test.php" document includes the following: ---

Re: [PHP] ob_gzhandler problems under 4.3.0???

2003-02-21 Thread Jason Sheets
PHP is starting output buffering automatically for you and then you are starting it in your script as well, that is why you are receiving the message ob_gzhandler can not be used twice. Use ob_get_level to check if output buffering is not already started. You may want additional logic that chec

[PHP] Convert *.PST Files to Something Else (LDAP...)

2003-02-21 Thread Michael A Smith
Hi, Is there any way using PHP (or any thing else, preferably PHP) to convert a MS Outlook *.PST file to another file that would be usable by PHP, using only PHP scripts, or even a CGI? I am working on an open-source project called falconmail that needs to be able to import all sorts of mail files

[PHP] ob_gzhandler problems under 4.3.0???

2003-02-21 Thread Gerard Samuel
I noticed this problem with one of my scripts when its running under php 4.3.0, Apache 2.0.44. It only happens when started with ob_start('ob_gzhandler'); Even with this test script from the php manual produces this error. Any insight would be appreciated. From php.ini -> ; Output buffering allow

RE: [PHP] Getting a Multiple Select Form Field's Value

2003-02-21 Thread Barajas, Arturo
Mike: On the name of the select, use "[]". That way, you can access the array to see what options were selected. -- Un gran saludo/Big regards... Arturo Barajas, IT/Systems PPG MX (SJDR) (427) 271-9918, x448 > -Original Message- > From: Mike Walth [mailto:[EMAIL PROTECTED] > Sent

[PHP] Getting a Multiple Select Form Field's Value

2003-02-21 Thread Mike Walth
Hello: I'm trying to get the value from the following form field. Value1 Value2 Value3 I can get it to return one value, but if I select multiple values I can't get all the values form it. Any ideas would be appreciated. Mike Walth CinoFusion -- PHP General Mailing List (http://www

[PHP] HELP: Memory exceeding

2003-02-21 Thread Markas
Hi... I got a big site, which is not very well constructed inside, and the script began to throw (rather often, but NOT always) a fatal error " Fatal error: Allowed memory size of 8388608 bytes exhausted ", every time in different places. I wonder how should I debug that, as there is pretty much co

[PHP] Logging Referer

2003-02-21 Thread Matt Honeycutt
Hi all, I'm working on adding some logging functionality to a PHP image counter script that I wrote. The counter outputs an image representing the current number of hits and is used via an tag. After it displays the image, the counter collects information about the user (browser version and OS,

Re: [PHP] Serial communiction

2003-02-21 Thread Ernest E Vogelsinger
At 23:12 21.02.2003, Ian said: [snip] >Is it possible to read information on the client serial port and return it >to the server ? [snip] Sure. But not with PHP. PHP is working "behind the scenes", at the webserver.

[PHP] Serial communiction

2003-02-21 Thread Ian
Is it possible to read information on the client serial port and return it to the server ? a newbie. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] DBA / DB2/3/ GDBM Failures

2003-02-21 Thread Mitch Vincent
I've tried all of the DB libs and I can't get any of them to compile/work properly.. For GDBM I get : Driver initialization failed for handler: gdbm: Bad magic number For the rest I just get Driver initialization failed for handler: Where is db2 db3 etc.. Can anyone tell me what the the tric

[PHP] Re: php_mcrypt.dll

2003-02-21 Thread J Smith
If all you need is some PHP encryption and don't necessarily need the mcrypt library, you can try cryptopp-php, which does pretty much the same thing. A Windows DLL that was compiled for PHP 4.3.0 is available at http://www.tutorbuddy.com/software/ It should work with PHP 4.3.1, too, as I don't

[PHP] Re: including in shtml

2003-02-21 Thread Hans Prins
anyone? "Hans Prins" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Hello, > > I have a problem with including a "test.php" into a "test.shtml" and passing > a variable to the "test.shtml" which should be processed in the "test.php" > > the "test.php" document includes the followi

[PHP] Bizarre Assignment Issue

2003-02-21 Thread Steven Walker
I am experiencing some very odd behavior in my classes that I don't know how to work around. Apparently, PHP is getting my variables 'confused' with each other and assigning/returning the wrong data. My class design is as follows: class TestClass { var $TestLog; var $Data1;

[PHP] mcrypt not fully decrypting?

2003-02-21 Thread Tyler Longren
Hi, I'm going to start encrypting credit cards with the mcrypt functions. I encrypted the credit cards like so: $key = 'test'; $cc = "1234567890123456"; $td = mcrypt_module_open ('tripledes', '', 'ecb', ''); $key = substr ($key, 0, mcrypt_enc_get_key_size ($td)); $iv_size = mcrypt_enc_get

[PHP] mail function fails with no error code

2003-02-21 Thread ML
I am unable to send emails, and there are no errors being generated or populated in the $php_errormsg variable, since I enabled track errors in the php.ini. So I have no idea why the mail send is failing. Am I supposed to specify a mail server to use for sending mail? My sendmail was setup automati

Re: [PHP] What do these errors mean?

2003-02-21 Thread Jim Lucas
in the first line of the code you are refering to $_GET[option] option in this case is being seen as a constant. if you were to put single or double quotes it would work. the second notice means that in the $_GET array, there isn't a key called option it would probably work better if you did th

Re: [PHP] Cannot find php.ini

2003-02-21 Thread Jim Lucas
the default location for the php.ini file (if installed with the RPM's) is /etc/php.ini Jim - Original Message - From: "Kevin Paz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 11:03 AM Subject: [PHP] Cannot find php.ini > > I've taken over a redhat server w

Re: [PHP] Cannot find php.ini

2003-02-21 Thread Ernest E Vogelsinger
At 20:03 21.02.2003, Kevin Paz spoke out and said: [snip] > > I've taken over a redhat server with apache/php4.1. I need to enable >register_argc_argv but I can't find the php.ini file (I've searched the >entire system). try (as root) # update the

RE: [PHP] Cannot find php.ini

2003-02-21 Thread Cal Evans
find / -iname php.ini or create a page with Untitled Save it and then call it form your webserver. It'll tell you where the ini is. =C= * Cal Evans * Stay Plugged Into Your Audience * http://www.christianperformer.com -Original Message- From: Kevin Paz [mailto:[EMA

Re: [PHP] Cannot find php.ini

2003-02-21 Thread 1LT John W. Holmes
> I've taken over a redhat server with apache/php4.1. I need to enable > register_argc_argv but I can't find the php.ini file (I've searched the > entire system). > > Would creating a new php.ini file with only register_argc_argv line work? > Where's the default location for php.ini? Load up a pa

Re: [PHP] What do these errors mean?

2003-02-21 Thread 1LT John W. Holmes
> I was looking through php.ini and noticed that show_error was set to Off. I > turned it On, and now I see these errors on one of my pages: > Notice: Use of undefined constant option - assumed 'option' in > /usr/local/apache/htdocs/tyler/encodeDecode.php on line 37 > > Notice: Undefined index: opt

Re: [PHP] What do these errors mean?

2003-02-21 Thread Tyler Longren
The actual name of the variable in that message is display_errors, not show_error. tyler - Original Message - From: "Tyler Longren" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 1:01 PM Subject: [PHP] What do these errors mean? > Hi, > > I was looking throu

Re: [PHP] Cannot find php.ini

2003-02-21 Thread Tyler Longren
Default location is: /usr/local/lib/php.ini You can also do a: locate php.ini Good luck, Tyler - Original Message - From: "Kevin Paz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 1:03 PM Subject: [PHP] Cannot find php.ini > > I've taken over a redhat se

[PHP] Cannot find php.ini

2003-02-21 Thread Kevin Paz
I've taken over a redhat server with apache/php4.1. I need to enable register_argc_argv but I can't find the php.ini file (I've searched the entire system). Would creating a new php.ini file with only register_argc_argv line work? Where's the default location for php.ini? Thank

[PHP] What do these errors mean?

2003-02-21 Thread Tyler Longren
Hi, I was looking through php.ini and noticed that show_error was set to Off. I turned it On, and now I see these errors on one of my pages: Notice: Use of undefined constant option - assumed 'option' in /usr/local/apache/htdocs/tyler/encodeDecode.php on line 37 Notice: Undefined index: option i

[PHP] "Constants" for dummies, please?

2003-02-21 Thread Chris Corwin
Help, please -- I've just started looking at my first line of PHP code. :) A little background, I am *not really* a programmer: I went to art school. I have taught myself to develop web stuff in another language: Lasso, but have no training. In any case, I am looking through a php script th

[PHP] LDAP error error

2003-02-21 Thread Todd Rosenberry
I am getting bizarre results from ldap_errno and ldap_error. I am using PHP 4.0.4pl1, iPlanet web server 4.1SP7 and iPlanet LDAP server 4.16. As a test I am trying to add an entry to LDAP that already exists. The link and bind to LDAP work properly and the LDAP log show the correct behav

[PHP] Help with session needed

2003-02-21 Thread Øystein Håland
I use cookies in my web applications, but have reached the 4 kB limit. So I need to 'convert' all my cookies to session variables. Have got an idea how I can create such for one variable, but here I have multi element cookies. Reading the php manual gives me no idea on how to do this. Here's the re

[PHP] Cascading delete in oracle

2003-02-21 Thread Raven Eve
create table Shop( ordId NUMBER(7) NOT NULL PRIMARY KEY); create table Customer( ordId NUMBER(7) NOT NULL, FOREIGN KEY (ordId) REFERENCES Shop(ordId) on delete cascade); so, when i delete a row in shop, the corresponding row in customer will be deleted. so, i have created a function in php to ex

Re: [PHP] Dynamic Dropdowns

2003-02-21 Thread David Otton
On Fri, 21 Feb 2003 10:37:42 -0700, you wrote: >>Quoting Steven Kallstrom <[EMAIL PROTECTED]>: >> I am creating dynamic drop down lists... I would like to have an >> option appear in the drop down list, but have it greyed-out and not be >> selectable... I know you can disable selects, but I

[PHP] user registration system

2003-02-21 Thread Dennis Gearon
Anybody know of a good user registration system, using emailed web addresses for verification of email address? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Cascading delete in php and oracle

2003-02-21 Thread Raven Eve
hi, i have 2 tables in oracle create table Shop( ordId NUMBER(7) NOT NULL PRIMARY KEY); create table Customer( ordId NUMBER(7) NOT NULL, FOREIGN KEY (ordId) REFERENCES Orders(ordId) on delete cascade); so, when i delete a row in shop, the corresponding row in customer will be deleted. so, i hav

[PHP] Cascading delete in oracle and php

2003-02-21 Thread Raven Eve
hi, i have 2 tables in oracle create table Shop( ordId NUMBER(7) NOT NULL PRIMARY KEY); create table Customer( ordId NUMBER(7) NOT NULL, FOREIGN KEY (ordId) REFERENCES Orders(ordId) on delete cascade); so, when i delete a row in shop, the corresponding row in customer will be deleted. so, i hav

Re: [PHP] Dynamic Dropdowns

2003-02-21 Thread Richard Whitney
Oh! Yes you can: Some Value Have fun! Quoting Steven Kallstrom <[EMAIL PROTECTED]>: ### Hey PHP lovers, ### ### I am creating dynamic drop down lists... I would like to have an ### option appear in the drop down list, but have it greyed-out and not be ### selectable... I know you can di

[PHP] Dynamic Dropdowns

2003-02-21 Thread Steven Kallstrom
Hey PHP lovers, I am creating dynamic drop down lists... I would like to have an option appear in the drop down list, but have it greyed-out and not be selectable... I know you can disable selects, but I don't think you can disable individual options in selects... anyone have any ideas?

Re: [PHP] mr. jason wong kind attention

2003-02-21 Thread David T-G
Wilbert -- ...and then W. Enserink said... % % hey david, Hiya! % % should she apologize to you know?? for apologizing twice?:-) *grin* Tee hee. % I'm sorry if offended anyone with this mail. D'oh! Sorry if *I* offended anyone with my reply! Or with this reply! Or with my apology! %

Re: [PHP] ayuda mysql

2003-02-21 Thread Maciek Ruckgaber Bielecki
On Fri, Feb 21, 2003 at 09:03:18AM -0800, Rot Alvarez wrote: > Bueno gracias..ten??as tod al raz??n...pero haora sale esto: > > Listado de tablas: > > Warning: Supplied argument is not a valid MySQL result resource in >/../web/php_mysql.php on line 40 > tiene cara de que le estas pasando algo

Re: [PHP] ayuda mysql

2003-02-21 Thread Brad Pauly
> estoy tratando de programar un messenger en php y > sale este mensaje y no se como arreglarlo...no lo entiendo > > Warning: MySQL Connection Failed: Unknown MySQL Server Host 'misitio.cl/' (2) in >/../messengerphp/cabesera.php on line 87 > > Warning: Supplied argument is not a valid MySQL-Link

Re: [PHP] passing variables to flash

2003-02-21 Thread Michiel van Heusden
thanks for your reply > What I do in these cases is either having Or use a file (something.php) which spits text like var1=&var2=. > Flash can read that file and get the variables the second one is not a possibility, because I need flash to have the vars before operating. the variables ar

[PHP] Mail Sending Error

2003-02-21 Thread ML
Im having some more error checking issues :) This time its with sending email using php. Im absolutely sure that the email address is correct and that my IMAP module is enabled for php as I successfully read emails from my ISP. But when I sent an email with: mail($to, $subject, $body, $headers) i

RE: [PHP] passing variables to flash

2003-02-21 Thread Marios Adamantopoulos
What I do in these cases is either having mailto:[EMAIL PROTECTED]] Sent: 21 February 2003 16:37 To: [EMAIL PROTECTED] Subject: [PHP] passing variables to flash i want to pass variables to a shockwave-flash-file currently that's working fine with print " etc... but passing the variables throu

Re: [PHP] session expiration

2003-02-21 Thread Lowell Allen
> From: "1LT John W. Holmes" <[EMAIL PROTECTED]> > >> I'm using sessions for authentication in a content management system and >> experiencing rare but occasional problems with the session apparently >> expiring unexpectedly. I've checked the manual and I've reviewed the > session >> configuration

[PHP] passing variables to flash

2003-02-21 Thread Michiel van Heusden
i want to pass variables to a shockwave-flash-file currently that's working fine with print " etc... but passing the variables through GET makes iexplore think it's loading a new *.swf-file how to fix this? 1) is there a way around using GET to pass the variables from PHP? 2) is there a way to

[PHP] ayuda mysql

2003-02-21 Thread Rot Alvarez
estoy tratando de programar un messenger en php y sale este mensaje y no se como arreglarlo...no lo entiendo Warning: MySQL Connection Failed: Unknown MySQL Server Host 'misitio.cl/' (2) in /../messengerphp/cabesera.php on line 87 Warning: Supplied argument is not a valid MySQL-Link resource in

Re: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread ML
Thanks rick, that is a much cleaner solution! "Rick Emery" <[EMAIL PROTECTED]> wrote in message 009f01c2d9c1$51171d20$0500a8c0@honeybee">news:009f01c2d9c1$51171d20$0500a8c0@honeybee... > $db = mysql_pconnect("localhost", "test1", "test1") or die(mysql_error()); > > - Original Message - >

Re: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread ML
I see that its looking for mysql.sock in /tmp/mysql.sock but I searched on my system and only found mysql.sock in /var/lib/mysql/ is there a section where I need to change this setting? or a conf file? "Hans Prins" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: [PHP] session emergency

2003-02-21 Thread David Otton
On Fri, 21 Feb 2003 08:05:47 -0800 (PST), you wrote: >Where can I set the session data size? AFAIK, the only limit to the amount of data stored in a session is the filesize limit of the underlying OS. What's the problem exactly? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] session emergency

2003-02-21 Thread Jason k Larson
Sessions have a list of options that can be set, but I don't see anything remotely similar to a 'data size'. What error are you getting, or please explain further in more detail. Regards, Jason k Larson Joseph Bannon wrote: Where can I set the session data size? Joe. __

Re: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread ML
You were right Prins, I got the error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) So I guess I need to investigate what this means now... Thanks! -ML "Hans Prins" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Would you care t

Re: [PHP] Root Commands

2003-02-21 Thread Patrick Armour
I understand the implications this could cause and appreciate your concerns. This is on a test machine on a secure network that I've set up just to get me through the learning process. Eventually this form will be in a secure area of the site that only staff have access to. The script will add a

Re: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread Hans Prins
> Would you care to explain to the rest of the list how you intend to use > mysql_error () to return connection failure information? > > It returns the text of the error message from previous MySQL operation > Description: string mysql_error ( [resource link_identifier]) > > Seems to me that withou

[PHP] session emergency

2003-02-21 Thread Joseph Bannon
Where can I set the session data size? Joe. __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread Jason k Larson
Would you care to explain to the rest of the list how you intend to use mysql_error () to return connection failure information? It returns the text of the error message from previous MySQL operation Description: string mysql_error ( [resource link_identifier]) Seems to me that without a connect

Fw: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread Rick Emery
$db = mysql_pconnect("localhost", "test1", "test1") or die(mysql_error()); - Original Message - From: "ML" <[EMAIL PROTECTED]> To: <> Sent: Friday, February 21, 2003 9:33 AM Subject: [PHP] Re: Mysql DB connect failure Where exactly would I put the print mysql_error() ? Here is the code.

Re: [PHP] function to discover if value is already in array

2003-02-21 Thread 1LT John W. Holmes
> Here is an example array: > > > array( > array("1","2"), > array("2","3"), > array("3","1") > ) > > now suppose I get some form inputs with the value 1 and 1. I am trying to > find a way to figure out if the first coloumn is already in the table and > if so just add the

Re: [PHP] session expiration

2003-02-21 Thread 1LT John W. Holmes
> I'm using sessions for authentication in a content management system and > experiencing rare but occasional problems with the session apparently > expiring unexpectedly. I've checked the manual and I've reviewed the session > configuration on the commericial host I'm using. I don't see anything w

[PHP] Re: Mysql DB connect failure

2003-02-21 Thread ML
Where exactly would I put the print mysql_error() ? Here is the code... "); "Hans Prins" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > did you try: > print mysql_error(); > > "Ml" <[EMAIL PROTECTED]> schreef in

[PHP] Re: Mysql DB connect failure

2003-02-21 Thread Hans Prins
did you try: print mysql_error(); "Ml" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Currently I have some php code that displays a message if a connect to my > database fails. Is there anyway I > can get a more descriptive error message? So I can see exactl

Re: [PHP] Re: session expiration

2003-02-21 Thread Hans Prins
I think a database session would be of more use to you since you would have more control over the lifetime of the session etc "Lowell Allen" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > From: "Hans Prins" <[EMAIL PROTECTED]> > > > > can you show

Re: [PHP] function to discover if value is already in array

2003-02-21 Thread Ray
On Friday 21 February 2003 09:08, you wrote: > Here is an example array: > > > array( > array("1","2"), > array("2","3"), > array("3","1") > ) > > now suppose I get some form inputs with the value 1 and 1. I am trying to > find a way to figure out if the first coloumn is

[PHP] Mysql DB connect failure

2003-02-21 Thread ML
Currently I have some php code that displays a message if a connect to my database fails. Is there anyway I can get a more descriptive error message? So I can see exactly why my php can't connect to the Database? I am pretty sure that the username and password are correct and the username exists as

Re: [PHP] Php Oracle & Word object

2003-02-21 Thread 1LT John W. Holmes
SELECT it out, send Word headers with header() and echo your data. ---John Holmes... - Original Message - From: "M.ALPER KARASAHIN" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 8:53 AM Subject: [PHP] Php Oracle & Word object Hi, i want to display a bl

[PHP] function to discover if value is already in array

2003-02-21 Thread JJ Harrison
Here is an example array: array( array("1","2"), array("2","3"), array("3","1") ) now suppose I get some form inputs with the value 1 and 1. I am trying to find a way to figure out if the first coloumn is already in the table and if so just add the second coloumn to th

Re: Re[2]: [PHP] small ads system

2003-02-21 Thread 1LT John W. Holmes
> Thank you for answer, but I need application for personal small ads. > > I am looking for application which need to show categorized > personal small ads and needto allow on-line adding of > personal small ads (for everyone) and and > need to have some mechanism for ads administration. > > > I do

Re[2]: [PHP] small ads system

2003-02-21 Thread Nenad Djordjevic
Hello John, Thank you for answer, but I need application for personal small ads. I am looking for application which need to show categorized personal small ads and needto allow on-line adding of personal small ads (for everyone) and and need to have some mechanism for ads administration. I do n

Re: [PHP] small ads system

2003-02-21 Thread 1LT John W. Holmes
> I need web application (PHP/MySQL) for small ads > (personal ads, that is advertisements to buy and > sell cars, houses etc). http://www.phpwizard.net/projects/phpAds/ ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] list "a", list "b" ...etc

2003-02-21 Thread 1LT John W. Holmes
> how can i sort names by first letter, like, show only names starting > with a, then b, c .. etc Where is the data? In an array? database? file? If it's a database, then you can just do SELECT * FROM table WHERE column LIKE 'a%' or SELECT * FROM table WHERE LEFT(column,1) = 'a' ---John Holmes

  1   2   >