Re: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Jason Wong
On Wednesday 26 March 2003 15:28, Steve Jackson wrote: Has anyone ever simply tried to pass information direct from the web into a secure Intranet mysql DB rather than to a web DB? Haven't the faintest idea what you mean by direct from the web and a secure Intranet mysql db and web DB. I am

[PHP] Installation

2003-03-26 Thread Daniel Perry
Dear Sir I require a complete installation package if possible. I am operating XP Pro, but unfortunately not IIS. The problems that I have experienced trying to obtain IIS has made me decide to use Apache as my web server along with PHP and MySQL. Please would you provide a direct link

RE: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Steve Jackson
Haven't the faintest idea what you mean by direct from the web and a secure Intranet mysql db and web DB. Sorry. What I mean is that we have an externally hosted website. Currently all the forms etc update tables in the web hosted mysql DB. I am in the process of building a small CRM

Re: [PHP] Installation

2003-03-26 Thread Nikunj Virani
I require a complete installation package if possible. I am operating XP Pro, but unfortunately not IIS. The problems that I have experienced trying to obtain IIS has made me decide to use Apache as my web server along with PHP and MySQL. Please would you provide a direct link that will

Re: [PHP] can i ask?

2003-03-26 Thread Awlad Hussain
These lines already exist in httpd.conf file, you may need to change the path or uncomment them. - Original Message - From: M.N. Ikhwan S. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 12:49 AM Subject: [PHP] can i ask? ScriptAlias /php/ c:/php/ AddType

Re: [PHP] Formatting code.

2003-03-26 Thread Awlad Hussain
Good article on coding standard at www.phpfreaks.net Is there any documents on how code should be layed out? -- Philip J. Newman. Head Developer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --

Re: [PHP] Object Aggregation - does anyone have experience with it?

2003-03-26 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 my _guess_ would be you compiled w/ default (v1) zend engine. v2 has lots of improvements for oop- perhaps this is one of them. Try compiling with v2 of the engine and see what happens. On Tuesday 25 March 2003 02:44 pm, Christopher E. Welton

[PHP] ldap_read() and 'No such object'

2003-03-26 Thread Turbo Fredriksson
I'm using ldap_read() to get the namingContexts from the LDAP server. - s n i p - $sr = ldap_read($this-ldap_linkid, '', '(objectClass=*)', array('namingContexts')); if(! $sr) die(Can't find base dn - .ldap_error($this-ldap_linkid)); $entry = ldap_get_entries($this-ldap_linkid, $sr);

[PHP] Installation Problem

2003-03-26 Thread bob pilly
Hi Im trying to install php-4.3.1 as a dynamic module in apache-2.0.44 but are having problems. I install and compile both with no problems using the --with-apxs=pathto in the ./configure command for php. I can see that it has created the libphp4.so in pathtoapache/modules/ and i have added

[PHP] best way to throw erorrs within a class

2003-03-26 Thread Dan Rossi
hi guys i have been trying to work out the best way to trigger exception style error handling within a class and return it ,i am currently storing the error code into a session variable, exiting, and doing a header location to the previous page where i was submitting from and output the error code

Re: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Jason Wong
On Wednesday 26 March 2003 16:40, Steve Jackson wrote: Sorry. What I mean is that we have an externally hosted website. Currently all the forms etc update tables in the web hosted mysql DB. I am in the process of building a small CRM system and want the data to drop into our non public domain

