[PHP] Image copying

2005-01-05 Thread Liam Gibbs
Hello, I'm having a real frustrating time with my problem here, which is to copy one JPEG to another resource. I'm not even sure where I'm going wrong, or how to find it out, because it seems that I'm getting all my resource IDs fine (when I echo them, I get 'resource ID #x'), and no error mess

[PHP] Weird search and replace

2005-01-05 Thread Liam Gibbs
I'm trying to do a search-and-replace for a certain string (#1) from a bigger string (#2), take that string (#1), do an SQL search, then do a little fiddling to make another string (#3), and put that string (#3) back into the big string (#2) to replace the certain string (#1). Here's what I nee

[PHP] Setting Up PHP

2005-01-05 Thread George McGuey
I am using SAMS Teach Yourself on PHP,MYSQL and Apache. Everything has gone well except for the final step to test the PHP by creating in Apache htdocs file called phpinfo.php. When I do this and then go to the http://localhost/phpinfo.php to view the information page all I get is the origina

[PHP] call a function within the same class

2005-01-05 Thread kalinga
Dear all, I recently started PHP OOP and I'm bit confused about best and the most efficient methods when 'declaring a class' and 'calling function', could somebody explain me with following sample code, it would be great.. thanks.. class classLdap{ $rslt = $_POST['rslt']; functi

[PHP] Re: making FORM dissapear when successful login

2005-01-05 Thread JHollis
nevermind...i figured it out. I will read up on sessions and test some things with what you posted and if i have anymore questions, i will post them. Thanks Jerry. If anyone else has any other suggestions, please feel free to share them with me. JHollis wrote: Where do i need to start my sessi

[PHP] Re: PHP cacher?

2005-01-05 Thread Kimmo Alm
On 6 Jan 2005 03:02:10 -, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: * Kimmo Alm <[EMAIL PROTECTED]>: On 5 Jan 2005 17:28:42 -, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > * Kimmo Alm <[EMAIL PROTECTED]>: > > I've been looking for some PHP cache software for a while no

[PHP] Re: PHP cacher?

2005-01-05 Thread Kimmo Alm
On 6 Jan 2005 03:02:10 -, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: * Kimmo Alm <[EMAIL PROTECTED]>: On 5 Jan 2005 17:28:42 -, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > * Kimmo Alm <[EMAIL PROTECTED]>: > > I've been looking for some PHP cache software for a while no

[PHP] Re: making FORM dissapear when successful login

2005-01-05 Thread JHollis
Where do i need to start my session? Ive copied and pasted exactly what you have typed..and the form doesnt display unless i hard code the variable to "NO". Jerry Kita wrote: I do exactly the same thing on my website. I use PHP's Session handling to determine if a user is actually logged on.

[PHP] Re: PHP cacher?

2005-01-05 Thread Matthew Weier O'Phinney
* Kimmo Alm <[EMAIL PROTECTED]>: > On 5 Jan 2005 17:28:42 -, Matthew Weier O'Phinney <[EMAIL PROTECTED]> > wrote: > > * Kimmo Alm <[EMAIL PROTECTED]>: > > > I've been looking for some PHP cache software for a while now, and > > > I just can't seem to find one suitable for my setup. > > > > >

[PHP] Re: making FORM dissapear when successful login

2005-01-05 Thread Jerry Kita
I do exactly the same thing on my website. I use PHP's Session handling to determine if a user is actually logged on. You can see that I check a variable called $validlogon which I set to either YES or NO at the beginning of the script Salkehatchie Members Login Here:\n"; print "\n"; print "USE

[PHP] endless while loop

