Re: Need quick got written up yesterday!! OUCH (RESOLVED)
Re: Need quick got written up yesterday!! OUCH (RESOLVED)
am 04.08.2009 16:58:42 von tmiller
---snip----
Was going to say the exact same thing. No one should have to put up with t=
hat crap.
I suggest if this was a normal occurrence, a chat with him would be a start=
.. If you get nowhere with that, a trip to HR would be good.
Shouting at someone is counter-productive, and there more you put up with i=
t, the more your boss will feel empowerment over you,
Regards,
Kevin
Thanks guys!! I actually do have an appt with HR at 2pm today. And his yel=
ling fix didn't fix it at all...now it just displays default "A" listings o=
n all pages which is what he does NOT want....4 minutes until my deadline..=
..guess I won't make this one. Think I will go be a bartender and florist a=
gain..that's how I got thru college..so much less stress....I'm going to st=
art using the pastebin for my code I can't figure out my settings I tell it=
text but it seems to jumble it anyways....
So if anyone wants to have a look here is the link for the script
http://pastebin.ca/1517966
I don't get why the $_SERVER['browse.php'] stopped working....
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Need quick got written up yesterday!! OUCH (RESOLVED)
am 04.08.2009 17:03:18 von Ashley Sheridan
On Tue, 2009-08-04 at 07:58 -0700, Miller, Terion wrote:
>
>
> ---snip----
>
> Was going to say the exact same thing. No one should have to put up with that crap.
>
> I suggest if this was a normal occurrence, a chat with him would be a start. If you get nowhere with that, a trip to HR would be good.
>
> Shouting at someone is counter-productive, and there more you put up with it, the more your boss will feel empowerment over you,
>
> Regards,
> Kevin
>
>
> Thanks guys!! I actually do have an appt with HR at 2pm today. And his yelling fix didn't fix it at all...now it just displays default "A" listings on all pages which is what he does NOT want....4 minutes until my deadline...guess I won't make this one. Think I will go be a bartender and florist again..that's how I got thru college..so much less stress....I'm going to start using the pastebin for my code I can't figure out my settings I tell it text but it seems to jumble it anyways....
> So if anyone wants to have a look here is the link for the script
>
> http://pastebin.ca/1517966
>
> I don't get why the $_SERVER['browse.php'] stopped working....
>
What do you get if you do a print_r($_SERVER); ?
Thanks,
Ash
http://www.ashleysheridan.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Need quick got written up yesterday!! OUCH (RESOLVED)
am 04.08.2009 17:08:34 von tmiller
On 8/4/09 10:03 AM, "Ashley Sheridan" wrote:
print_r($_SERVER);
I get:
Array ( [HTTP_HOST] =3D> getpublished.news-leader.com [HTTP_USER_AGENT] =3D=
> Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.13) Gecko=
/2009073021 Firefox/3.0.13 [HTTP_ACCEPT] =3D> text/html,application/xhtml+x=
ml,application/xml;q=3D0.9,*/*;q=3D0.8 [HTTP_ACCEPT_LANGUAGE] =3D> en-us,en=
;q=3D0.5 [HTTP_ACCEPT_ENCODING] =3D> gzip,deflate [HTTP_ACCEPT_CHARSET] =3D=
> ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7 [HTTP_KEEP_ALIVE] =3D> 300 [HTTP_CONNE=
CTION] =3D> keep-alive [HTTP_REFERER] =3D> http://getpublished.news-leader.=
com/ResturantInspections/restaurants.php?show=3Dall [HTTP_COOKIE] =3D> GCIO=
NID=3DTExITWZPTUtlZElNQUZrdjlWdkZVQkNOQk1CTEZLKzk3RWEzbENYWE 81MD1+MX4yMDA5M=
DgwNH4yfnppcDo2NTgwN3x5b2I6MTk2OHxnZW46MXxjb3U6dXN8c2l0OmdwY XBlcjE3MQ===
; anonId=3D72bd6954-d270-402a-a4d5-10f109166cef; rsi_ct=3D2009_8_4:51; PHPS=
ESSID=3Dak6iv296ca08bj4eilbjjr0vd7; GCIONSN=3DcmVmOjB+bmQxOiU3QiUyMkxldmVsM=
U5vZGUlMjIlM0ElMjIlMjIlMkMlMjJMZXZlbDJOb2RlJTIyJTNBJTIyJTIyJ TJDJTIyTmV3Q2xp=
Y2slMjIlM0FmYWxzZSUyQyUyMlVSTCUyMiUzQSUyMmh0dHAlM0EvL2dldHB1 Ymxpc2hlZC5uZXd=
zLWxlYWRlci5jb20vUmVzdHVyYW50SW5zcGVjdGlvbnMvdmlldy5waHAlM0Z JRCUzRDExMzclMj=
IlN0R+bmQyOm51bGw=3D; s_sq=3D%5B%5BB%5D%5D; s_cc=3Dtrue; REVSCISN=3Dtrue [H=
TTP_CACHE_CONTROL] =3D> max-age=3D0 [PATH] =3D> /sbin:/usr/sbin:/bin:/usr/b=
in:/usr/X11R6/bin [SERVER_SIGNATURE] =3D>
Apache/2.0.52 (Red Hat) Server at getpublished.news-leader.com Port 80
[SERVER_SOFTWARE] =3D> Apache/2.0.52 (Red Hat) [SERVER_NAME] =3D> getpublis=
hed.news-leader.com [SERVER_ADDR] =3D> 64.29.29.40 [SERVER_PORT] =3D> 80 [R=
EMOTE_ADDR] =3D> 64.22.254.4 [DOCUMENT_ROOT] =3D> /var/www/vhosts/getpublis=
hed.news-leader.com/httpdocs [SERVER_ADMIN] =3D> rjasper@springfi.gannett.c=
om [SCRIPT_FILENAME] =3D> /var/www/vhosts/getpublished.news-leader.com/http=
docs/ResturantInspections/view.php [REMOTE_PORT] =3D> 30353 [GATEWAY_INTERF=
ACE] =3D> CGI/1.1 [SERVER_PROTOCOL] =3D> HTTP/1.1 [REQUEST_METHOD] =3D> GET=
[QUERY_STRING] =3D> ID=3D1137 [REQUEST_URI] =3D> /ResturantInspections/vie=
w.php?ID=3D1137 [SCRIPT_NAME] =3D> /ResturantInspections/view.php [PHP_SELF=
] =3D> /ResturantInspections/view.php [REQUEST_TIME] =3D> 1249398440 )
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Need quick got written up yesterday!! OUCH (RESOLVED)
am 04.08.2009 17:11:31 von Ashley Sheridan
On Tue, 2009-08-04 at 08:08 -0700, Miller, Terion wrote:
>=20
>=20
> On 8/4/09 10:03 AM, "Ashley Sheridan" wrote:
>=20
> print_r($_SERVER);
>=20
> I get:
>=20
> Array ( [HTTP_HOST] =3D> getpublished.news-leader.com [HTTP_USER_AGENT] =
=3D> Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.13) Ge=
cko/2009073021 Firefox/3.0.13 [HTTP_ACCEPT] =3D> text/html,application/xhtm=
l+xml,application/xml;q=3D0.9,*/*;q=3D0.8 [HTTP_ACCEPT_LANGUAGE] =3D> en-us=
,en;q=3D0.5 [HTTP_ACCEPT_ENCODING] =3D> gzip,deflate [HTTP_ACCEPT_CHARSET] =
=3D> ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7 [HTTP_KEEP_ALIVE] =3D> 300 [HTTP_CO=
NNECTION] =3D> keep-alive [HTTP_REFERER] =3D> http://getpublished.news-lead=
er.com/ResturantInspections/restaurants.php?show=3Dall [HTTP_COOKIE] =3D> G=
CIONID=3DTExITWZPTUtlZElNQUZrdjlWdkZVQkNOQk1CTEZLKzk3RWEzbEN YWE81MD1+MX4yMD=
A5MDgwNH4yfnppcDo2NTgwN3x5b2I6MTk2OHxnZW46MXxjb3U6dXN8c2l0Om dwYXBlcjE3MQ=3D=
=3D; anonId=3D72bd6954-d270-402a-a4d5-10f109166cef; rsi_ct=3D2009_8_4:51; P=
HPSESSID=3Dak6iv296ca08bj4eilbjjr0vd7; GCIONSN=3DcmVmOjB+bmQxOiU3QiUyMkxldm=
VsMU5vZGUlMjIlM0ElMjIlMjIlMkMlMjJMZXZlbDJOb2RlJTIyJTNBJTIyJT IyJTJDJTIyTmV3Q=
2xpY2slMjIlM0FmYWxzZSUyQyUyMlVSTCUyMiUzQSUyMmh0dHAlM0EvL2dld HB1Ymxpc2hlZC5u=
ZXdzLWxlYWRlci5jb20vUmVzdHVyYW50SW5zcGVjdGlvbnMvdmlldy5waHAl M0ZJRCUzRDExMzc=
lMjIlN0R+bmQyOm51bGw=3D; s_sq=3D%5B%5BB%5D%5D; s_cc=3Dtrue; REVSCISN=3Dtrue=
[HTTP_CACHE_CONTROL] =3D> max-age=3D0 [PATH] =3D> /sbin:/usr/sbin:/bin:/us=
r/bin:/usr/X11R6/bin [SERVER_SIGNATURE] =3D>
> Apache/2.0.52 (Red Hat) Server at getpublished.news-leader.com Port 80
> [SERVER_SOFTWARE] =3D> Apache/2.0.52 (Red Hat) [SERVER_NAME] =3D> getpubl=
ished.news-leader.com [SERVER_ADDR] =3D> 64.29.29.40 [SERVER_PORT] =3D> 80 =
[REMOTE_ADDR] =3D> 64.22.254.4 [DOCUMENT_ROOT] =3D> /var/www/vhosts/getpubl=
ished.news-leader.com/httpdocs [SERVER_ADMIN] =3D> rjasper@springfi.gannett=
..com [SCRIPT_FILENAME] =3D> /var/www/vhosts/getpublished.news-leader.com/ht=
tpdocs/ResturantInspections/view.php [REMOTE_PORT] =3D> 30353 [GATEWAY_INTE=
RFACE] =3D> CGI/1.1 [SERVER_PROTOCOL] =3D> HTTP/1.1 [REQUEST_METHOD] =3D> G=
ET [QUERY_STRING] =3D> ID=3D1137 [REQUEST_URI] =3D> /ResturantInspections/v=
iew.php?ID=3D1137 [SCRIPT_NAME] =3D> /ResturantInspections/view.php [PHP_SE=
LF] =3D> /ResturantInspections/view.php [REQUEST_TIME] =3D> 1249398440 )
>=20
That's your problem then. Your $_SERVER['SCRIPT_FILENAME'] has a full
path in it. I think you maybe meant to use SCRIPT_NAME, which itself
even has the path relative to the document root in it. You could use the
basename() function to just get the filename of the path though.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Need quick got written up yesterday!! OUCH (RESOLVED)
am 04.08.2009 20:14:42 von HallMarc Websites
> -----Original Message-----
> From: Miller, Terion [mailto:tmiller@springfi.gannett.com]
> Sent: Tuesday, August 04, 2009 11:09 AM
> To: ash@ashleysheridan.co.uk; Miller, Terion
> Cc: kevin@netsmith.ltd.uk; PHP-General List
> Subject: Re: [PHP] Need quick got written up yesterday!! OUCH
> (RESOLVED)
>
>
>
>
> On 8/4/09 10:03 AM, "Ashley Sheridan" wrote:
>
> print_r($_SERVER);
>
> I get:
>
> Array ( [HTTP_HOST] => getpublished.news-leader.com [HTTP_USER_AGENT]
> => Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.13)
> Gecko/2009073021 Firefox/3.0.13 [HTTP_ACCEPT] =>
> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q= 0.8
> [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5 [HTTP_ACCEPT_ENCODING] =>
> gzip,deflate [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
> [HTTP_KEEP_ALIVE] => 300 [HTTP_CONNECTION] => keep-alive [HTTP_REFERER]
> => http://getpublished.news-
> leader.com/ResturantInspections/restaurants.php?show=all [HTTP_COOKIE]
> =>
> GCIONID=TExITWZPTUtlZElNQUZrdjlWdkZVQkNOQk1CTEZLKzk3RWEzbENY WE81MD1+MX4
> yMDA5MDgwNH4yfnppcDo2NTgwN3x5b2I6MTk2OHxnZW46MXxjb3U6dXN8c2l 0OmdwYXBlcj
> E3MQ==; anonId=72bd6954-d270-402a-a4d5-10f109166cef;
> rsi_ct=2009_8_4:51; PHPSESSID=ak6iv296ca08bj4eilbjjr0vd7;
> GCIONSN=cmVmOjB+bmQxOiU3QiUyMkxldmVsMU5vZGUlMjIlM0ElMjIlMjIl MkMlMjJMZXZ
> lbDJOb2RlJTIyJTNBJTIyJTIyJTJDJTIyTmV3Q2xpY2slMjIlM0FmYWxzZSU yQyUyMlVSTC
> UyMiUzQSUyMmh0dHAlM0EvL2dldHB1Ymxpc2hlZC5uZXdzLWxlYWRlci5jb2 0vUmVzdHVyY
> W50SW5zcGVjdGlvbnMvdmlldy5waHAlM0ZJRCUzRDExMzclMjIlN0R+bmQyO m51bGw=;
> s_sq=%5B%5BB%5D%5D; s_cc=true; REVSCISN=true [HTTP_CACHE_CONTROL] =>
> max-age=0 [PATH] => /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
> [SERVER_SIGNATURE] =>
> Apache/2.0.52 (Red Hat) Server at getpublished.news-leader.com Port 80
> [SERVER_SOFTWARE] => Apache/2.0.52 (Red Hat) [SERVER_NAME] =>
> getpublished.news-leader.com [SERVER_ADDR] => 64.29.29.40 [SERVER_PORT]
> => 80 [REMOTE_ADDR] => 64.22.254.4 [DOCUMENT_ROOT] =>
> /var/www/vhosts/getpublished.news-leader.com/httpdocs [SERVER_ADMIN] =>
> rjasper@springfi.gannett.com [SCRIPT_FILENAME] =>
> /var/www/vhosts/getpublished.news-
> leader.com/httpdocs/ResturantInspections/view.php [REMOTE_PORT] =>
> 30353 [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/1.1
> [REQUEST_METHOD] => GET [QUERY_STRING] => ID=1137 [REQUEST_URI] =>
> /ResturantInspections/view.php?ID=1137 [SCRIPT_NAME] =>
> /ResturantInspections/view.php [PHP_SELF] =>
> /ResturantInspections/view.php [REQUEST_TIME] => 1249398440 )
>
> --
[HallMarc Websites]
Ugh! Try this from now on
echo "";
print_r($_SERVER);
echo "
";
What gets sent to the window is at least legible by us lower human forms
[HallMarc Websites]
__________ Information from ESET Smart Security, version of virus signature
database 4305 (20090804) __________
The message was checked by ESET Smart Security.
http://www.eset.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php