Re: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread skate
as another solution (and not knowing mysql replication myself, so can't comment on this) you could connect remotely to your MySQL database that is on your intranet, and dump the data straight into it. it really depends how open to the world that system is, or can be, and how security concious you

[PHP] mysql_fetch_* and stripslashes

2003-03-26 Thread Aaron Dalton
Why is it that PHP does not automatically unescape data retrieved from a mySQL query? It seems to me that this should be the default behaviour as the bulk of what PHP web scripts do is display said data. I'm just wondering if I'm missing some command or optional argument to make this happen. As

Re: [PHP] mysql_fetch_* and stripslashes

2003-03-26 Thread Tom Rogers
Hi, Wednesday, March 26, 2003, 9:10:26 PM, you wrote: AD Why is it that PHP does not automatically unescape data retrieved from a AD mySQL query? It seems to me that this should be the default behaviour as AD the bulk of what PHP web scripts do is display said data. I'm just AD wondering if I'm

Re: [PHP] mysql_fetch_* and stripslashes

2003-03-26 Thread Aaron Dalton
*blushes deeply* It turns out my old php3.ini was still being loaded which had magic_quotes turned ON! Turning magic_quotes off of course fixed the problem. My thanks for your patience. Cheers! On Wed, 26 Mar 2003, Tom Rogers wrote: Hi, Wednesday, March 26, 2003, 9:10:26 PM, you wrote:

Re: [PHP] help with preg_replace please

2003-03-26 Thread CPT John W. Holmes
I get the following error: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in /usr/local/apache/htdocs/lib/lib_string.inc on line 218 Using this code: $str = preg_replace(!([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/=])!ei, a href=\{$1}://{$2}{$3}\{$2}{$3}/a, $str); Since

[PHP] Freetds + php 4.3.1

2003-03-26 Thread Damien Croarken
Can someone please give me an idea as to why php returns dates in m-d-y format when using freetds under 4.3.1, when tsql (freetds client) returns them in unix datestamp format? Damien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP grep

2003-03-26 Thread Chris Blake
Ok...I checked php.ini and I`m not running safe mode.. I`ll take your advice and use fopen Thanks for the help. On Wed, 2003-03-26 at 14:31, David T-G wrote: Chris -- Don't reply just to me; you're much more likely to get useful answers, or even answers at all, if you keep it

[PHP] Re: Installation

2003-03-26 Thread Joel Colombo
Here is the whole setup simple step-by-step even for PERL if you want ! http://www.ricocheting.com/server/apache.html Joel Daniel Perry [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear Sir I require a complete installation package if possible. I am operating XP Pro, but

[PHP] Checkbox

2003-03-26 Thread shaun
Hi, is it possible to have a checkbox that if it is specified to be checked when the page is being formulated then it cannot be unchecked? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zip Way of life.

2003-03-26 Thread Marek Kilimajer
So use PclZip class, it is pure php without the need to have nay special extension installed Vincent M. wrote: Daevid Vincent wrote: You could use the exec() or shell_exec() and just do it via command line method... Yes but gunzip does not work when there are more than one file in the zip

Re: [PHP] substr() on part an ereg() capture

2003-03-26 Thread Marek Kilimajer
Forgot to mention this is to be run after eregi_replace(([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/=]), a href=\\\1://\\2\\3\ {$t}\\\1://\\2\\3/a, $str); as it only replaces long strings within a tags Marek Kilimajer wrote: $str = preg_replace('|(a[^]*[^]{55})[^]+(/a)|','$1...$2', $str);

php-general Digest 26 Mar 2003 17:27:57 -0000 Issue 1961

2003-03-26 Thread php-general-digest-help
php-general Digest 26 Mar 2003 17:27:57 - Issue 1961 Topics (messages 141052 through 141084): imap_open Error 141052 by: Brian Mitchell Re: NewB Q on Arrays. 141053 by: chris 141057 by: Frappy John Re: session id 141054 by: Uttam Re: ho to remove an empty

[PHP] Selecting date range from database

2003-03-26 Thread Jeff Lewis
I am trying to select a date range in this format from a database 1-Mar-03 to 26-Mar-03. The date is stored in a mySQL database in that format and when doing a normal select it just selects the dates as if they are numbers. How can I make this select work the way I want it to work? I am using the

[PHP] Web server request redirection

2003-03-26 Thread Jan Walter
Hi, I have written a small webservice in M$ VS.NET (for some political reasons), which needs IIS to run. I would like not to open M$ IIS server for outer requests, but enable access just through linux/apache(/php) webserver instead. Is there any simple way, how to resend (at least POST/GET)

RE: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Steve Jackson
Manually? What I meant was that it's pretty easy to send an email to a server and have a script process the email. Thus the script will parse the contents of the mail and update the db accordingly. Search the archives for process mail, I have some old posts which outline how this can

[PHP] Getting Results for a month from a date field

2003-03-26 Thread Hunter, Jess
I have a field named hiredate and it is in the typical MySQL format (-MM-DD) what I am trying to do it be able to create a query that when I put in a particular month it will give me the results regardless of the year the person was hired. This is so I can generate a anniversary report to

[PHP] MySQL's connection information.

2003-03-26 Thread Edmond Baroud
Hi all, I've been using php in a local Unix environement where I never had to worry about read permissions of users/groups on my db connection's config file which contains the user and password. I'm trying to think of a possible solution for my connection properties in a shared/hosting

Re: [PHP] Default setting garbage

2003-03-26 Thread Liam Gibbs
I'll guess that you're trying to access $frequency outside of the function, after you've called it, right? If so, read up on variable scope in the manual. No, I'm trying to access it inside the function. This is what I have (or an example, since I don't have it right in front of me right now):

[PHP] php.ini question

2003-03-26 Thread Joe Kupiszewski
I didn't do the installation, but the phpinfo() shows the following: version - 4.2.3 ./configure' '--with-apxs=/usr/local/sbin/apxs' '--with-config-file-path=/usr/local/etc' '--enable-versioning' '--with-regex=system' '--without-gd' '--without-mysql' '--with-zlib' '--with-mysql=/usr/local'

[PHP] getimagesize

2003-03-26 Thread Diana Castillo
anyway to not get an error when doing getimagesize if you get this response? HTTP request failed! HTTP/1.1 404 Not Found -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: Mac IE File download problem - any solutions?

2003-03-26 Thread Philip Hallstrom
You might try... header(Content-Disposition: attachment; filename=$filename); maybe? On Tue, 25 Mar 2003, Daniel Leighton wrote: Actually, I think you may have misunderstood. On Mozilla (Mac), Netscape (Mac) and Safari the script works exactly as I have intended: sending the Content-Type:

[PHP] sybase error

2003-03-26 Thread bob pilly
Hi all I have installed php 4.3.2 RC1 with the --with-sybase=/pathtomysysbase dir configure switch. I have had no installation problems but now when i go to load a page with the sybase_connect() function call in it i get the following error: Fatal error: Call to undefined function:

[PHP] Re: Checkbox

2003-03-26 Thread Towel Boy
Try the readonly flag input type=checkbox name=checkboxes1 value=choice1 checked readonly Haven't tried it, no guarantees... Shaun [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, is it possible to have a checkbox that if it is specified to be checked when the page is being

RE: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Ray Hunter
your best bet might be to use xml (soap) or to do mysql replication. http://www.mysql.com/doc/en/Replication_HOWTO.html Now if you have a web db saying that the db is used for web access only and then you have an internal (intranet) db, i am supposing that it is behind some firewall. If not

Re: [PHP] Installation Problem

2003-03-26 Thread Ray Hunter
Maybe have this: LoadModule php4_module modules/libphp4.so AddType application/x-httpd-php .php I would load the module first and then add the type...might not make a bit of difference. -- Ray On Wed, 2003-03-26 at 03:24, bob pilly wrote: Hi Im trying to install php-4.3.1 as a dynamic

Re: [PHP] php.ini question

2003-03-26 Thread Philip Olson
Regarding the location of php.ini, read this: http://www.php.net/faq.installation.php#faq.installation.findphpini Next, learn about using external variables in PHP: http://www.php.net/variables.external Now, regarding your example of: file.php?action=3 You'll notice that you can use

Re: [PHP] Getting Results for a month from a date field

2003-03-26 Thread Marek Kilimajer
|MONTH(date)| Returns the month for |date|, in the range |1| to |12|: SELECT * FROM employees WHERE MONTH(hiredate)='$month' Hunter, Jess wrote: I have a field named hiredate and it is in the typical MySQL format (-MM-DD) what I am trying to do it be able to create a query that when I

[PHP] Starting/Reviving a Workshop

2003-03-26 Thread David Duong
Hello, I'm thinking about reviving a 'workshop' I had a while back because of a recent post I found at a forum. The foundation is already set up, and I would like to see how many people are interested. This workshop is for CGI scripts mainly PHP and Perl, but PHP takes precedence over Perl.

[PHP] Re: php.ini question

2003-03-26 Thread Towel Boy
does phpinfo(32) show the $action variable anywhere? If so just use the global array variable it shows up under. Personally I'd just use the $_GET['action'] alias. You can safely turn register_globals on if you're the only guy that runs scripts on that server and your scripts will never have to

Re: [PHP] Installation

2003-03-26 Thread John Nichel
RTFM http://www.php.net/manual/en/install.windows.php Download http://www.php.net/downloads.php For Apache http://httpd.apache.org For MySQL http://www.mysql.com Daniel Perry wrote: Dear Sir I require a complete installation package if possible. I am operating XP Pro, but unfortunately

Re: [PHP] Default setting garbage

2003-03-26 Thread CPT John W. Holmes
I'll guess that you're trying to access $frequency outside of the function, after you've called it, right? If so, read up on variable scope in the manual. No, I'm trying to access it inside the function. This is what I have (or an example, since I don't have it right in front of me right

Re: [PHP] Checkbox

2003-03-26 Thread Reuben D. Budiardja
On Wednesday 26 March 2003 09:16 am, shaun wrote: Hi, is it possible to have a checkbox that if it is specified to be checked when the page is being formulated then it cannot be unchecked? When you write the page, if the checkbox is checked initially, write also a javascript to prevent it

Re: [PHP] Default setting garbage

2003-03-26 Thread Jason Wong
On Thursday 27 March 2003 02:04, Liam Gibbs wrote: I'll guess that you're trying to access $frequency outside of the function, after you've called it, right? If so, read up on variable scope in the manual. No, I'm trying to access it inside the function. This is what I have (or an

Re: [PHP] Selecting date range from database

2003-03-26 Thread CPT John W. Holmes
I am trying to select a date range in this format from a database 1-Mar-03 to 26-Mar-03. The date is stored in a mySQL database in that format and when doing a normal select it just selects the dates as if they are numbers. How can I make this select work the way I want it to work? I am using

Re: [PHP] MySQL's connection information.

2003-03-26 Thread Ray Hunter
Ed A good practice is to have your configuration files out of the webserver document directory. You should set the include_path in the php.ini file to include the directory where your configuration file is located at. You can also change the permission to 600 and change the owner to whatever

Re: [PHP] Checkbox

2003-03-26 Thread CPT John W. Holmes
is it possible to have a checkbox that if it is specified to be checked when the page is being formulated then it cannot be unchecked? No. No... No. If you already know you don't want it to be unchecked, then don't show a checkbox. That's why we have PHP, so you can create your page

Re: [PHP] again: IIS vs Apache

2003-03-26 Thread Daniel Guerrier
The the LAMP platform is supposed to more stable but If it ain't broke why fix it? --- [EMAIL PROTECTED] wrote: Hi, I'm new here. I imagine that this question was made a lot of times in this list, but reading the archive i couldnt find a recently answer to this question: I want to

Re: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Jason Wong
On Wednesday 26 March 2003 22:31, Steve Jackson wrote: After much searching I found this http://marc.theaimsgroup.com/?l=php-generalm=104210703824057w=2 This http://marc.theaimsgroup.com/?l=php-generalm=104219587732145w=2 And others with process in the body and subject line but not any of

Re: [PHP] Checkbox

2003-03-26 Thread Reuben D. Budiardja
On Wednesday 26 March 2003 01:43 pm, CPT John W. Holmes wrote: is it possible to have a checkbox that if it is specified to be checked when the page is being formulated then it cannot be unchecked? No. No... No. If you already know you don't want it to be unchecked, then don't show a

Re: [PHP] Checkbox

2003-03-26 Thread CPT John W. Holmes
On Wednesday 26 March 2003 01:43 pm, CPT John W. Holmes wrote: is it possible to have a checkbox that if it is specified to be checked when the page is being formulated then it cannot be unchecked? No. No... No. If you already know you don't want it to be unchecked, then don't show a

Re: [PHP] Checkbox

2003-03-26 Thread Reuben D. Budiardja
On Wednesday 26 March 2003 02:11 pm, CPT John W. Holmes wrote: On Wednesday 26 March 2003 01:43 pm, CPT John W. Holmes wrote: is it possible to have a checkbox that if it is specified to be checked when the page is being formulated then it cannot be unchecked? No. No... No.

Re: [PHP] Checkbox

2003-03-26 Thread Tim Burden
Just using the readonly flag in the input tag is the easiest method, I think. - Original Message - From: Reuben D. Budiardja [EMAIL PROTECTED] Newsgroups: php.general To: CPT John W. Holmes [EMAIL PROTECTED]; shaun [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, March 26, 2003

[PHP] Re: php.ini question

2003-03-26 Thread Tim Burden
does phpinfo(32) show the $action variable anywhere? If so just use the global array variable it shows up under. Personally I'd just use the $_GET['action'] alias. You can safely turn register_globals on if you're the only guy that runs scripts on that server and your scripts will never have to

Re: [PHP] Default setting garbage

2003-03-26 Thread Tim Burden
Obviously PHP got confused with your data types. I'll bet that $basedate had been set to 5. Try this instead: GetNextDate(4, 2003-03, 5); Now I bet $frequency is 5 and $basedate is - Original Message - From: Liam Gibbs [EMAIL PROTECTED] Newsgroups: php.general To: php list [EMAIL

RE: [PHP] Checkbox

2003-03-26 Thread Sysadmin
I agree...and like John said, as long as you don't accept any changes when you process the form you should be good to go... -Original Message- From: Tim Burden [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 2:25 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Checkbox Just using

Re: [PHP] Checkbox

2003-03-26 Thread CPT John W. Holmes
But isn't it so much easier to type in that one line HTML + javascript than trying to get an image of a checked check box.. unless you have that handy, you'd have to eg. take a snapshot, or draw something, then save the file as an image file...hmm... and as you said, the effect will

RE: [PHP] getimagesize

2003-03-26 Thread Dan Rossi
@getimagesize ? -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 5:04 AM To: [EMAIL PROTECTED] Subject: [PHP] getimagesize anyway to not get an error when doing getimagesize if you get this response? HTTP request failed! HTTP/1.1 404 Not

[PHP] What am I not understanding about $GLOBALS['myvar'] vs global $myvar?

2003-03-26 Thread Daevid Vincent
How come this function works, but the one below does not?? function clearContactVars() { global $contact_id; $contact_id = ; global $contact_timestamp;$contact_timestamp = ; global $contact_incept;

Re: [PHP] openssl php 4.3.1

2003-03-26 Thread Kalin Mintchev
how are we doing on this?!?... this'd be my last try to seek help here... i did on a few other mailing lists and forums but nobody has anything to say... i guess i'd never get ssl connection with php regardless of what it's in the documentation on the php.net site... On Tue, 25 Mar 2003, Kalin

[PHP] ISP Blues

2003-03-26 Thread Anthony Ritter
The following script works fine when I test it at home using localhost on: MS Win 98 Apache Server PHP 4.1.1 php_gd.dll I then publish the script to my web at my ISP's MS IIS server which is the host and get an undefined function call of: ImageCreate() The ISP has said that they have installed

Re: [PHP] What am I not understanding about $GLOBALS['myvar'] vsglobal $myvar?

2003-03-26 Thread Marek Kilimajer
Daevid Vincent wrote: This one does NOT work the way I would expect it to? function clearContactVars() { foreach ($GLOBALS as $key = $value) { if ( substr($key,0,8) == contact_ ) { //echo GLOBALS['$key'] =

Re: [PHP] ISP Blues

2003-03-26 Thread Marek Kilimajer
Try executing dl('php_gd.dll'); first (before calling any gd functions), also check the output of phpinfo() if they have gd enabled Anthony Ritter wrote: The following script works fine when I test it at home using localhost on: MS Win 98 Apache Server PHP 4.1.1 php_gd.dll I then publish the

Re: [PHP] ISP Blues

2003-03-26 Thread Anthony Ritter
Marek, For testing purposes, on my home computer with php 4.1.1 and Apache Server, the script works fine. Now, I'd like the script to work on my ISP's server which hosts my site. They use MS IIS. What are the correct steps for them to install the php_gd.dll file on their server since that same

RE: [PHP] What am I not understanding about $GLOBALS['myvar'] vs global $myvar?

2003-03-26 Thread Daevid Vincent
Actually I didn't. ;-) $GLOBALS[$key] is incorrect and depricated AFAIK. $GLOBALS['$key'] (with the single quotes) is the proper way to write these types of associative arrays/hashs. For shits and giggles however I tried your way and it made no difference to the code. Still didn't work right.

RE: [PHP] What am I not understanding about $GLOBALS['myvar'] vs global $myvar?

2003-03-26 Thread Johnson, Kirk
I think you either want to use no quotes or double quotes, but not single quotes. Double quotes will interpolate the variable, single quotes will not, i.e. $key becomes a string literal rather than a variable. No quotes will work, although the docs seem to indicate it is deprecated syntax. Not

RE: [PHP] What am I not understanding about $GLOBALS['myvar'] vs global $myvar?

2003-03-26 Thread Jennifer Goodie
Actually I didn't. ;-) $GLOBALS[$key] is incorrect and depricated AFAIK. $GLOBALS['$key'] (with the single quotes) is the proper way to write these Wouldn't it need to be $GLOBALS[$key] because single quotes tell the parser not to expand variables? I think you are misinterpreting the part of

[PHP] HELP ME NEW FRIENDS....

2003-03-26 Thread Hector Huaranga Segales
HI my English is no too god ...but i need information about forms with PHP, data base query, i need examples plz... thanks in advanced

Re: [PHP] What am I not understanding about $GLOBALS['myvar'] vs global $myvar?

2003-03-26 Thread Leif K-Brooks
No, you misunderstand. The key is simply a string. Just as print foo; is wrong, $array[foo] is wrong (unless foo is a constant, of course). If you do print '$variable';, it will print the literal string $variable. It will not print the value of $variable. You should either use double

[PHP] RE: Mac IE File download problem - any solutions?

2003-03-26 Thread Daniel Leighton
Hi Phillip, If you see the original message it's already in there (it was snipped out in the replies). Here is the code: header('Content-Type: application/octet-stream'); header('Content-Length: '. filesize($file_info['full_file_path'])); header('Content-Disposition:

[PHP] register globals :|

2003-03-26 Thread Sebastian
Is there any work-around to get a scipt that requires globals to be ON work when globals is OFF? Its a small script so it shouldn't be too hard... I just don't know what to look for or what has to be changed so it works again... (since i moved servers...) Thanks for any help. cheers, -

Re: [PHP] register globals :|

2003-03-26 Thread Sebastian
Hmm .. might be easier to use an .htaccess. Is it possible to enable Register Global just for the script and not the site? I heard it's possible to enable it on just one directory (where the script resides). cheers, - Sebastian - Original Message - From: Leif K-Brooks [EMAIL PROTECTED]

Re: [PHP] register globals :|

2003-03-26 Thread Kevin Stone
- Original Message - From: Sebastian [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 3:45 PM Subject: [PHP] register globals :| Is there any work-around to get a scipt that requires globals to be ON work when globals is OFF? Its a small script so it

[PHP] Problem with setcookie function

2003-03-26 Thread Tomás Liendo
Hi people I'm a beginner... I'm trying to pass variables between pages, I need use a variable that I get in the first page, 3 or 4 pages later on. For this I'm using the setcookie function: setcookie(name, Jhon Malbeck); The problem is that I receipt only the value Jhon Why I don't receipt all

Re: [PHP] Web server request redirection

2003-03-26 Thread Jan Walter
Ray Hunter wrote: Are both servers running on the same computer? If so you can send data via the port number they are on. They are two: 1/ php+apache/linux webserver (reachable from outside) 2/ iis/w2k running web service (behind firewall) You can also create scripts that receive post data and

RE: [PHP] Problem with setcookie function

2003-03-26 Thread Jennifer Goodie
TRy URL Encoding the string. -Original Message- From: Tomás Liendo [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 2:46 PM To: [EMAIL PROTECTED] Subject: [PHP] Problem with setcookie function Hi people I'm a beginner... I'm trying to pass variables between pages, I need use a

[PHP] Possible to check quality / compression of a JPEG ?

2003-03-26 Thread Juan Antonio Ruiz Zwollo
Hello: Is it possible with PHP to check at what quality/compression a JPEG file has been saved? I.e. I have dummy.jpg that I got from somewhere else and I want to know with what quality it was saved. The second Note of the User Contributed Notes on the PHP manual regarding the function imagejpeg

Re: [PHP] substr() on part an ereg() capture

2003-03-26 Thread Justin French
A that makes more sense!! Am trying everyone's suggestions now... Justin French on 27/03/03 3:32 AM, Marek Kilimajer ([EMAIL PROTECTED]) wrote: Forgot to mention this is to be run after eregi_replace(([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/=]), a href=\\\1://\\2\\3\

RE: [PHP] Possible to check quality / compression of a JPEG ?

2003-03-26 Thread daniel
would exif work ? or maybe the binary jhead would work, it gets information out fo jpeg files , but they maybe have to be generated only from digital cameras i dont know. = Original Message From Juan Antonio Ruiz Zwollo [EMAIL PROTECTED] = Hello: Is it possible with PHP to check at

[PHP] Using includes with page locations

2003-03-26 Thread Vernon
Please forgive the ignorance of this question but I am trying to use an include for a site navigation menu and am having a hard time figuring out how to point at the route of the site. For instance I may have home set as index.php, but if my users are in messages/index.php that will always bring

[PHP] Uploading Files Via PHP

2003-03-26 Thread Vernon
Is there some thing that needs to be turned on in the php.ini in order to be able to upload photos VIA php? I have the same script on one machine with the right permissions on the upload dirs on one machine and am moving to another machine which is not being uploaded. Funny thing is I'm not

RE: [PHP] Using includes with page locations

2003-03-26 Thread Jennifer Goodie
You could just make all of your links relative to the webroot. /index.php instead of index.php and /messages/index.php and messages/index.php I don't know why you would want to use PHP to do this for you, it is a pretty basic HTML concept. -Original Message- From: Vernon [mailto:[EMAIL

RE: [PHP] Using includes with page locations

2003-03-26 Thread Jennifer Goodie
oops, it should read: /messages/index.php instead of (not and) messages/index.php That make make what I said really confusing -Original Message- From: Jennifer Goodie [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 4:45 PM To: Vernon; [EMAIL PROTECTED] Subject: RE: [PHP] Using

Re: [PHP] register globals :|

2003-03-26 Thread Leif K-Brooks
Only per-directory, by putting a .htaccess file in that directory which turns RG on. Sebastian wrote: Hmm .. might be easier to use an .htaccess. Is it possible to enable Register Global just for the script and not the site? I heard it's possible to enable it on just one directory (where the

[PHP] Re: HELP ME NEW FRIENDS....

2003-03-26 Thread Mike Mannakee
Simple example here. You have a page that submits to your php script. The form on the page is coded like this: form action=script.php method=get input type=text name=variable1 input type=Submit /form This, when used, submits to your script, which will have code something like this: ?

[PHP] auto_prepend_file

2003-03-26 Thread Kevin Heflin
Trying to use php_value auto_prepend_file /path/to/file/checkauth.php in an .htaccess file. I've used this before without problems, however with this instance, I keep getting a message in my browser which says: Redirection limit for this URL exceeded. Unable to load the requested page. my

Re: [PHP] auto_prepend_file

2003-03-26 Thread Kevin Heflin
On Wednesday, March 26, 2003, at 07:15 PM, Kevin Heflin wrote: Trying to use php_value auto_prepend_file /path/to/file/checkauth.php in an .htaccess file. I've used this before without problems, however with this instance, I keep getting a message in my browser which says: Redirection limit for

RE: [PHP] auto_prepend_file

2003-03-26 Thread Jennifer Goodie
You're looping endlessly because SESSION is not getting registered anywhere. -Original Message- From: Kevin Heflin [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 5:16 PM To: php-general Subject: [PHP] auto_prepend_file Trying to use php_value auto_prepend_file

Re: [PHP] Uploading Files Via PHP

2003-03-26 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Are you getting any errors through PHP? Set error reporting to E_ALL then try. ?php error_reporting(E_ALL); ? On Wednesday 26 March 2003 04:41 pm, Vernon wrote: Is there some thing that needs to be turned on in the php.ini in order to be able

RE: [PHP] Uploading Files Via PHP

2003-03-26 Thread Jennifer Goodie
http://www.php.net/manual/en/features.file-upload.php From the page listed above: Related Configurations Note: See also the file_uploads, upload_max_filesize, upload_tmp_dir, and post_max_size directives in php.ini I would read that manual page as it deals with file uploading support.

[PHP] html_quickform - array question

2003-03-26 Thread Charles Kline
hi all, using html_quickform (pear) and it has a date type that passes the date info like this: array(24) { [lr_pub_date]= array(3) { [m]= string(1) 3 [d]= string(2) 12 [Y]= string(4) 2003 } I am used to getting this data like: $form-getSubmitValue(field_name);

RE: [PHP] auto_prepend_file

2003-03-26 Thread John W. Holmes
Trying to use php_value auto_prepend_file /path/to/file/checkauth.php in an .htaccess file. I've used this before without problems, however with this instance, I keep getting a message in my browser which says: Redirection limit for this URL exceeded. Unable to load the requested page.

RE: [PHP] Mail Header - id this PHP

2003-03-26 Thread John W. Holmes
I am trying to format the mail header that will be send by mail(). One thing that I noticed was it only accept for the first no. of lines or charracters (???) See sample 1 2. Is this a php problem (4.2.2) or has something to do the mailer ??? This script is working on (4.2.1) but is in

Re: [PHP] html_quickform - array question

2003-03-26 Thread Leif K-Brooks
Are you trying to print/echo it? That converts it to a string first. Either print_r it, var_dump it, or do something else with it. Charles Kline wrote: hi all, using html_quickform (pear) and it has a date type that passes the date info like this: array(24) { [lr_pub_date]= array(3) {

Re: [PHP] html_quickform - array question

2003-03-26 Thread Charles Kline
Okay. I think I understand. So I do something like this: $thedate = $lr_form-getSubmitValue('lr_pub_date'); echo The month: $thedate['m']; Is that what you meant? - Charles On Wednesday, March 26, 2003, at 09:31 PM, Leif K-Brooks wrote: Are you trying to print/echo it? That converts it to a

Re: [PHP] html_quickform - array question

2003-03-26 Thread Leif K-Brooks
Yes, but you can't put put the single quoted array key directly in the double-quotes string, try: $thedate = $lr_form-getSubmitValue('lr_pub_date'); echo The month: {$thedate['m']}; Charles Kline wrote: Okay. I think I understand. So I do something like this: $thedate =

RE: [PHP] Uploading Files Via PHP

2003-03-26 Thread daniel
possibly a permissions problem , dir needs to be 777 and owned by httpd = Original Message From Jennifer Goodie [EMAIL PROTECTED] = http://www.php.net/manual/en/features.file-upload.php From the page listed above: Related Configurations Note: See also the file_uploads,

Re: [PHP] html_quickform - array question

2003-03-26 Thread Charles Kline
Great. Thanks. - Charles On Wednesday, March 26, 2003, at 09:48 PM, Leif K-Brooks wrote: Yes, but you can't put put the single quoted array key directly in the double-quotes string, try: $thedate = $lr_form-getSubmitValue('lr_pub_date'); echo The month: {$thedate['m']}; Charles Kline wrote:

[PHP] help please was: openssl php 4.3.1

2003-03-26 Thread Kalin Mintchev
here is a real example: $fp = fopen (http://store.el.net/index.html;, r); while (!feof($fp)) { echo fgets ($fp,4096); } this works fine... if you try it with https you'll get an error - file not found from php if you try the same url with https in the any browser you wont have any

RE: [PHP] html_quickform - array question

2003-03-26 Thread John W. Holmes
echo The month: $thedate['m']; echo The month: {$thedate['m']}; or echo The month: $thedate[m]; ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

  1   2   >