2005-01-05 Thread Gunter Sammet
Hi all: I am having some trouble getting the following code to work: if (is_array($bundle_attributes)) { reset($bundle_attributes); while (list($option, $value) = each($bundle_attributes)) { reset($value); while (list($option2, $value2) = each($value)) { $this->contents[$products_id]['attribu

[PHP] Apache won't start after upgrading to 4.3.10

2005-01-05 Thread Matt Blasinski
Hi, I recently upgraded from PHP 4.3.4 to 4.3.10 with Apache 1.3.29 on Solaris. Before the upgrade, everything was working fine. After, Apache won't start up correctly. 'apachectl start' works correctly, but doesn't load any of the SSL components. 'apachectl startssl' does not work. It generates

Re: [PHP] Persistent PHP web application?

2005-01-05 Thread Rasmus Lerdorf
Richard Lynch wrote: Or you could pay a guy who knows C and PHP to do it in, what, a couple hours? Depends on how confusing your arrays are, and how heterogeneous they are, I guess. Once you do that, all your data is in PHP/Apache when it launches, and it's always available to your PHP script all

Re: [PHP] whats happen fsockopen function?

2005-01-05 Thread Richard Lynch
You're STILL seeing the same WARNING message? Or now it's just "not working"? QT wrote: > hi, > > I clean all & signs, but still no result. This code was working perfect > last > two years. I don't know what happen? > > > > > "Richard Lynch" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL

Re: [PHP] Persistent PHP web application?

2005-01-05 Thread Richard Lynch
>> So if what your application mostly does is load in all this data and >> respond to requests, you could write a *SINGLE* PHP application which >> listened on port 12345 (or whatever port you like) and responded with >> the >> data requested. Like writing your own web-server, only it's a >> _

Re: [PHP] Saving Files

2005-01-05 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > 3. Saves/downloads the file to that exact location as pulled from and > replaces the old file Ain't no way you're going to be allowed to decide where to save files on *MY* computer! That would be a MAJOR security hole... Now let's look at ways you *COULD* do this. Fi

Re: [PHP] Re: Persistent PHP web application?

2005-01-05 Thread Rasmus Lerdorf
Richard Lynch wrote: Rasmus Lerdorf wrote: Robert Cummings wrote: FWIW, I can't see how a WYW server is going to make his application run faster. The transfer of the data he wants will still have to be serialized and unserialized (in an optimal WYW server only unserialized) and this is is exactly h

Re: Re[3]: [PHP] How to argue with ASP people...

2005-01-05 Thread Richard Lynch
It should be noted that the MS KnowledgeBase article about trying to do a dynamic include (as of when I last used ASP, years ago) made absolutely NO mention of using:

Re: [PHP] making FORM dissapear when successful login

2005-01-05 Thread Richard Lynch
JHollis wrote: > I had this code working the way i wanted it to (as far as correct > username and password allowing successful login)...but what i want to > happen now is when a user successfully logs it it will make the login > form disappear and just say successfully logged in or welcome user and

Re: [PHP] Re: Persistent PHP web application?

2005-01-05 Thread Richard Lynch
Rasmus Lerdorf wrote: > Robert Cummings wrote: >> FWIW, I can't see how a WYW server is going to make his application run >> faster. The transfer of the data he wants will still have to be >> serialized and unserialized (in an optimal WYW server only unserialized) >> and this is is exactly his bott

[PHP] compilation of 4.3.10 fails at zend_strtod.c

2005-01-05 Thread Nat Irons
I have a production server running Mac OS X Server 10.2.8 and PHP 4.3.9. Building 4.3.10 fails, along the same lines as this report from last week to php-install: http://marc.theaimsgroup.com/?l=php-install&m=110351226709409&w=2 Several closed bugs seem to refer to this problem, for instance:

Re: [PHP] Re: XML Filters for illegal characters

2005-01-05 Thread John Holmes
Jones, Douglas 1 wrote: I think that a function just like htmlentities but one > that just removes characters that are illegal but can not > be fixed would be the ideal solution. How do you define what can and cannot be fixed, though? You'd have to know the "bad" characters and in that case, a si

[PHP] Php 400 error with suexec/cgi

2005-01-05 Thread Aurélien Cabezon
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have set up an Apache 1.3.33 with PHP 4.3.10 patched for suexec. Php run as CGI. Some of my visitors got this [1] error (code 400). When they turn "http/1.1" option ON with IE, the error disapear. Google's crawlers ~ also get the 400 error. What c

Re: [PHP] php ignores php_value from httpd.conf?

2005-01-05 Thread Steve Kieu
--- Sebastian <[EMAIL PROTECTED]> wrote: > hmm i never even knew you can put that in there.. Yes according to php official manual you can When using PHP as an Apache module, you can also change the configuration settings using directives in Apache configuration files (e.g. httpd.conf) and .hta

[PHP] Re: XML Filters for illegal characters

2005-01-05 Thread Jones, Douglas 1
>Perhaps I am misunderstanding your problem, so let me ask it another >way. Is the problem that you are getting characters entered into the >database that are encoded in one way (e.g. UTF-8) when you expected the >characters to be encoded in another way (e.g. ISO-8859-1)? No, the problem invol

[PHP] Re: [PHP-INSTALL] Compile Errors on Solaris 9

2005-01-05 Thread Andrew Kreps
On Wed, 5 Jan 2005 10:17:29 -0800, H. Scott Brown <[EMAIL PROTECTED]> wrote: > Hi, List, > > I need some help with compilation. > > ./configure runs fine, in the following manner (4.3.10): > [snip] > *** Error code 1 > make: Fatal error: Command failed for target `ext/zlib/zlib.lo' > > Any idea

[PHP] Re: PHP cacher?

2005-01-05 Thread Kimmo Alm
On 5 Jan 2005 17:28:42 -, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: * Kimmo Alm <[EMAIL PROTECTED]>: Hello! I've been looking for some PHP cache software for a while now, and I just can't seem to find one suitable for my setup. I run PHP 5.x on FreeBSD 4.x with Apache 2.x. I don'

[PHP] Re: PHP cacher?

2005-01-05 Thread Matthew Weier O'Phinney
* Kimmo Alm <[EMAIL PROTECTED]>: > Hello! > > I've been looking for some PHP cache software for a while now, and I just > can't seem to find one suitable for my setup. > > I run PHP 5.x on FreeBSD 4.x with Apache 2.x. I don't particularly fancy > the Linux compability, but rather would prefer a

Re: [PHP] How to argue with ASP people...

2005-01-05 Thread Chris Shiflett
--- Sagar C Nannapaneni <[EMAIL PROTECTED]> wrote: > I just had an argument with my collegue (who is ASP > programmer). He said that in ASP he can use a global > variable to store the counter and then when the IIS is > shutting down he can grab that event and dump the > counter variable to a text f

Re: [PHP] Re: Regular help

2005-01-05 Thread John Holmes
M. Sokolewicz wrote: > Uroš Gruber wrote: >> I need correct regular expression to get string between " >> >> but if I use 2 pair of " must also work >> >> "this is" "some kind" "of a test" >> >> matches would be >> >> this is >> some kind >> of a test > preg_match_all('/"(.+)"/U', $string, $result)

[PHP] Re: XML Filters for illegal characters

2005-01-05 Thread Jason Barnett
Douglas 1 Jones wrote: Hello, I'm wondering if anyone knows of a filter that can take data to be wrapped in XML tags and filter this data encoding any illegal XML characters or, if they cannot be encoded, remove them. The problem I have is a database that contains text that must be wrapped in X

[PHP] Regular help

2005-01-05 Thread UroÅ Gruber
Hello! I'm pulling my hair so please help. I need correct regular expression to get string between " but if I use 2 pair of " must also work "this is" "some kind" "of a test" matches would be this is some kind of a test I hope somebody have and idea, because I can only get one or everything from f

Re: [PHP] SSL

2005-01-05 Thread Jamie Alessio
> Thinking of going from http to https on the server. > Would there be any differences in my php-code from now? > Switching from http to https shouldn't require any big changes to your PHP code. The PHP code itself doesn't care that it is being accessed via a https url - your webserver takes care

RE: [PHP] XML Filters for illegal characters

2005-01-05 Thread Jones, Douglas 1
Yes, I have tried htmlentities. Unfortunately it doesn't seem to be catching the characters that are plaguing my program. -- Doug Jones Co-Op Web Developer [EMAIL PROTECTED] -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 11:32 AM T

Re: [PHP] Regular help

2005-01-05 Thread John Holmes
Uroš Gruber wrote: I need correct regular expression to get string between " but if I use 2 pair of " must also work "this is" "some kind" "of a test" matches would be this is some kind of a test preg_match_all('/"[^"]*"/',$text,$matches); [^"]* matches anything that is not a double quote -- ---Joh

[PHP] Re: Regular help

2005-01-05 Thread M. Sokolewicz
preg_match_all('/"(.+)"/U', $string, $result); UroÅ Gruber wrote: Hello! I'm pulling my hair so please help. I need correct regular expression to get string between " but if I use 2 pair of " must also work "this is" "some kind" "of a test" matches would be this is some kind of a test I hope somebo

Re: [PHP] XML Filters for illegal characters

2005-01-05 Thread John Holmes
Jones, Douglas 1 wrote: I'm wondering if anyone knows of a filter > that can take data to be wrapped in XML tags > and filter this data encoding any illegal XML characters Have you tried htmlentities()? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: T

[PHP] XML Filters for illegal characters

2005-01-05 Thread Jones, Douglas 1
Hello, I'm wondering if anyone knows of a filter that can take data to be wrapped in XML tags and filter this data encoding any illegal XML characters or, if they cannot be encoded, remove them. The problem I have is a database that contains text that must be wrapped in XML. Some of this text

Re[2]: [PHP] Saving Files

2005-01-05 Thread Richard Davey
Hello Philip (please email the PHP list directly, not me personally), Wednesday, January 5, 2005, 4:01:15 PM, you wrote: PT> Ok, I have another question. Would I be able to execute a batch file PT> (or something) upon the user hitting a button, which would then save PT> the file to the specified

Re[2]: [PHP] Saving Files

2005-01-05 Thread Richard Davey
Hello gustav, Wednesday, January 5, 2005, 8:41:05 AM, you wrote: gvs> It works very well saving an uploaded file to a specific gvs> destination? It's basically what Richard wants to do? The gvs> replacement of the file is automatically done if no options is gvs> specified in some way to not overw

RE: Re[3]: [PHP] How to argue with ASP people...

2005-01-05 Thread Ron Clark
On Wed, 5 Jan 2005, Jay Blanchard wrote: > [snip] > ...stuff... > [/snip] > > I think we can all agree that PHP and ASP can do the same things, so the > one glaring difference is COST. An efficient Apache / PHP server can be > set up for much less than an IIS / ASP server, even if you take the s

RE: Re[3]: [PHP] How to argue with ASP people...

2005-01-05 Thread Jay Blanchard
[snip] ...stuff... [/snip] I think we can all agree that PHP and ASP can do the same things, so the one glaring difference is COST. An efficient Apache / PHP server can be set up for much less than an IIS / ASP server, even if you take the same 'box' to do it with. Given the same 'box' you will fi

Re: [PHP] apache 1 vs 2 w/php

2005-01-05 Thread Josh Whiting
> I am undecided whether to upgrade to apache 2 (currently running 1.3.33) > I've heard some bad stuff (some good maybe) about using apache 2 with php.. > does anyone have an opinions? a somewhat interesting discussion on the subject was recently on slashdot, i suggest reading at least the blog en

[PHP] PHP cacher?

2005-01-05 Thread Kimmo Alm
Hello! I've been looking for some PHP cache software for a while now, and I just can't seem to find one suitable for my setup. I run PHP 5.x on FreeBSD 4.x with Apache 2.x. I don't particularly fancy the Linux compability, but rather would prefer a native solution. It must be free (no charge)

Re[3]: [PHP] How to argue with ASP people...

2005-01-05 Thread Ron Clark
On Tue, 4 Jan 2005, Richard Davey wrote: > Hello Ron, > > Tuesday, January 4, 2005, 5:59:31 PM, you wrote: > > RC> You then do <%=filen%> to go back into ASP to get the value of the > RC> variable into the HTML code that you wrote. ASP is not including the file, > RC> it is only supplying a fi

[PHP] Re: apache 1 vs 2 w/php

2005-01-05 Thread Matthew Weier O'Phinney
* Sebastian <[EMAIL PROTECTED]>: > I am undecided whether to upgrade to apache 2 (currently running 1.3.33) > I've heard some bad stuff (some good maybe) about using apache 2 with php.. > does anyone have an opinions? > > I know everything has cons/pros but i am just looking for advice on whether >

[PHP] Re: multiple deleting and updating raw mysql via php

2005-01-05 Thread Jason Barnett
Please do not spam the list. John sent you to the MySQL list as they are better to handle MySQL query questions. If you have a question about how to execute your specific query then you can refer to the PHP manual: http://php.net/manual/en/function.mysql-query.php -- Teach a person to fish...

Re: [PHP] Re: apache 1 vs 2 w/php

2005-01-05 Thread Rasmus Lerdorf
Lester Caine wrote: Sebastian wrote: I know everything has cons/pros but i am just looking for advice on whether my site will benifit from the upgrade. I'm curious to know if a site that normally sees 300-500 users online would see any improvements. That would be nice information to find out, but

RE: [PHP] multiple deleting and updating raw mysql via php

2005-01-05 Thread Jay Blanchard
[snip] I meet a problem when I want to deleting a multiple row, I have a table that contain columns UserID, name, company name, and bill. UserID is uniq. perhaps, some of UserID, say it five UserID I have to delete, how to delete all raw that contain that UserID ? and if I want to update bill of a

[PHP] Re: Saving Files

2005-01-05 Thread Bogomil Shopov
Hello Yes you can do that. Please follow the steps: header('Content-type: application/pdf'); header('Content-Disposition: attachment; filename="downloaded.pdf"'); readfile('original.pdf'); Bogomil http://purplerain.org [EMAIL PROTECTED] wrote: > Hi all. > > Note, this may be a bit off topic.

Re: [PHP] Re: Persistent PHP web application?

2005-01-05 Thread electroteque
On 05/01/2005, at 2:39 PM, Rasmus Lerdorf wrote: You are correct, serialization tends to be the bottleneck when it comes to restoring large data structs. So you either avoid recreating the data structure and just use the data directly, or use an in-process mechanism like apc_store/apc_fetch wh

Re: [PHP] migrating to PHP 5 + Apache 2 from PHP 4.3.8 + Apache 1.3.33.

2005-01-05 Thread Matthew Weier O'Phinney
* Symbulos Partners <[EMAIL PROTECTED]>: > Richard Lynch wrote: > > If you re-read the previous emails from Rasmus, you will find that these > > questions are already answered within them. > > > > So I'm going to go on at length here telling you (again) what you don't > > want to hear. > > In my o

Re: [PHP] php ignores php_value from httpd.conf?

2005-01-05 Thread Sebastian
hmm i never even knew you can put that in there.. i always used .htaccess or in the php.ini i've never seen anyone do it in the httpd.conf. also you shouldn't quote the value.. you might also need to increase post_max_size - Original Message - From: "Steve Kieu" <[EMAIL PROTECTED]> To:

[PHP] multiple deleting and updating raw mysql via php

2005-01-05 Thread Sejati Opreker
Hi all, I meet a problem when I want to deleting a multiple row, I have a table that contain columns UserID, name, company name, and bill. UserID is uniq. perhaps, some of UserID, say it five UserID I have to delete, how to delete all raw that contain that UserID ? and if I want to update bill of a

Re: [PHP] How to argue with ASP people...

2005-01-05 Thread Sagar C Nannapaneni
Ya.. I just had an argument with my collegue (who is ASP programmer). He said that in ASP he can use a global variable to store the counter and then when the IIS is shutting down he can grab that event and dump the counter variable to a text file. I just betted him that i can also do that with PHP

Re: [PHP] Apache Server with php

2005-01-05 Thread Lester Caine
Lester Caine wrote: It covers Apache2, PHP5 and Windows - just ignore the Firebird bits ;) *PHP4* - I need to update it for PHP5 ;) -- Lester Caine - L.S.Caine Electronic Services -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: apache 1 vs 2 w/php

2005-01-05 Thread Lester Caine
Sebastian wrote: I am undecided whether to upgrade to apache 2 (currently running 1.3.33) I've heard some bad stuff (some good maybe) about using apache 2 with php.. does anyone have an opinions? General opinion is if Apache1 is working stick with it. I'm using Apache2 and never installed Apache1

Re: [PHP] Apache Server with php

2005-01-05 Thread Lester Caine
John Nichel wrote: Bruce Douglas wrote: richard... i'm not sure of the email/list name.. but there is an apache email list.. if you get to the apache.org site.. they could help you.. they're actually pretty good.. sorry i don't have the name right at my fingers right now!! good luck... http://h

Re: [PHP] migrating to PHP 5 + Apache 2 from PHP 4.3.8 + Apache 1.3.33.

2005-01-05 Thread symbulos partners
Richard Lynch wrote: > If you re-read the previous emails from Rasmus, you will find that these > questions are already answered within them. > > So I'm going to go on at length here telling you (again) what you don't > want to hear. In my opinion, the answer "some libraries are thread safe, some

[PHP] SSL

2005-01-05 Thread gustav
Hi there! Thinking of going from http to https on the server. My question is: Would there be any differences in my php-code from now? /G @varupiraten.se -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php ignores php_value from httpd.conf?

2005-01-05 Thread Steve Kieu
Hi, I am trying to debug the problem I have; which is that php seems to ignore all php_value I set in httpd.conf. Example I have: DocumentRoot /var/www/webssl Options Indexes FollowSymLinks MultiViews AllowOverride All php_value upload_max_filesize "20M" Order allow,deny All

[PHP] Please help!

2005-01-05 Thread 琬婷
To whom it may concern, When I worte php for ldap_search(), It always shows the warning message:"Warning: ldap_search(): Search: Operations error "... My server is windows 2003 with AD. I have seen one solution on the network, they said that I should add "ldap_set_option($ds, LDAP_OPT_REFERRALS,

[PHP] Re: making FORM dissapear when successful login

2005-01-05 Thread JHollis
Thank you for your suggestion, but do you care to be more descriptive, maybe some examples would be nice. Can you tell my why the code i have doesnt work? I would love to use sessions, but i was just trying to get an understanding of how the basics work first. Jonathan wrote: I think you shou

[PHP] Re: making FORM dissapear when successful login

2005-01-05 Thread Jonathan
I think you should use session control after checking for login. "JHollis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I had this code working the way i wanted it to (as far as correct > username and password allowing successful login)...but what i want to > happen now is when a