|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 19 Jun 2003 07:51:07 -0000 Issue 2126
php-general-digest-help
lists.php.net
Date: Thu Jun 19 2003 - 02:51:07 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 19 Jun 2003 07:51:07 -0000 Issue 2126
Topics (messages 152053 through 152121):
Re: Agh! Driving me crazy!
152053 by: Michael Sweeney
152054 by: Lars Torben Wilson
152056 by: Mike At Spy
152084 by: Robert Cummings
Re: Difference between $_POST[foo] and $_POST['foo']?
152055 by: chris
152059 by: Lars Torben Wilson
152066 by: Philip Olson
User's Screen Resolution Size
152057 by: Vernon
152067 by: R'twick Niceorgaw
152071 by: Vernon
152073 by: Philip Olson
152074 by: Vernon
152078 by: Leif K-Brooks
152095 by: Justin French
152096 by: Vernon
152099 by: CPT John W. Holmes
152100 by: Justin French
152101 by: John Nichel
152102 by: John Nichel
152103 by: Vernon
152106 by: Leif K-Brooks
152107 by: Lars Torben Wilson
152108 by: Leif K-Brooks
152109 by: Lars Torben Wilson
152110 by: Jason Wong
152113 by: Don Read
Re: Strange roblems with sessions
152058 by: Logan McKinley
152082 by: Jeff Harris
picture help
152060 by: Edward Peloke
152061 by: Boaz Yahav
152068 by: Jason Wong
152069 by: Lars Torben Wilson
152072 by: Edward Peloke
152077 by: Jason Wong
Re: working with forms
152062 by: Boaz Yahav
SNMP v2
152063 by: Russell Handorf
Session Vars
152064 by: Jason Paschal
Re: mySQL: Rows and columns
152065 by: Boaz Yahav
152070 by: Philip Olson
Validating a "money" input
152075 by: Todd Cary
152076 by: CPT John W. Holmes
direct access to file uploads
152079 by: Thomas Bolioli
152080 by: CPT John W. Holmes
one corrupted image and imagecreatefromjpeg
152081 by: Hatem Ben
.htaccess files
152083 by: Steve Marquez
152086 by: Leif K-Brooks
152087 by: Brian V Bonini
152089 by: Mike Morton
152090 by: Lars Torben Wilson
PHP 4.3.3RC1 released.
152085 by: Jani Taskinen
Empty session directory
152088 by: Iván Díaz
Another hosting question....
152091 by: Mike Morton
152092 by: Newton
152093 by: Michael Seely
152111 by: Jason Wong
152114 by: Ben C.
152115 by: Boaz Yahav
Re: My non-windows friends please help
152094 by: Justin French
Re: Zend encoding and security
152097 by: Manuel Lemos
ie issue: when I do a forced redirect with the header() function the location bar does not change
152098 by: Jeff Means
152105 by: Jake Johnson
Re: MySQL Connection
152104 by: moses.johnson.btopenworld.com
Re: Error in php after uprading
152112 by: Javier
forms addslashes ?
152116 by: Mukta Telang
152118 by: Lars Torben Wilson
152119 by: Jason Wong
GD ImageCopyResized || ImageCopyResampled
152117 by: azero
152120 by: Jason Wong
Re: Using DL to add DLL Files
152121 by: Marek Kilimajer
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Also, you might have problems with the array reference $place[1] not
expanding from within the string - you might need to concatenate the
string around it:
...'$cases', '". $place[1] ."', '$iice'...
..michael..
On Wed, 2003-06-18 at 12:05, Jennifer Goodie wrote:
> You are missing the closing ) around the values you are inserting.
>
> > Anyone see anything wrong with this line of code?
> >
> > $fine = mysql_query("INSERT INTO
> > tblPOItems(poID,poItemUPC,poItemNumber,poItemDescription,poItemInn
> > erCasePkg,
> > poInnerQuantity,poItemEstQuantity,poItemCostEach,poItemSuggestedSellPrice)
> > values('$poID', '$place[0]', '$inmb', '$ides', '$iicp', '$cases',
> > '$place[1]', '$iice', '$isgs'");
> >
> > I keep getting:
> >
> > Query failed: You have an error in your SQL syntax near '' at line 1 Query
> > was: 1064 exiting.
> >
--
Michael Sweeney <sweeney
verisity.com>
Verisity Design, Inc
attached mail follows:
On Wed, 2003-06-18 at 12:56, Michael Sweeney wrote:
> Also, you might have problems with the array reference $place[1] not
> expanding from within the string - you might need to concatenate the
> string around it:
>
> ...'$cases', '". $place[1] ."', '$iice'...
>
> ..michael..
No, his syntax with that part is fine. For more information on how
variables work in PHP strings:
http://www.php.net/manual/en/language.types.string.php
--
Torben Wilson <torben
php.net> +1.604.709.0506
http://www.thebuttlesschaps.com http://www.inflatableeye.com
http://www.hybrid17.com http://www.themainonmain.com
-----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----
attached mail follows:
Gah!!!
:)
Thanks!
Thanks to all! :)
-Mike
> -----Original Message-----
> From: Jennifer Goodie [mailto:goodie
apollointeractive.com]
> Sent: Wednesday, June 18, 2003 3:05 PM
> To: Mike At Spy; php-general
lists.php.net
> Subject: RE: [PHP] Agh! Driving me crazy!
>
>
> You are missing the closing ) around the values you are inserting.
>
> > Anyone see anything wrong with this line of code?
> >
> > $fine = mysql_query("INSERT INTO
> > tblPOItems(poID,poItemUPC,poItemNumber,poItemDescription,poItemInn
> > erCasePkg,
> >
> poInnerQuantity,poItemEstQuantity,poItemCostEach,poItemSuggestedSellPrice)
> > values('$poID', '$place[0]', '$inmb', '$ides', '$iicp', '$cases',
> > '$place[1]', '$iice', '$isgs'");
> >
> > I keep getting:
> >
> > Query failed: You have an error in your SQL syntax near '' at
> line 1 Query
> > was: 1064 exiting.
> >
>
>
attached mail follows:
Mike At Spy wrote:
>
> Anyone see anything wrong with this line of code?
>
> $fine = mysql_query("INSERT INTO
> tblPOItems(poID,poItemUPC,poItemNumber,poItemDescription,poItemInnerCasePkg,
> poInnerQuantity,poItemEstQuantity,poItemCostEach,poItemSuggestedSellPrice)
> values('$poID', '$place[0]', '$inmb', '$ides', '$iicp', '$cases',
> '$place[1]', '$iice', '$isgs'");
I realize this problem has already been fixed, but if messy developers took
the time to format their code into something readable (my suggestion below)
then finding such trivial errors would be a walk in the park.
$fine = mysql_query
(
"INSERT INTO tblPOItems "
."( "
." poID, "
." poItemUPC, "
." poItemNumber, "
." poItemDescription, "
." poItemInnerCasePkg, "
." poInnerQuantity, "
." poItemEstQuantity, "
." poItemCostEach, "
." poItemSuggestedSellPrice "
.") "
."values "
."( "
." '$poID', "
." '$place[0]', "
." '$inmb', "
." '$ides', "
." '$iicp', "
." '$cases',
." '$place[1]', "
." '$iice', "
." '$isgs' "
);
Cheers,
Rob.
--
.---------------------------------------------.
| Worlds of Carnage - http://www.wocmud.org |
:---------------------------------------------:
| Come visit a world of myth and legend where |
| fantastical creatures come to life and the |
| stuff of nightmares grasp for your soul. |
`---------------------------------------------'
attached mail follows:
On 17 Jun 2003 09:37:12 -0500, Tom Woody <woody
nfri.com> wrote:
> On Tue, 2003-06-17 at 09:09, nabil wrote:
>> A side question along with this ,,, how can I include $_POST['foo'] in
>> the
>> :
>> $sql ="select * from db where apple = '$_POST['foo']' ";
>>
>> without getting an error ??
>> should I append it as $var= $_POST['foo']; before???
>>
>
> The rule of thumb I follow with these and other Associative Arrays is:
>
> when setting the variable its $_POST['foo']
> when accessing the variable its $_POST[foo]
>
> so it your example it would be:
> $sql = "select * from db where apple = '$_POST[foo]'";
>
print $_POST[foo]; // generates either E_WARNING or E_NOTICE (forget which)
print $_POST['foo']; // does not generate a warning
print "$_POST[foo]"; // does not generate a warning
print "$_POST['foo']"; // generates a warning
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
attached mail follows:
On Tue, 2003-06-17 at 07:47, Chris Hayes wrote:
> At 16:37 17-6-03, you wrote:
> >On Tue, 2003-06-17 at 09:09, nabil wrote:
> > > A side question along with this ,,, how can I include
> > $_POST['foo'] in the
> > > :
> > > $sql ="select * from db where apple = '$_POST['foo']' ";
> > >
> > > without getting an error ??
> > > should I append it as $var= $_POST['foo']; before???
> > >
> >
> >The rule of thumb I follow with these and other Associative Arrays is:
> >
> >when setting the variable its $_POST['foo']
> >when accessing the variable its $_POST[foo]
>
> May i rephrase that to:
>
> "Use quotes whenever possible, with one exception: within double quotes."
>
> Reason: your rule of thumb fails with:
> $val=$_POST['val'];
>
> Plus: when using CONSTANTs as keys, do not try to access them within quoted
> strings.
You've gotten the closest so far. :)
o Use quotes when the key is a string literal, and one of the
following is true: A) the array reference is not inside a string or
heredoc; or B) the array reference _is_ within a string or heredoc,
but is written using complex syntax (see below).
o If the key is an integer, you do not need quotes, but you may use
them if you wish.
o If the key is a constant, do not use quotes.
o If the key is a variable, single-quotes will prevent PHP from
interpreting the variable, and the result will not be what you
want. Use no quotes around variable keys (or double-quotes, but
that's pointless).
o If the key is some other kind of expression (function call, math
operation, etc) do not use quotes.
o Inside a double-quoted string or heredoc, you can opt to leave out
the quotes if you're using a string literal key.
o In general within strings and heredocs, you may want to adopt the
practice of always using the complex syntax to express array
references: $str = "This is a string {$array['user_name']}";
(Complex syntax isn't complex; just wrap the array reference
between a { and a }). Note that in this case, you again need the
quotes. Always using the complex syntax for array (and object)
referencing within strings will help prevent odd errors with the
arrays not being interpreted correctly, and indeed, if you want to
go any further than one level deep into an array or object within a
string, you must use the complex syntax.
I've spent some time this morning cleaning up the Array type page, so
hopefully some of this will be a bit clearer (at least, after the docs
get generated). There is also definitive information on the string
variable interpolation topic here:
http://www.php.net/manual/en/language.types.string.php
Hope this helps,
Torben
--
Torben Wilson <torben
php.net> +1.604.709.0506
http://www.thebuttlesschaps.com http://www.inflatableeye.com
http://www.hybrid17.com http://www.themainonmain.com
-----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----
attached mail follows:
> print "$_POST['foo']"; // generates a warning
The above is only true in PHP 4.3.0-1 as there was a
bug that caused the E_NOTICE there. In all other PHP
versions, the above will cause a parse error.
Regards,
Philip
attached mail follows:
I what to be able to set a variable based on user's screen resolution.
Can anyone tell me who to do that?
Thanks
attached mail follows:
Use javascript to get the screen resolution and pass it back to your php script thru a
hidden form field or some other means.
On 18 Jun 2003 at 16:21, Vernon wrote:
> I what to be able to set a variable based on user's screen resolution.
>
> Can anyone tell me who to do that?
>
> Thanks
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
The point is I don't know how to do that. That's why I was asking. :)
Vern
attached mail follows:
> > I what to be able to set a variable based on user's screen resolution.
> >
> > Can anyone tell me who to do that?
>
> Use javascript to get the screen resolution and pass it back to your php script thru a
> hidden form field or some other means.
And awhile back someone used this as an example for
passing Javascript information into PHP. The example
passes in screen width and height:
http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable
Regards,
Philip
attached mail follows:
Thats' great!
Thanks
attached mail follows:
Vernon wrote:
>The point is I don't know how to do that. That's why I was asking. :)
>
But it's a javascript question, not a PHP question.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
attached mail follows:
on 19/06/03 6:54 AM, Vernon (vernon
comp-wiz.com) wrote:
> The point is I don't know how to do that. That's why I was asking. :)
This is not a JavaScript list -- find out the value in JS (do some googling,
join a JS newsgroup, etc etc), THEN ask us how to work it within your PHP
app.
Justin
attached mail follows:
Not for nothing, but every time I post to this group I get treated poorly.
It has to do with php and I've already gotten an answer from this group, off
the PHP web site no less!
http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable
Doesn't take much to spread a little kindness. If you didn't want to
respond, nothing making you.
attached mail follows:
Vernon wrote:
> Not for nothing, but every time I post to this group I get treated poorly.
> It has to do with php and I've already gotten an answer from this group, off
> the PHP web site no less!
>
> http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable
>
> Doesn't take much to spread a little kindness. If you didn't want to
> respond, nothing making you.
Are you crying? ARE YOU CRYING? There's no crying, there's no crying in
PHP!! Rasmus Lerdorf was my manager, and he called me a talking pile of
pigs***! And that was when my parents drove all the way down from
Michigan to see me code! And did I cry? NO! NO! And do you know why?
Because, there's no crying in PHP!
---John Holmes...
PS: #7 at
http://sportsillustrated.cnn.com/features/2003/movies/news/2003/03/26/sensational_scenes/
:)
attached mail follows:
Vernon,
If you ONLY wanted to know how to deal with JavaScript variables in PHP,
then perhaps you should have limited your question to just that. Your
question asked about screen resolutions, which is totally a discussion based
around JavaScript.
If you wanted to know about JavaScript and PHP, you should have asked:
"I have a JavaScript variable containing my user's screen width -- how to I
use this variable within PHP?"
"I what to be able to set a variable based on user's screen resolution." is
open to interpretation, but MY interpretation was that you wanted PHP to
determine the resolution, which can't be done.
This is not a personal attack on you, but I'm sure if you ask exactly what
you need to know, and do a little research first, you'll get well formed,
non-attacking answers from the group mind :)
Justin
on 19/06/03 11:47 AM, Vernon (vernon
comp-wiz.com) wrote:
> Not for nothing, but every time I post to this group I get treated poorly.
> It has to do with php and I've already gotten an answer from this group, off
> the PHP web site no less!
>
> http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable
>
> Doesn't take much to spread a little kindness. If you didn't want to
> respond, nothing making you.
>
>
attached mail follows:
John W. Holmes wrote:
> Vernon wrote:
>
>> Not for nothing, but every time I post to this group I get treated
>> poorly.
>> It has to do with php and I've already gotten an answer from this
>> group, off
>> the PHP web site no less!
>>
>> http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable
>>
>> Doesn't take much to spread a little kindness. If you didn't want to
>> respond, nothing making you.
>
>
> Are you crying? ARE YOU CRYING? There's no crying, there's no crying in
> PHP!! Rasmus Lerdorf was my manager, and he called me a talking pile of
> pigs***! And that was when my parents drove all the way down from
> Michigan to see me code! And did I cry? NO! NO! And do you know why?
> Because, there's no crying in PHP!
>
> ---John Holmes...
>
> PS: #7 at
> http://sportsillustrated.cnn.com/features/2003/movies/news/2003/03/26/sensational_scenes/
>
>
> :)
Now that's funny.
attached mail follows:
Justin French wrote:
> Vernon,
>
> If you ONLY wanted to know how to deal with JavaScript variables in PHP,
> then perhaps you should have limited your question to just that. Your
> question asked about screen resolutions, which is totally a discussion based
> around JavaScript.
>
> If you wanted to know about JavaScript and PHP, you should have asked:
>
> "I have a JavaScript variable containing my user's screen width -- how to I
> use this variable within PHP?"
>
> "I what to be able to set a variable based on user's screen resolution." is
> open to interpretation, but MY interpretation was that you wanted PHP to
> determine the resolution, which can't be done.
>
>
> This is not a personal attack on you, but I'm sure if you ask exactly what
> you need to know, and do a little research first, you'll get well formed,
> non-attacking answers from the group mind :)
>
>
> Justin
>
>
>
> on 19/06/03 11:47 AM, Vernon (vernon
comp-wiz.com) wrote:
>
>
>>Not for nothing, but every time I post to this group I get treated poorly.
>>It has to do with php and I've already gotten an answer from this group, off
>>the PHP web site no less!
>>
>>http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable
>>
>>Doesn't take much to spread a little kindness. If you didn't want to
>>respond, nothing making you.
>>
>>
But if you really want to see what getting treated poorly is like from a
mailing list, subscribe to the qmail
list.cr.yp.to list for qmail. :)
attached mail follows:
Missing the point all tighter.
The point now is merely that courtesy goes a long way. Why some one needs to
respond in such a fashion is beyond me.
I think it's pretty simple, if I'm posting to a php group, then obviously
I'm using php. Also very simple, yet again, is if you don't want to waste
your time responding then why do you? Some one else answered with a good
response. I do my home work. I Google but don't always know how to phrase
the question in Google, forgive me! But when I ask a human being, more than
likely they know what I'm asking and as in this case I got my answer.
attached mail follows:
Vernon wrote:
>Missing the point all tighter.
>
>The point now is merely that courtesy goes a long way. Why some one needs to
>respond in such a fashion is beyond me.
>
>I think it's pretty simple, if I'm posting to a php group, then obviously
>I'm using php. Also very simple, yet again, is if you don't want to waste
>your time responding then why do you? Some one else answered with a good
>response. I do my home work. I Google but don't always know how to phrase
>the question in Google, forgive me! But when I ask a human being, more than
>likely they know what I'm asking and as in this case I got my answer.
>
>
>
>
>
You're using PHP, but not everything you do has to do with PHP! You may
use PHP, but that doesn't mean you post to the PHP list about home
decorating!
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
attached mail follows:
On Wed, 2003-06-18 at 21:13, Leif K-Brooks wrote:
> You're using PHP, but not everything you do has to do with PHP! You may
> use PHP, but that doesn't mean you post to the PHP list about home
> decorating!
I have no idea where you folks have gotten the idea that asking how to
get Javascript to interact with PHP would be particularly off-topic
here. Were it the vile transgression this thread has made it out to be,
we probably wouldn't have included the answer in the FAQ.
It wouldn't be all that off-topic on a Javascript list either, but
you'd still have a bunch of guys jumping up and yelling 'Ask on a PHP
list, you loser', without actually providing any useful information. At
worst, give a simple link or direction to a more appropriate resource.
Courtesty does go a long way. You can as easily direct a guy to the
appropriate resource without strutting up and down like some
unsolicited mailing list Rent-A-Cop.
This list is about helping people learn to use PHP. Please use it as
such.
--
Torben Wilson <torben
php.net> +1.604.709.0506
http://www.thebuttlesschaps.com http://www.inflatableeye.com
http://www.hybrid17.com http://www.themainonmain.com
-----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----
attached mail follows:
Lars Torben Wilson wrote:
>I have no idea where you folks have gotten the idea that asking how to
>get Javascript to interact with PHP would be particularly off-topic
>here. Were it the vile transgression this thread has made it out to be,
>we probably wouldn't have included the answer in the FAQ.
>
That's not the problem, that is on topic. The problem is asking how to
get the resolution from JS. Find that out first, then ask how to get
that value into PHP here.
>It wouldn't be all that off-topic on a Javascript list either, but
>you'd still have a bunch of guys jumping up and yelling 'Ask on a PHP
>list, you loser', without actually providing any useful information. At
>worst, give a simple link or direction to a more appropriate resource.
>
If you did what I said above, what you posted on either list wouldn't be OT.
>Courtesty does go a long way. You can as easily direct a guy to the
>appropriate resource without strutting up and down like some
>unsolicited mailing list Rent-A-Cop.
>
Then don't act like an unsolicited mailing list OTer.
>This list is about helping people learn to use PHP. Please use it as
>such.
>
That's exactly what I'm asking you to do.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
attached mail follows:
On Wed, 2003-06-18 at 21:42, Leif K-Brooks wrote:
> Lars Torben Wilson wrote:
>
> >I have no idea where you folks have gotten the idea that asking how to
> >get Javascript to interact with PHP would be particularly off-topic
> >here. Were it the vile transgression this thread has made it out to be,
> >we probably wouldn't have included the answer in the FAQ.
> >
> That's not the problem, that is on topic. The problem is asking how to
> get the resolution from JS. Find that out first, then ask how to get
> that value into PHP here.
My reply is off-list.
> >It wouldn't be all that off-topic on a Javascript list either, but
> >you'd still have a bunch of guys jumping up and yelling 'Ask on a PHP
> >list, you loser', without actually providing any useful information. At
> >worst, give a simple link or direction to a more appropriate resource.
> >
> If you did what I said above, what you posted on either list wouldn't be OT.
>
> >Courtesty does go a long way. You can as easily direct a guy to the
> >appropriate resource without strutting up and down like some
> >unsolicited mailing list Rent-A-Cop.
> >
> Then don't act like an unsolicited mailing list OTer.
>
> >This list is about helping people learn to use PHP. Please use it as
> >such.
> >
> That's exactly what I'm asking you to do.
>
> --
> The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
--
Torben Wilson <torben
php.net> +1.604.709.0506
http://www.thebuttlesschaps.com http://www.inflatableeye.com
http://www.hybrid17.com http://www.themainonmain.com
-----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----
attached mail follows:
On Thursday 19 June 2003 09:47, Vernon wrote:
> Not for nothing, but every time I post to this group I get treated poorly.
> It has to do with php and I've already gotten an answer from this group,
> off the PHP web site no less!
>
> http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable
>
> Doesn't take much to spread a little kindness. If you didn't want to
> respond, nothing making you.
As well as being off-topic (the way you phrased your original question), the
answer you seek (both screen resolution AND passing variables between
Javascript and PHP), has been answered umpteen times. A quick search of the
archives would have given you all the answers you needed.
Maybe if you did a little research before asking the list you would have
gotten a better response?
And as you pointed out above, the answer was in the bl**dy FAQ!
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Shah, shah! Ayatollah you so!
*/
attached mail follows:
On 19-Jun-2003 John W. Holmes wrote:
<snip>
> Are you crying? ARE YOU CRYING? There's no crying, there's no crying in
> PHP!! Rasmus Lerdorf was my manager, and he called me a talking pile of
> pigs***!
<snipagain>
> ---John Holmes...
>
> PS: #7 at
> http://sportsillustrated.cnn.com/features/2003/movies/news/2003/03/26/sens
> ational_scenes/
>
>:)
Oh. OK, Good.
Did you and Rasmus do a basketball scene in The Great Santini ?
--
Don Read dread
texas.net
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
attached mail follows:
The problem is happening when the header("Location:
http://localhost/PHP/registration_form.php"); line is executed to redirect
to the registration_form.php page. It occurs before you ever get to the
point where the form would be submitted. Its all in the php code at the
beginning of the page.
"Steve Keller" <skeller
healthtvchannel.org> wrote in message
news:5.1.1.6.0.20030618113147.00b1ddc8
207.159.149.141...
> At 6/18/2003 03:22 PM, Logan McKinley wrote:
>
> > the error checking include file just handles php errors, the javascript
> > handles form validation. I believe the problem i am having is with the
> > session not the error handling, because i removed all validation and it
did
> > the same thing.
>
> Yes, that's what I told you.
>
> The form is submitting to a different page than the two you included as
> your examples. If you're not setting the session until the form validates
> and is submitted, then you must be setting it on the page the form feeds
to.
>
> This line:
>
> <form method="GET" name="form" action="Register.php" onsubmit="return
> validate(this);">
>
> Tells the form to send it's GET data to "Register.php," which is neither
of
> the pages you gave us. The "die("There was an error registering...")" line
> is in "registration_form.php", not "Register.php".
>
> See my point? You're not setting the session in either of the files you
> gave us to debug your problem with your sessions.
>
>
>
>
> --
> S. Keller
> UI Engineer
> The Health TV Channel, Inc.
> (a non - profit organization)
> 3820 Lake Otis Pkwy.
> Anchorage, AK 99508
> 907.770.6200 ext.220
> 907.336.6205 (fax)
> Email: skeller
healthtvchannel.org
> Web: www.healthtvchannel.org
>
attached mail follows:
|----- Original Message -----
|From: "Logan McKinley" <logan
globalweb.net>
|To: <php-general
lists.php.net>; <internals
lists.php.net>
|Sent: Wednesday, June 18, 2003 12:51 PM
|Subject: [PHP] Strange roblems with sessions
|
|
|> what it is meant to do:
|> take a querystring set it to a session variable (outputs error if neither
|> querystring nor sesison exist) then reloads the page (to remove the
|> querystring)
|> what it (appears) to do:
|> it sets the querysting to the session, reloads the page and outputs an
|error
|> saying it doesn't have the session variable
|> if you reload the page with a querystring back in and it works as it is
|> meant to
|> <------ the code in question -------->
|> <?
|> session_start();
|> if(!isset($_SESSION['HID']) && !isset($_SERVER['QUERY_STRING']))
|> die("There was an error registering your product please call techinal
|> support at (111)-111-1111");
|> else if(!isset($_SESSION['HID']) && isset($_SERVER['QUERY_STRING']))
|> {
|> $_SESSION['HID'] = $_SERVER['QUERY_STRING'];
|> header("Location: http://localhost/PHP/registration_form.php");
|> }
|> ?>
|> <--------------------------------->
|> I have attached the actual files if that would be of more help,
|> Thanks in advance for any help,
|> ~Logan
On Jun 18, 2003, "Kevin Stone" claimed that:
|
|
|
|Logan,
|
|When you're activating the script through the browser then
|$_SERVER['QUERY_STRING'] is always set. It is only empty or not empty. You
|should modify your conditional statements to reflect that..
|
|<?
|session_start();
|if(!isset($_SESSION['HID']) && empty($_SERVER['QUERY_STRING']))
|{
| die("There was an error registering your product please call techinal
|support at (111)-111-1111");
|}
|elseif(!isset($_SESSION['HID']) && !empty($_SERVER['QUERY_STRING']))
|{
| $_SESSION['HID'] = $_SERVER['QUERY_STRING'];
| header("Location: http://www.helpelf.com/test2.php");
|}
|?>
|
|This is tested.
|
|HTH,
|Kevin
|
It seems to me, from this thread, and from other recently asked questions,
that people are trying to hide query strings. In this case, unless there
is a reason to do so, change the action to "POST" then you don't have to
worry about any redirecting.
<form method="POST" name="form" action="Register.php" onsubmit="return
validate(this);">
In other cases, where an <a href..> is followed, it can be turned into a
post as well:
<form name="myform" method="POST" action="validate.php">
<input type="hidden" name="secrethash"
value="Secret.HidingFromSourceCode">
<a href="javascript:void(document.myform.submit())">validate me</a></form>
Jeff
--
Registered Linux user #304026.
"lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import"
Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED
Responses to this message should conform to RFC 1855.
attached mail follows:
Hello all, I have this code that takes an image sent from a form and resizes
it for a thumbnail and for display, the problem is the pictures look nice
until this does the resizing, then the quality is horrible...can I fix it?
Thanks,
Eddie
<?
if(!empty($myimage)){
$id=$HTTP_GET_VARS['id'];
$imgname="image_".$id.".jpg";
copy($myimage,$imgname);
unlink($myimage);
function thumbnail($i,$nw,$p,$nn) {
$img=imagecreatefromjpeg("$i");
$ow=imagesx($img);
$oh=imagesy($img);
$scale=$nw/$ow;
$nh=ceil($oh*$scale);
$newimg=imagecreate($nw,$nh);
imagecopyresized($newimg,$img,0,0,0,0,$nw,$nh,$ow,$oh);
imagejpeg($newimg, $nn);
return true;
}
#thumbnail(filetouse,newwidth,newpath,newname);
thumbnail($imgname,100,"/imges/","t_".$imgname);
thumbnail($imgname,250,"/imges/",$imgname);
}
?>
attached mail follows:
This might help :
array img_resize(string 'path to source image', string 'path to
destination image', string mode, int size);
modes:
"h" - Height
"w" - Width
"a" - auto (resizes by the largest dimension)
http://examples.weberdev.com/get_example.php3?count=157
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-----Original Message-----
From: Edward Peloke [mailto:epeloke
echoman.com]
Sent: Wednesday, June 18, 2003 10:39 PM
To: Php-General
Lists. Php. Net
Subject: [PHP] picture help
Hello all, I have this code that takes an image sent from a form and
resizes it for a thumbnail and for display, the problem is the pictures
look nice until this does the resizing, then the quality is
horrible...can I fix it?
Thanks,
Eddie
<?
if(!empty($myimage)){
$id=$HTTP_GET_VARS['id'];
$imgname="image_".$id.".jpg";
copy($myimage,$imgname);
unlink($myimage);
function thumbnail($i,$nw,$p,$nn) {
$img=imagecreatefromjpeg("$i");
$ow=imagesx($img);
$oh=imagesy($img);
$scale=$nw/$ow;
$nh=ceil($oh*$scale);
$newimg=imagecreate($nw,$nh);
imagecopyresized($newimg,$img,0,0,0,0,$nw,$nh,$ow,$oh);
imagejpeg($newimg, $nn);
return true;
}
#thumbnail(filetouse,newwidth,newpath,newname);
thumbnail($imgname,100,"/imges/","t_".$imgname);
thumbnail($imgname,250,"/imges/",$imgname);
}
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
On Thursday 19 June 2003 04:39, Edward Peloke wrote:
> Hello all, I have this code that takes an image sent from a form and
> resizes it for a thumbnail and for display, the problem is the pictures
> look nice until this does the resizing, then the quality is horrible...can
> I fix it?
> imagecopyresized($newimg,$img,0,0,0,0,$nw,$nh,$ow,$oh);
You would get better results using imagecopyresampled().
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
"In the face of entropy and nothingness, you kind of have to pretend it's not
there if you want to keep writing good code." -- Karl Lehenbauer
*/
attached mail follows:
On Wed, 2003-06-18 at 13:39, Edward Peloke wrote:
> Hello all, I have this code that takes an image sent from a form and resizes
> it for a thumbnail and for display, the problem is the pictures look nice
> until this does the resizing, then the quality is horrible...can I fix it?
>
> Thanks,
> Eddie
If you have GD version 2.0.1 or later and PHP 4.0.6 or later, try using
imagecopyresampled() instead of imagecopyresized(). You may get better
results.
Good luck,
Torben
> <?
> if(!empty($myimage)){
> $id=$HTTP_GET_VARS['id'];
> $imgname="image_".$id.".jpg";
> copy($myimage,$imgname);
> unlink($myimage);
> function thumbnail($i,$nw,$p,$nn) {
> $img=imagecreatefromjpeg("$i");
> $ow=imagesx($img);
> $oh=imagesy($img);
> $scale=$nw/$ow;
> $nh=ceil($oh*$scale);
> $newimg=imagecreate($nw,$nh);
> imagecopyresized($newimg,$img,0,0,0,0,$nw,$nh,$ow,$oh);
> imagejpeg($newimg, $nn);
> return true;
> }
>
> #thumbnail(filetouse,newwidth,newpath,newname);
> thumbnail($imgname,100,"/imges/","t_".$imgname);
> thumbnail($imgname,250,"/imges/",$imgname);
>
> }
> ?>
--
Torben Wilson <torben
php.net> +1.604.709.0506
http://www.thebuttlesschaps.com http://www.inflatableeye.com
http://www.hybrid17.com http://www.themainonmain.com
-----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----
attached mail follows:
thanks, I tried and it doesn't help. For some reason some of the pictures I
upload look fine and some look bad no matter if I use imagecopyresampled or
resized
-----Original Message-----
From: Lars Torben Wilson [mailto:torben
php.net]
Sent: Wednesday, June 18, 2003 4:49 PM
To: Edward Peloke
Cc: Php-General
Lists. Php. Net
Subject: Re: [PHP] picture help
On Wed, 2003-06-18 at 13:39, Edward Peloke wrote:
> Hello all, I have this code that takes an image sent from a form and
resizes
> it for a thumbnail and for display, the problem is the pictures look nice
> until this does the resizing, then the quality is horrible...can I fix it?
>
> Thanks,
> Eddie
If you have GD version 2.0.1 or later and PHP 4.0.6 or later, try using
imagecopyresampled() instead of imagecopyresized(). You may get better
results.
Good luck,
Torben
> <?
> if(!empty($myimage)){
> $id=$HTTP_GET_VARS['id'];
> $imgname="image_".$id.".jpg";
> copy($myimage,$imgname);
> unlink($myimage);
> function thumbnail($i,$nw,$p,$nn) {
> $img=imagecreatefromjpeg("$i");
> $ow=imagesx($img);
> $oh=imagesy($img);
> $scale=$nw/$ow;
> $nh=ceil($oh*$scale);
> $newimg=imagecreate($nw,$nh);
> imagecopyresized($newimg,$img,0,0,0,0,$nw,$nh,$ow,$oh);
> imagejpeg($newimg, $nn);
> return true;
> }
>
> #thumbnail(filetouse,newwidth,newpath,newname);
> thumbnail($imgname,100,"/imges/","t_".$imgname);
> thumbnail($imgname,250,"/imges/",$imgname);
>
> }
> ?>
--
Torben Wilson <torben
php.net> +1.604.709.0506
http://www.thebuttlesschaps.com http://www.inflatableeye.com
http://www.hybrid17.com http://www.themainonmain.com
-----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
On Thursday 19 June 2003 05:05, Edward Peloke wrote:
> thanks, I tried and it doesn't help. For some reason some of the pictures
> I upload look fine and some look bad no matter if I use imagecopyresampled
> or resized
> > $newimg=imagecreate($nw,$nh);
Use imagecreatetruecolor() instead.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Kime's Law for the Reward of Meekness:
Turning the other cheek merely ensures two bruised cheeks.
*/
attached mail follows:
You already have the information you need, call the previous page again
with this info + a message about what was wrong.
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-----Original Message-----
From: Matt Palermo [mailto:mpalermo
vt.edu]
Sent: Wednesday, June 18, 2003 7:26 PM
To: php-general
lists.php.net
Subject: [PHP] working with forms
I have a forms page that a user will fill out. When it is submitted, it
checks to see if any of the field entries entries are empty, and if so,
it has a die() statement that has a link (javascript:history.back())
which sends the user back to the form page. However, when they go back
to the form page, all the entries they made are erased and they need to
redo everything. Is there and easy way to have them go back with all
their previously inputted data still filled in? Let me know.
Thanks,
Matt
attached mail follows:
i'm having a heck of a time getting snmpv2 to work with php. does anyone else
have it working yet?
i'm on rh 7.3 with apache v 1.3.23-14 and php v 4.1.2-7.3.6 on a test system
not on the internet.
what i'm trying to accomplish is a mib walk with php on a device that only
supports snmpv2.
here is the code i'm currently using:
<?
$a = snmpwalk("10.10.1.1", "cn", "");
for ($i=0; $i<count($a); $i++) {
echo $a[$i] . "<br>";
}
?>
works great on snmpv1 devices- but snmpv2 returns this:
Warning: snmpwalk() [function.snmpwalk]: No response from 10.10.1.1
in /home/httpd/html/snmp.php on line 2
r
attached mail follows:
setting up some pages to allow users to log in, and store their userID in a
session var.
for development purposes, i've installed AMP on my windows box.
-everything parses fine
-register globals is on.
problem: session vars do not seem to be carrying over pages, even when i set
the session_id to initial value.
i start the session and save the variable:
session_start();
$PHPSESSID=session_id();
$_SESSION['userID'] = $userID; //i've checked and $userID DOES contain a
value: 1
//If i echo $_SESSION['userID']; then it prints 1.
header("Location: nextpage.php?PHPSESSID=$PHPSESSID");
exit;
on nextpage.php:
session_start();
session_id($PHPSESSID);
echo $PHPSESSID; //the session id is printed
echo "<br>";
echo $userID; //nothing is printed
echo $_SESSION['userID']; // nothing is printed
Is it something with the ini file?
Thanks in advance!
Jason P.
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
attached mail follows:
how about :
Start Using MySQL
http://articles.weberdev.com/ViewArticle.php3?ArticleID=247
Beginners guide to PHP/MySQL - Creating a simple guest book
http://articles.weberdev.com/ViewArticle.php3?ArticleID=26
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-----Original Message-----
From: zavaboy [mailto:zavaboy
hotmail.com]
Sent: Wednesday, June 18, 2003 7:03 PM
To: php-general
lists.php.net
Subject: [PHP] mySQL: Rows and columns
I know this is more of a mySQL question but, how do I delete and add
rows and columns?
--
- Zavaboy
zavaboy
hotmail.com
www.zavaboy.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
On Wed, 18 Jun 2003, zavaboy wrote:
> I know this is more of a mySQL question but, how do I delete and add rows
> and columns?
Before you touch MySQL or attempt to access it through
PHP, you really should learn basic SQL:
http://www.sqlcourse.com/
http://www.w3schools.com/sql/
http://linux.oreillynet.com/pub/ct/19
Spend some time learning basic SQL syntax and your life
will drastically improve. Also, perhaps the most popular
tool on this subject is phpmyadmin, it shows the actual
queries as you go which also helps with learning:
http://www.phpmyadmin.net/
Be sure to keep it secure though as it's a powerful tool.
Regards,
Philip
attached mail follows:
What is the best way to validate a "money" input? For example, 3452.67
versus 3452..67.
Todd
--
attached mail follows:
> What is the best way to validate a "money" input? For example, 3452.67
> versus 3452..67.
if($value == (string)round((float)$value,2))
or
if(preg_match('/^[0-9]*\.?[0-9]+$/',$value))
appear to work. :) Assuming your value is a string to start with.
---John Holmes...
attached mail follows:
I am new to PHP and am trying to get access to files that are uploaded.
I have RTFM ;-) and have noticed that PHP writes the file to disk in a
temporary location and provides a method/class with all of the
information needed to access it. I am loading (PDF's) into a binary
field in mySQL and find it rather inefficient to have the file written
to disk, and then have it read off and then written back into the db
which is ultimately written to disk. Is there a way I can get direct
access to the file as it comes in. I noticed a user comment on
predefined vars page mentioned $RAW_POST_DATA (or something like that)
but no info on how to address it. Is that my answer and what do I do
from there? It also seems to be depricated and I do not want to use
something that will disappear soon.
Thanks in advance,
Tom
attached mail follows:
> I am new to PHP and am trying to get access to files that are uploaded.
> I have RTFM ;-) and have noticed that PHP writes the file to disk in a
> temporary location and provides a method/class with all of the
> information needed to access it. I am loading (PDF's) into a binary
> field in mySQL and find it rather inefficient to have the file written
> to disk, and then have it read off and then written back into the db
> which is ultimately written to disk. Is there a way I can get direct
> access to the file as it comes in. I noticed a user comment on
> predefined vars page mentioned $RAW_POST_DATA (or something like that)
> but no info on how to address it. Is that my answer and what do I do
> from there? It also seems to be depricated and I do not want to use
> something that will disappear soon.
You can read it directly from the temp location into MySQL. We could debate
the logic of storing the files in the database to begin with, if you want.
:)
---John Holmes...
attached mail follows:
Hey all,
I have one corrupted image in a list of thoughsand of images, and the program stop with this message
Corrupt JPEG data: bad huffman code
Any idea to ignore this image and continue ? i cannot detect which image is corrupted and imagecreatefromjpeg return true
thank you,
Hatem
attached mail follows:
Hello everyone,
Could someone point me in the direction of some info on .htaccess files?
Could someone send me one, tell me where to put it in my
server? I hope this is not a stupid question. I am running Apache on a Mac
with Jaguar OSX.
Thanks for your help,
-Steve Marquez
smarquez
marquez-design.com
attached mail follows:
Steve Marquez wrote:
>Hello everyone,
>
>Could someone point me in the direction of some info on .htaccess files?
>Could someone send me one, tell me where to put it in my
>server? I hope this is not a stupid question. I am running Apache on a Mac
>with Jaguar OSX.
>
This has nothing to do with PHP.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
attached mail follows:
On Wed, 2003-06-18 at 18:34, Steve Marquez wrote:
> Hello everyone,
>
> Could someone point me in the direction of some info on .htaccess files?
> Could someone send me one, tell me where to put it in my
> server? I hope this is not a stupid question. I am running Apache on a Mac
> with Jaguar OSX.
>
In the directory you want to effect with its directives.
attached mail follows:
Nothing to do with php but:
http://search.apache.org/index.cgi?query=.htaccess&submit=Search%21&metaname
=swishdefault&sort=swishrank&sbm=httpd
On 6/18/03 6:34 PM, "Steve Marquez" <smarquez
marquez-design.com> wrote:
> Hello everyone,
>
> Could someone point me in the direction of some info on .htaccess files?
> Could someone send me one, tell me where to put it in my
> server? I hope this is not a stupid question. I am running Apache on a Mac
> with Jaguar OSX.
>
> Thanks for your help,
>
> -Steve Marquez
> smarquez
marquez-design.com
>
--
Cheers
Mike Morton
****************************************************
*
* Tel: 905-465-1263
* Email: mike
webtraxx.com
*
****************************************************
"Indeed, it would not be an exaggeration to describe the history of the
computer industry for the past decade as a massive effort to keep up with
Apple."
- Byte Magazine
Given infinite time, 100 monkeys could type out the complete works of
Shakespeare. Win 98 source code? Eight monkeys, five minutes.
-- NullGrey
attached mail follows:
On Wed, 2003-06-18 at 15:34, Steve Marquez wrote:
> Hello everyone,
>
> Could someone point me in the direction of some info on .htaccess files?
> Could someone send me one, tell me where to put it in my
> server? I hope this is not a stupid question. I am running Apache on a Mac
> with Jaguar OSX.
>
> Thanks for your help,
>
> -Steve Marquez
smarquez
marquez-design.com
Your Apache manual contains all which you wish to know. If you're not
sure where it got installed, hit http://www.apache.org and check it
out there; the documentation is at:
http://httpd.apache.org/docs-project/
Good luck,
Torben
--
Torben Wilson <torben
php.net> +1.604.709.0506
http://www.thebuttlesschaps.com http://www.inflatableeye.com
http://www.hybrid17.com http://www.themainonmain.com
-----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----
attached mail follows:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This is the first release candidate of the upcoming maintenance
release of PHP 4.3.3.
Please download and test it as much as possible on real-life
applications to uncover any remaining issues.
Sources:
http://downloads.php.net/jani/php-4.3.3RC1.tar.bz2
http://downloads.php.net/jani/php-4.3.3RC1.tar.gz
Windows binaries:
http://downloads.php.net/jani/php-4.3.3RC1-Win32.zip
md5sums:
7ecf4532466f910234b635c7cdc50269 php-4.3.3RC1-Win32.zip
2b3b4866bedd073d505c554c551fef92 php-4.3.3RC1.tar.bz2
c4b3f7363bd4f73dd1193aa3c9c9c2d3 php-4.3.3RC1.tar.gz
List of additions/changes/fixes can be found here:
http://cvs.php.net/diff.php/php4/NEWS?r1=1.1247.2.215.2.1&r2=1.1247.2.261
- --
Did I help you? Wanna report bug but don't want it get bogused? Donate! :)
https://www.paypal.com/xclick/business=sniper
php.net&no_note=1&tax=0¤cy_code=EUR
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE+8PI9/HlsOzK2WlERAooYAJ42HB8ZbbmDoB+tT45TP/cbCsl8xACeJezB
o83ztHPQ0hMR/CT11fJhMD0=
=HDZR
-----END PGP SIGNATURE-----
attached mail follows:
Hi everyone!
I would like to know if I need to empty from time to time the directory
where the session files are stored. I'm running windows nt4.0 and Apache.
Thanks in advance.
attached mail follows:
I know that this subject has been beaten to death, but I going through old
lists, I see a lot of hosting companies for site hosting, but I am
interested specifically in dedicated server hosting.
It is tough to find a hosting facility that is state of the art, with big
pipes and redundancy, but is not a huge corporate company that could not
care less about you....
What I am looking for specifically is a company that someone can recommend
from direct experience, one that is customer friendly, offers dedicated
servers at a REASONABLE price, offers admin support and server support, etc,
etc, etc, and most importantly has expertise in compiling PHP.
If anyone out there know of a company like this and can recommend them - I
would appreciate it :) It will save literally hours and hours of sorting
through the google listings that a php dedicated hosting search brings
back! (2 days of sorting to this point anyhow!)
TIA
--
Cheers
Mike Morton
****************************************************
*
* Tel: 905-465-1263
* Email: mike
webtraxx.com
*
****************************************************
"Indeed, it would not be an exaggeration to describe the history of the
computer industry for the past decade as a massive effort to keep up with
Apple."
- Byte Magazine
Given infinite time, 100 monkeys could type out the complete works of
Shakespeare. Win 98 source code? Eight monkeys, five minutes.
-- NullGrey
attached mail follows:
I only heard good things about rackshack. It should be worth a look,
plus the price are more than decent.
http://www.rackshack.net/english/index.asp
Mike Morton wrote:
>I know that this subject has been beaten to death, but I going through old
>lists, I see a lot of hosting companies for site hosting, but I am
>interested specifically in dedicated server hosting.
>
>It is tough to find a hosting facility that is state of the art, with big
>pipes and redundancy, but is not a huge corporate company that could not
>care less about you....
>
>What I am looking for specifically is a company that someone can recommend
>from direct experience, one that is customer friendly, offers dedicated
>servers at a REASONABLE price, offers admin support and server support, etc,
>etc, etc, and most importantly has expertise in compiling PHP.
>
>If anyone out there know of a company like this and can recommend them - I
>would appreciate it :) It will save literally hours and hours of sorting
>through the google listings that a php dedicated hosting search brings
>back! (2 days of sorting to this point anyhow!)
>
>TIA
>
>--
>Cheers
>
>Mike Morton
>
>****************************************************
>*
>* Tel: 905-465-1263
>* Email: mike
webtraxx.com
>*
>****************************************************
>
>"Indeed, it would not be an exaggeration to describe the history of the
>computer industry for the past decade as a massive effort to keep up with
>Apple."
>- Byte Magazine
>
>Given infinite time, 100 monkeys could type out the complete works of
>Shakespeare. Win 98 source code? Eight monkeys, five minutes.
>-- NullGrey
>
>
>
>
attached mail follows:
I highly recommend http://www.tierranet.com They can deliver what
you need. I've used them for several years and have found their
response and service quality to be excellent. They have custom
configured dedicated hosting.
Mike
At 7:52 PM -0400 6/18/03, Mike Morton wrote:
>I know that this subject has been beaten to death, but I going through old
>lists, I see a lot of hosting companies for site hosting, but I am
>interested specifically in dedicated server hosting.
>
>It is tough to find a hosting facility that is state of the art, with big
>pipes and redundancy, but is not a huge corporate company that could not
>care less about you....
>
>What I am looking for specifically is a company that someone can recommend
>from direct experience, one that is customer friendly, offers dedicated
>servers at a REASONABLE price, offers admin support and server support, etc,
>etc, etc, and most importantly has expertise in compiling PHP.
>
>If anyone out there know of a company like this and can recommend them - I
>would appreciate it :) It will save literally hours and hours of sorting
>through the google listings that a php dedicated hosting search brings
>back! (2 days of sorting to this point anyhow!)
>
>TIA
>
>--
>Cheers
>
>Mike Morton
>
>****************************************************
>*
>* Tel: 905-465-1263
>* Email: mike
webtraxx.com
>*
>****************************************************
>
>"Indeed, it would not be an exaggeration to describe the history of the
>computer industry for the past decade as a massive effort to keep up with
>Apple."
>- Byte Magazine
>
>Given infinite time, 100 monkeys could type out the complete works of
>Shakespeare. Win 98 source code? Eight monkeys, five minutes.
>-- NullGrey
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Michael Seely 408-777-9949
attached mail follows:
On Thursday 19 June 2003 07:52, Mike Morton wrote:
> I know that this subject has been beaten to death, but I going through old
> lists, I see a lot of hosting companies for site hosting, but I am
> interested specifically in dedicated server hosting.
>
> It is tough to find a hosting facility that is state of the art, with big
> pipes and redundancy, but is not a huge corporate company that could not
> care less about you....
>
> What I am looking for specifically is a company that someone can recommend
> from direct experience, one that is customer friendly, offers dedicated
> servers at a REASONABLE price, offers admin support and server support,
> etc, etc, etc, and most importantly has expertise in compiling PHP.
>
> If anyone out there know of a company like this and can recommend them - I
> would appreciate it :) It will save literally hours and hours of sorting
> through the google listings that a php dedicated hosting search brings
> back! (2 days of sorting to this point anyhow!)
Serverbeach have very good deals on self-managed dedicated hosting. Never had
to test their support before so couldn't say how that fares.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Do you know Montana?
*/
attached mail follows:
I have tested a lot of the hosting providers and the best I have found is
Valueweb. Lots of bandwidth (500gb), unlimited domain hosting, and managed
ensim control panel. I have been with them a couple months and everything
seems good.
-----Original Message-----
From: Mike Morton [mailto:mike
webtraxx.com]
Sent: Wednesday, June 18, 2003 4:52 PM
To: PHP eMail List
Subject: [PHP] Another hosting question....
I know that this subject has been beaten to death, but I going through old
lists, I see a lot of hosting companies for site hosting, but I am
interested specifically in dedicated server hosting.
It is tough to find a hosting facility that is state of the art, with big
pipes and redundancy, but is not a huge corporate company that could not
care less about you....
What I am looking for specifically is a company that someone can recommend
from direct experience, one that is customer friendly, offers dedicated
servers at a REASONABLE price, offers admin support and server support, etc,
etc, etc, and most importantly has expertise in compiling PHP.
If anyone out there know of a company like this and can recommend them - I
would appreciate it :) It will save literally hours and hours of sorting
through the google listings that a php dedicated hosting search brings
back! (2 days of sorting to this point anyhow!)
TIA
--
Cheers
Mike Morton
****************************************************
*
* Tel: 905-465-1263
* Email: mike
webtraxx.com
*
****************************************************
"Indeed, it would not be an exaggeration to describe the history of the
computer industry for the past decade as a massive effort to keep up with
Apple."
- Byte Magazine
Given infinite time, 100 monkeys could type out the complete works of
Shakespeare. Win 98 source code? Eight monkeys, five minutes.
-- NullGrey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Check out : http://weberdev.ref.phenominet.com
This is your one stop shop for hosting. WeberDev.com is hosted there
and I can tell you that their service is amazing. They are fast,
reliable
and more than anything, very professional (specially in PHP / MySQL).
I have a dedicated server there for years.
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
-----Original Message-----
From: Mike Morton [mailto:mike
webtraxx.com]
Sent: Thursday, June 19, 2003 1:52 AM
To: PHP eMail List
Subject: [PHP] Another hosting question....
I know that this subject has been beaten to death, but I going through
old lists, I see a lot of hosting companies for site hosting, but I am
interested specifically in dedicated server hosting.
It is tough to find a hosting facility that is state of the art, with
big pipes and redundancy, but is not a huge corporate company that could
not care less about you....
What I am looking for specifically is a company that someone can
recommend from direct experience, one that is customer friendly, offers
dedicated servers at a REASONABLE price, offers admin support and server
support, etc, etc, etc, and most importantly has expertise in compiling
PHP.
If anyone out there know of a company like this and can recommend them -
I would appreciate it :) It will save literally hours and hours of
sorting through the google listings that a php dedicated hosting search
brings back! (2 days of sorting to this point anyhow!)
TIA
--
Cheers
Mike Morton
****************************************************
*
* Tel: 905-465-1263
* Email: mike
webtraxx.com
*
****************************************************
"Indeed, it would not be an exaggeration to describe the history of the
computer industry for the past decade as a massive effort to keep up
with Apple."
- Byte Magazine
Given infinite time, 100 monkeys could type out the complete works of
Shakespeare. Win 98 source code? Eight monkeys, five minutes.
-- NullGrey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
This is soooooo OT, but you've got a JS error under IE5.1 Mac OS 8.6:
Line 384
Char 2
'undefined' is undefined
Now, what exactly are we supposed to be testing??? Shouldn't your
browser/platform detection be echoing something to the screen, so we can
tell you if it worked/was acurate or not?
Justin
on 19/06/03 3:56 AM, Mike Mannakee (mike
basementideas.com) wrote:
> www.basementideas.com/index.php
attached mail follows:
Hello,
On 06/16/2003 07:20 AM, Zeev Suraski wrote:
>>>> I guess they can't compare with what they can't afford to buy.
>>>
>>>
>>> It's therefore nice that it's available for free 21-day evaluation on
>>> zend.com, isn't it? :)
>>
>>
>> I suppose that was not available when they started making those
>> benchmarks.
>
>
> It was, like all Zend products, since the very day they became available
> (January 23rd, 2001).
I meant the features that you want to be included in the tests.
Anyway, you are complaining with the wrong person. I am not responsible
for the Turck software nor the benchmarks they publish.
If you feel that do not make your products show the performance of
features that were not eveluated, you should complaine to Turck people.
No, wait, better, make your own benchmark comparisions and post them in
your site. At least you will be able to do your marketing without
bothering everybody that does not favour your products.
>> It makes sense comparing the performance the same features. They
>> compare code caching + optimizing. Turck also does content caching. It
>> is just not reflected in those charts because it is a recent feature.
>
>
> It's a pointless discussion - the ZPS is a new name, and under this
> name, it always included content caching and compression features. By
> using this name (as opposed to explicitly specifying ZPS Accelerator
> Edition, or Zend Accelerator), the comparison was wrong. No biggy, but
> somewhat misleading.
Have you complained to Turcksoft people?
Personally I would find it more misleading if the benchmarks mixed the
performance results of products with and without content caching which
is different than code caching. So, the benchmarks presented by Turck
are useful to me the way they are.
>>> If you learned the product, you'd see that it offers many things that
>>> cannot be offered by mod_gzip nor any dynamic content caching class
>>> available in PHP (not to mention it's a heck of a lot easier to use).
>>
>>
>> I would not be that sure.
>
>
> It would be odd if you were sure, considering you haven't learned this
> product...
Neither you seem to have learned about my cache class, which is the
sense that I meant with my statement.
>> Anyway, since I am not interested in paying for ZPS I have not
>> studied your products in depth to comment.
>
>
> It would be nice and of minimal courtesy then, not to make statements
> that imply that you have a clear understanding of what you're talking
> about. It's not your obligation to study the product, obviously, but
> then, don't make comments about it that suggest that you know it.
Likewise. Read below.
>> So, I can't guess what you are implying with those "many things that
>> cannot be offered by mod_gzip nor any dynamic content caching class".
>>
>> Personally I can only comment on the caching class solution that I
>> mentioned because I developed it to offload significantly one very
>> busy site.
>
>
> Of course, I wasn't trying to imply that your caching classes are
> useless, they're just much less powerful than what you can do with ZPS.
> The ZPS has caching facilities and allows complex dependencies that
> simply cannot be implemented in PHP's user space, no matter how bright a
> coder you may be. Most notably, its ability to work with alongside
> applications that make extensive use of sessions. In our experience,
> using caching classes proves to be either impossible or extremely
> difficult to implement in many of the slightly-more-than-trivial web
> sites. This is one of the places where the ZPS kicks in (in addition to
> better maintainability and overall performance). If you're doing well
> with userland caching classes, by all means, use them - it's a free world.
If I got you right, my class can already do what you mean. Sure it still
has to run the script that loads the class and use it, but I can cache
arbitrary data and have different caches for the same pages depending on
information specific to the user session or user profile.
> P.S.: You wouldn't have to go as far as mod_gzip for HTTP compression.
> PHP has built-in support for that, that I added a few version ago. The
Sure, but it would be dumb to serve static pages with PHP scripts just
to serve them compressed when the browser supports them. If the pages
are dynamic it may not make much difference, but why have two solutions
to do the same when one can is more appropriate in certain conditions?
> ZPS, however, has nice integration between the content caching module
> and compression, so you don't have to pay the price tag for compression,
> which is significant CPU overhead.
That can be done easily with my class. Personally I do not like to use
solutions that are not fully aware of the context of my scripts, even
less having to pay good money that you omit in your site, but I can
understand that other people that are really richh would not mind using
an external extension like yours.
--
Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
http://www.phpclasses.org/
attached mail follows:
How do I force IE to update the location bar when I do a forced redirect??
attached mail follows:
Have you tried...
<?php
header("Location: https://www.google.com") ;
?>
Regards,
Jake Johnson
jake
plutoid.com
------------------------------------------------------------------
Plutoid - http://www.plutoid.com
Shop Plutoid for the best prices on Rims and Car Audio Products
On Tue, 17 Jun 2003, Jeff Means wrote:
> How do I force IE to update the location bar when I do a forced redirect??
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
Hello,
Thanks it works now
Regards
Moses
> Hello, This seems not to be working, I am using win2000 and a newbie. please simplify this process.
>
> ERROR 1045: Access denied for user: '
127.0.0.1' (Using password: NO)
> mysql> GRANT ALL PRIVILEGES ON *.* TO moses
localhost
> -> IDENTIFIED BY 'cludiana' WITH GRANT OPTION;
> ERROR 1045: Access denied for user: '
127.0.0.1' (Using password: NO)
> mysql>
>
> Regards
>
> moses
attached mail follows:
holmes072000
charter.net (John W. Holmes) wrote in
news:3EF0A3C5.9020402
charter.net:
>
> Your query failed. Add some error reporting around mssql_query() to
> find out why.
>
Thanks I'll check that.
--
*** s2r - public key: (http://leeloo.mine.nu/s2r-gmx.sig)
attached mail follows:
Hi,
I want to add slashes to a string, if it contains quotation marks and
which is received as input from a form, so that I can enter it to a
database.
What I am doing is as follows:
echo "<input type=\"text\" name=\"title\">;
$title=addslashes($title);
But the string that gets added has a lot of slashes!
How should this be done?
Mukta
attached mail follows:
On Thu, 2003-06-19 at 05:27, Mukta Telang wrote:
> Hi,
> I want to add slashes to a string, if it contains quotation marks and
> which is received as input from a form, so that I can enter it to a
> database.
> What I am doing is as follows:
>
> echo "<input type=\"text\" name=\"title\">;
> $title=addslashes($title);
>
> But the string that gets added has a lot of slashes!
> How should this be done?
> Mukta
Do you mean that there are two slashes everywhere there should be one,
or that they are inserted where you do not expect them?
It's slashes doubling up on you, you may have magic_quotes_gpc enabled
in php.ini. magic_quotes_gpc is explained here:
http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc
You can check whether it's turned on with:
http://www.php.net/get_magic_quotes_gpc
http://www.php.net/get_magic_quotes_runtime
So if that's the case, you could either disable magic_quotes in
php.ini, or else test whether it's turned on and then decide whether to
call addslashes().
Torben
--
Torben Wilson <torben
php.net> +1.604.709.0506
http://www.thebuttlesschaps.com http://www.inflatableeye.com
http://www.hybrid17.com http://www.themainonmain.com
-----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----
attached mail follows:
On Thursday 19 June 2003 20:27, Mukta Telang wrote:
> I want to add slashes to a string, if it contains quotation marks and
> which is received as input from a form, so that I can enter it to a
> database.
> What I am doing is as follows:
>
> echo "<input type=\"text\" name=\"title\">;
> $title=addslashes($title);
>
> But the string that gets added has a lot of slashes!
What exactly do you mean by "a lot of slashes" ?
> How should this be done?
Check in php.ini that:
magic_quotes_gpc = Off
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Death is nature's way of saying `Howdy'.
*/
attached mail follows:
Hi,
I've wrote simple script who makes from image thumbnail
Thereis source:
<?php
Header("Content-type: image/jpeg");
$path = implode($argv," ");
$im_org = imageCreateFromJpeg($path);
$y = ImageSY($im_org);
$x = ImageSX($im_org);
if ( $x >= $y ){
$y = $y * 120 / $x;
$x = 120;
} else {
$x = $x * 120 / $y;
$y = 120;
}
$im_thumb = imagecreate (120, 120);
$thumb_posX = round ((120 - $x)/2, 0);
$thumb_posY = round ((120 - $y)/2, 0);
ImageCopyResized ($im_thumb, $im_org, $thumb_posX, $thumb_posY, 0, 0,
$x, $y, ImageSX($im_org), ImageSY($im_org));
ImageJpeg ($im_thumb);
ImageDestroy ($im_org);
ImageDestroy ($im_thumb);
?>
Probles is that when i use ImageCopyResampled or ...Resized something wrong
with color pallete.
There is sample:
http://gsk.vtu.lt:8080/~azero/img/thumb.php?a001.jpg
Real picture is here:
http://gsk.vtu.lt:8080/~azero/img/a001.jpg
Is it my code problem or it's gd's bug ?
attached mail follows:
On Thursday 19 June 2003 01:53, azero wrote:
> $im_thumb = imagecreate (120, 120);
Use imagecreatetruecolor().
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
We don't really understand it, so we'll give it to the programmers.
*/
attached mail follows:
Download dll that is right for your version of php.
Suhas Pharkute wrote:
> Hello,
>
> I am trying to include a dll module in the file. In php.ini safe_mode is off
>
> I am getting following warning/error
>
>
> Warning: MyMod: Unable to initialize module Module compiled with debug=0, thread-safety=1 module API=20020429 PHP compiled with debug=0, thread-safety=1 module API=20010901 These options need to match in c:\apache\htdocs\dlltest.php on line 2
>
>
> Can any one explain how to solve this?
>
> Thanks
> Suhas
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]