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
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
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
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
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
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
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
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.
* 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.
> > >
> >
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
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
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
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
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
>> 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
>> _
[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
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
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:
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
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
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:
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
-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
--- 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
>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
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
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'
* 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
--- 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
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)
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
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
> 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
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
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
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
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
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
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
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
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
[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
> 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
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)
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
* 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
>
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...
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
[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
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.
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
* 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
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:
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
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
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
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
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
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
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
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
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,
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
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
64 matches
Mail list logo