RE: [PHP] In need of CVS/SVN checkout script for Production servers [solved]

2010-05-12 Thread Daevid Vincent
 

> -Original Message-
> From: tedd [mailto:tedd.sperl...@gmail.com] 
> Sent: Thursday, May 06, 2010 9:06 AM
> To: Daevid Vincent; php-general@lists.php.net
> Subject: RE: [PHP] In need of CVS/SVN checkout script for 
> Production servers [solved]
> 
> At 5:43 PM -0700 5/5/10, Daevid Vincent wrote:
> >  > -Original Message-
> >  > From: tedd [mailto:tedd.sperl...@gmail.com]
> >  > Sent: Wednesday, May 05, 2010 8:19 AM
> >  > To: Daevid Vincent; php-general@lists.php.net
> >  > Subject: RE: [PHP] In need of CVS/SVN checkout script for
> >  >-snip- stuff which fell on deaf ears
> >  >
> >  > tedd
> >
> >*sigh* once again you people focus on something S off 
> topic compared to
> >the meat of the thread -- which is a production repository 
> checkout script.
> 
> Let me get this right -- you created a repository for people to 
> check-out/deposit scripts, but then deny some people access because 
> of their choice of browser? That seems counter productive. Do your 
> scripts only work for certain browsers?

No. I created a little miniscule dumping ground for some useful scripts *I*
use, and if someone else can use them, then feel free. I don't support
them. I don't even pretend to maintain them once posted. They are what they
are.

> ---
> 
> >As for my site.
> >
> >[*] I really don't care about the fringe browsers...
> 
> That obvious. But what happens when your client's do care?

I make 6+ figures and have so for years. I'm not a freelancer. My
experience, networking and resume get me jobs, not my home page. I don't
have "clients".

> ---
> 
> > Give me a break man. I've got more important things to do.
> 
> Let me get this right --  it's more important to do something else 
> than to fix something you did wrong? If you're gong to take the time 
> to do something, then why not do it right? Remember, this is an 
> example of *your* work.

No. Examples of my "work" are what I get PAID for. This is simply a
personal page and a "hobby".

> I spend a lot of my time making my code as good as I can get it, not 
> because of clients, or what others might think, but because of me. 
> It's a personal choice of mine to always learn and improve. If you 
> allow "I've got more important things to do" altitude to excuse bad 
> code, then you are only hurting yourself in the long run. I think you 
> know that.
> 
> ---
> 
> >[*] Honestly, I also dislike Apple. I think it's stupid for 
> them to make a
> >browser. I think they make crappy products.
> 
> LOL!
> 
> So you think that M$ makes better stuff, like IE6? Even Apple's worst 
> browser was better than that!

Yes I do. I won't get into an OS war with you though.

XP is the best OS thus far. Everything in the world supports it. It is
stable and fast. 

As for browser, I use FF for developing (mostly for Firebug) and some
flavor of IE (usually all three to test with) as that is what most people
still use. IE6 is still the standard default browser Panasonic uses (that's
5000 users alone). Many other large enterprise companies also stick with
XP/IE6. Only slowly are they migrating to IE8.

> ---
> 
> >As for CSS, inline styles, separation of logic, and all that 
> other stuff
> >you ASSUME I don't use -- you are very wrong. I just happen 
> to use a lot of
> >PHP to dynamically create various parts.
> 
> I'm not ASSUMING anything -- it's a fact the site you provided 
> doesn't follow said practices.
> 
> Additionally, you seem to be blaming PHP for the bad code but the 
> fact is you're just being lazy. Many of my sites are dynamically 
> created via PHP but still generate good code. One doesn't exclude the 
> other.

Not blaming at all. Just saying that while you see "inline" JS or CSS, it's
actually not as it appears. Some of that is generated in routines or loops.

> The point is that you want us to go to your site to check-out/provide 
> scripts, but the site you provided reeks of bad code. That's a bit 
> like a dinner saying "Don't mind the dirty silverware, just eat the 
> food."

No. I don't "want" you to do anything. I offered up some free code. Take it
or leave it. If you want it, then the least you can do is use the required
browsers (which mostly everyone has already installed) to get to it. In
fact, if you're such a die-hard Safari user, just change your USER_AGENT
string and it will probably work. No sweat off my balls if you don't.

> ---
> 
> >In

RE: [PHP] In need of CVS/SVN checkout script for Production servers [solved]

2010-05-06 Thread tedd

At 5:43 PM -0700 5/5/10, Daevid Vincent wrote:

 > -Original Message-
 > From: tedd [mailto:tedd.sperl...@gmail.com]
 > Sent: Wednesday, May 05, 2010 8:19 AM
 > To: Daevid Vincent; php-general@lists.php.net
 > Subject: RE: [PHP] In need of CVS/SVN checkout script for
 >-snip- stuff which fell on deaf ears
 >
 > tedd

*sigh* once again you people focus on something S off topic compared to
the meat of the thread -- which is a production repository checkout script.


Let me get this right -- you created a repository for people to 
check-out/deposit scripts, but then deny some people access because 
of their choice of browser? That seems counter productive. Do your 
scripts only work for certain browsers?


---


As for my site.

[*] I really don't care about the fringe browsers...


That obvious. But what happens when your client's do care?

---


Give me a break man. I've got more important things to do.


Let me get this right --  it's more important to do something else 
than to fix something you did wrong? If you're gong to take the time 
to do something, then why not do it right? Remember, this is an 
example of *your* work.


I spend a lot of my time making my code as good as I can get it, not 
because of clients, or what others might think, but because of me. 
It's a personal choice of mine to always learn and improve. If you 
allow "I've got more important things to do" altitude to excuse bad 
code, then you are only hurting yourself in the long run. I think you 
know that.


---


[*] Honestly, I also dislike Apple. I think it's stupid for them to make a
browser. I think they make crappy products.


LOL!

So you think that M$ makes better stuff, like IE6? Even Apple's worst 
browser was better than that!


---


As for CSS, inline styles, separation of logic, and all that other stuff
you ASSUME I don't use -- you are very wrong. I just happen to use a lot of
PHP to dynamically create various parts.


I'm not ASSUMING anything -- it's a fact the site you provided 
doesn't follow said practices.


Additionally, you seem to be blaming PHP for the bad code but the 
fact is you're just being lazy. Many of my sites are dynamically 
created via PHP but still generate good code. One doesn't exclude the 
other.


The point is that you want us to go to your site to check-out/provide 
scripts, but the site you provided reeks of bad code. That's a bit 
like a dinner saying "Don't mind the dirty silverware, just eat the 
food."


---

In some cases I inline styles where they are used one time or used 
in a PHP function.


Okay, then why not learn how to do it right? Using a validator can 
help you improve your code. Standards are not just for an elite group 
of people but rather to improve overall coding practices. What's 
wrong with that? Validation is giving you the opportunity to 
critically review your code.


---


If I had to choose between my
daevid.com site and one of the three you (presumably) illustrate as beacons
of "the way to do it" (http://sperling.com  http://ancientstones.com
http://earthstones.com), then I would take my site any day of the week.


Go ahead -- but many people won't -- as shown by your site's NULL 
Google PageRank.


At least my sites have traffic. For example, according to today's 
Google Analyitics report during the last 30 days my sperling.com site 
has received 5970 unique visitors -- I'll take *that* any day of the 
week over shutting people out.


Daevid -- after all is said and done, I know you are better than 
this. I'm not sure why you are arguing the point.


Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] In need of CVS/SVN checkout script for Production servers [solved]

2010-05-06 Thread David Otton
On 6 May 2010 04:14, Adam Richardson  wrote:

> Daevid asked the list for a an app that facilitated SVN/CVS, and when nobody
> provided options, he crafted a solution of his own and then offered it back
> to the list.

Er... I suggested Phing. Phing/Ant/Gradle/Maven/Capistrano... a build
tool is the standard solution here, and there are about a million of
them (http://en.wikipedia.org/wiki/List_of_build_automation_software).
I can't believe people are seriously discussing rolling your own when
all those mature tools are sitting right there.

Did my post not get through or something?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] In need of CVS/SVN checkout script for Production servers [solved]

2010-05-05 Thread Adam Richardson
On Wed, May 5, 2010 at 9:27 PM, Nathan Rixham  wrote:

> Daevid Vincent wrote:
>
>> -Original Message-
>>> From: tedd [mailto:tedd.sperl...@gmail.com] Sent: Wednesday, May 05,
>>> 2010 8:19 AM
>>> To: Daevid Vincent; php-general@lists.php.net
>>> Subject: RE: [PHP] In need of CVS/SVN checkout script for Production
>>> servers [solved]
>>>
>>> At 1:10 PM -0700 5/4/10, Daevid Vincent wrote:
>>>
>>>> Well, here is the one I'm using. I ended up just writing one (again!)
>>>>
>>>> http://www.daevid.com/content/examples/snippets.php :: "Production
>>>> Deployment Script"
>>>>
>>> What?!?
>>>
>>> Advanced features??
>>>
>>> I know you don't mean it, but you certainly know how to piss people off.
>>> You are not going to like what I have to say, but please accept the
>>> following as constructive criticism with no personal intent meant.
>>>
>>> The site fails W3C CSS validation with 96 errors.
>>>
>>> The site fails W3C HTML validation with 92 errors and 9 warnings.
>>>
>>> I have not run into a site like this since before the turn of this
>>> century where we had browser wars. The problem isn't just with my browser,
>>> but many more as you can see here:
>>>
>>> http://www.browsercam.com/public.aspx?proj_id=516739
>>>
>>> The page (not addressing the entire site) is riddled with embedded
>>> javascript and embedded styling both of which are considered bad from.
>>>
>>> I haven't even addressed accessibility, graceful degradation, or
>>> separation of content from presentation from behavior all of which are the
>>> goals of "best practices" sites -- and all of which this site fails
>>> miserably.
>>>
>>> My advice, which I realize that you didn't ask for, is if you want to
>>> provide something of substance, then do so for all and not just the
>>> privileged elite who think they are the leading edge with this type of
>>> "gimmick" nonsense. This site is a step backward into the old browser wars.
>>>
>>> Of course, I could tell you what I really think, but I don't want to be
>>> too abrasive. :-)
>>>
>>> Cheers,
>>>
>>> tedd
>>>
>>
>> *sigh* once again you people focus on something S off topic compared
>> to
>> the meat of the thread -- which is a production repository checkout
>> script.
>>
>> As for my site.
>>
>> [*] I wrote it like 4 years ago or more when there were TWO browsers worth
>> mentioning: IE and FF.
>> [*] I used a 3rd party JS library from www.ceiton.com -- who are pretty
>> much dormant.
>> [*] The cieton code is not only compressed and impossible to debug, but
>> often written in German!
>> [*] I've looked at it a few times over the years to try and remove the
>> limitation, because I also agree that most modern browsers should be
>> able to handle
>> the JS at this point.
>> [*] I really don't care about the fringe browsers of Chrome, Opera,
>> Konquerer, Blackberry, whatever (for my PERSONAL HOME PAGE)
>> [*] http://www.w3schools.com/browsers/browsers_stats.asp
>> [*] http://marketshare.hitslink.com/report.aspx?qprid=0 [*] I'm sorry
>> your using a browser that falls under the top 25%. In fact ALL the
>> browsers besides IE and FF don't even add up to 16% of
>> the ENTIRE market. Give me a break man. I've got more important things
>> to do.
>> [*] If you don't have Firefox, well then let me tell you where to go
>> download it for free: http://www.mozilla.com They make it for all
>> major OS's in case you didn't know.
>> [*] Honestly, I also dislike Apple. I think it's stupid for them to make a
>> browser. I think they make crappy products. I HATE my iPod. I am a Linux
>> guy (or was until I realized my time was too valuable to keep wasting on
>> Linux as a Desktop), and WANTED to LOVE OSX. I sold the damn notebook
>> after
>> a month of owning it. OSX blows. It's too dumbed down IMHO (as is
>> Windows7,
>> but that's another topic). In light of recent events where they fired a
>> guy
>> for showing that even more stupid iPad (great, a big iPhone that can't
>> even
>> call) to Wozniak and then going after Gizmodo, I have even more distain
>> for
>> them. So I really have no care to support them in any way shape or for

Re: [PHP] In need of CVS/SVN checkout script for Production servers [solved]

2010-05-05 Thread Nathan Rixham

Daevid Vincent wrote:

-Original Message-
From: tedd [mailto:tedd.sperl...@gmail.com] 
Sent: Wednesday, May 05, 2010 8:19 AM

To: Daevid Vincent; php-general@lists.php.net
Subject: RE: [PHP] In need of CVS/SVN checkout script for 
Production servers [solved]


At 1:10 PM -0700 5/4/10, Daevid Vincent wrote:

Well, here is the one I'm using. I ended up just writing one (again!)

http://www.daevid.com/content/examples/snippets.php :: "Production
Deployment Script"

What?!?

Advanced features??

I know you don't mean it, but you certainly know how to piss people 
off. You are not going to like what I have to say, but please accept 
the following as constructive criticism with no personal intent meant.


The site fails W3C CSS validation with 96 errors.

The site fails W3C HTML validation with 92 errors and 9 warnings.

I have not run into a site like this since before the turn of this 
century where we had browser wars. The problem isn't just with my 
browser, but many more as you can see here:


http://www.browsercam.com/public.aspx?proj_id=516739

The page (not addressing the entire site) is riddled with embedded 
javascript and embedded styling both of which are considered bad from.


I haven't even addressed accessibility, graceful degradation, or 
separation of content from presentation from behavior all of which 
are the goals of "best practices" sites -- and all of which this site 
fails miserably.


My advice, which I realize that you didn't ask for, is if you want to 
provide something of substance, then do so for all and not just the 
privileged elite who think they are the leading edge with this type 
of "gimmick" nonsense. This site is a step backward into the old 
browser wars.


Of course, I could tell you what I really think, but I don't want to 
be too abrasive. :-)


Cheers,

tedd


*sigh* once again you people focus on something S off topic compared to
the meat of the thread -- which is a production repository checkout script.

As for my site.

[*] I wrote it like 4 years ago or more when there were TWO browsers worth
mentioning: IE and FF.
[*] I used a 3rd party JS library from www.ceiton.com -- who are pretty
much dormant.
[*] The cieton code is not only compressed and impossible to debug, but
often written in German!
[*] I've looked at it a few times over the years to try and remove the
limitation, 
because I also agree that most modern browsers should be able to handle

the JS at this point.
[*] I really don't care about the fringe browsers of Chrome, Opera,
Konquerer, Blackberry, whatever (for my PERSONAL HOME PAGE)
[*] http://www.w3schools.com/browsers/browsers_stats.asp
[*] http://marketshare.hitslink.com/report.aspx?qprid=0 
[*] I'm sorry your using a browser that falls under the top 25%. 
In fact ALL the browsers besides IE and FF don't even add up to 16% of
the ENTIRE market. 
Give me a break man. I've got more important things to do.
[*] If you don't have Firefox, well then let me tell you where to go 
download it for free: http://www.mozilla.com 
They make it for all major OS's in case you didn't know.

[*] Honestly, I also dislike Apple. I think it's stupid for them to make a
browser. I think they make crappy products. I HATE my iPod. I am a Linux
guy (or was until I realized my time was too valuable to keep wasting on
Linux as a Desktop), and WANTED to LOVE OSX. I sold the damn notebook after
a month of owning it. OSX blows. It's too dumbed down IMHO (as is Windows7,
but that's another topic). In light of recent events where they fired a guy
for showing that even more stupid iPad (great, a big iPhone that can't even
call) to Wozniak and then going after Gizmodo, I have even more distain for
them. So I really have no care to support them in any way shape or form. If
the site works for Safari, fine. If not, oh well, change your USER_AGENT
string or get Firefox/IE.

As for CSS, inline styles, separation of logic, and all that other stuff
you ASSUME I don't use -- you are very wrong. I just happen to use a lot of
PHP to dynamically create various parts. In some cases I inline styles
where they are used one time or used in a PHP function. I freely admit that
there is some archaic code there too. Code that I'm not about to go back
and re-factor at this stage. I know much more now than I did then. I would
certainly do things differently, and the next time I get a wild-hair up my
ass and a few days of that elusive commodity known as "free time" to code
up a new design I will.  Again, this is my personal site that's only
purpose is to show some pictures and other random shit.

And with all due respect Tedd -- as I know you're an icon here and I've
learned many things from you myself. If I had to choose between my
daevid.com site and one of the three you (presumably) illustrate as beacons
of "t

RE: [PHP] In need of CVS/SVN checkout script for Production servers [solved]

2010-05-05 Thread Daevid Vincent
> -Original Message-
> From: tedd [mailto:tedd.sperl...@gmail.com] 
> Sent: Wednesday, May 05, 2010 8:19 AM
> To: Daevid Vincent; php-general@lists.php.net
> Subject: RE: [PHP] In need of CVS/SVN checkout script for 
> Production servers [solved]
> 
> At 1:10 PM -0700 5/4/10, Daevid Vincent wrote:
> >Well, here is the one I'm using. I ended up just writing one (again!)
> >
> >http://www.daevid.com/content/examples/snippets.php :: "Production
> >Deployment Script"
> 
> What?!?
> 
> Advanced features??
> 
> I know you don't mean it, but you certainly know how to piss people 
> off. You are not going to like what I have to say, but please accept 
> the following as constructive criticism with no personal intent meant.
> 
> The site fails W3C CSS validation with 96 errors.
> 
> The site fails W3C HTML validation with 92 errors and 9 warnings.
> 
> I have not run into a site like this since before the turn of this 
> century where we had browser wars. The problem isn't just with my 
> browser, but many more as you can see here:
> 
> http://www.browsercam.com/public.aspx?proj_id=516739
> 
> The page (not addressing the entire site) is riddled with embedded 
> javascript and embedded styling both of which are considered bad from.
> 
> I haven't even addressed accessibility, graceful degradation, or 
> separation of content from presentation from behavior all of which 
> are the goals of "best practices" sites -- and all of which this site 
> fails miserably.
> 
> My advice, which I realize that you didn't ask for, is if you want to 
> provide something of substance, then do so for all and not just the 
> privileged elite who think they are the leading edge with this type 
> of "gimmick" nonsense. This site is a step backward into the old 
> browser wars.
> 
> Of course, I could tell you what I really think, but I don't want to 
> be too abrasive. :-)
> 
> Cheers,
> 
> tedd

*sigh* once again you people focus on something S off topic compared to
the meat of the thread -- which is a production repository checkout script.

As for my site.

[*] I wrote it like 4 years ago or more when there were TWO browsers worth
mentioning: IE and FF.
[*] I used a 3rd party JS library from www.ceiton.com -- who are pretty
much dormant.
[*] The cieton code is not only compressed and impossible to debug, but
often written in German!
[*] I've looked at it a few times over the years to try and remove the
limitation, 
because I also agree that most modern browsers should be able to handle
the JS at this point.
[*] I really don't care about the fringe browsers of Chrome, Opera,
Konquerer, Blackberry, whatever (for my PERSONAL HOME PAGE)
[*] http://www.w3schools.com/browsers/browsers_stats.asp
[*] http://marketshare.hitslink.com/report.aspx?qprid=0 
[*] I'm sorry your using a browser that falls under the top 25%. 
In fact ALL the browsers besides IE and FF don't even add up to 16% of
the ENTIRE market. 
Give me a break man. I've got more important things to do.
[*] If you don't have Firefox, well then let me tell you where to go 
download it for free: http://www.mozilla.com 
They make it for all major OS's in case you didn't know.
[*] Honestly, I also dislike Apple. I think it's stupid for them to make a
browser. I think they make crappy products. I HATE my iPod. I am a Linux
guy (or was until I realized my time was too valuable to keep wasting on
Linux as a Desktop), and WANTED to LOVE OSX. I sold the damn notebook after
a month of owning it. OSX blows. It's too dumbed down IMHO (as is Windows7,
but that's another topic). In light of recent events where they fired a guy
for showing that even more stupid iPad (great, a big iPhone that can't even
call) to Wozniak and then going after Gizmodo, I have even more distain for
them. So I really have no care to support them in any way shape or form. If
the site works for Safari, fine. If not, oh well, change your USER_AGENT
string or get Firefox/IE.

As for CSS, inline styles, separation of logic, and all that other stuff
you ASSUME I don't use -- you are very wrong. I just happen to use a lot of
PHP to dynamically create various parts. In some cases I inline styles
where they are used one time or used in a PHP function. I freely admit that
there is some archaic code there too. Code that I'm not about to go back
and re-factor at this stage. I know much more now than I did then. I would
certainly do things differently, and the next time I get a wild-hair up my
ass and a few days of that elusive commodity known as "free time" to code
up a new design I will.  Again, this is my personal site that's only
purpose is to show some pictures and other random shit.

And

Re: [PHP] In need of CVS/SVN checkout script for Production servers [solved]

2010-05-05 Thread Michiel Sikma
On 5 May 2010 17:18, tedd  wrote:

> At 1:10 PM -0700 5/4/10, Daevid Vincent wrote:
>
>> Well, here is the one I'm using. I ended up just writing one (again!)
>>
>> http://www.daevid.com/content/examples/snippets.php :: "Production
>> Deployment Script"
>>
>
> What?!?
>
> Advanced features??
> -snip-
>


Just want to add my +1 to this. I'm running Safari, which most definitely
will support whatever advanced features you put in there, and I'm being
blocked. Putting aside the level of standards compliance of your site, you
really should blacklist browsers instead of whitelisting them. Sites should
never become inaccessible if your browser lacks features, and even if the
entire site revolves around some fancy Javascript, you should at least
provide a "go ahead at your own risk" link in case you're accidentally
shutting out the wrong browser.

Here's an example from a site I made a while ago which mimics the workings
of Gmail. It's accessible to screen readers through alternative content, and
if you're trying to visit using IE6 (we consciously decided not to apply
browser fixes for it), you get the following message:

http://wedemandhtml.com/tmp/tag_ie6_is_unsupported.png

Michiel


RE: [PHP] In need of CVS/SVN checkout script for Production servers [solved]

2010-05-05 Thread tedd

At 1:10 PM -0700 5/4/10, Daevid Vincent wrote:

Well, here is the one I'm using. I ended up just writing one (again!)

http://www.daevid.com/content/examples/snippets.php :: "Production
Deployment Script"


What?!?

Advanced features??

I know you don't mean it, but you certainly know how to piss people 
off. You are not going to like what I have to say, but please accept 
the following as constructive criticism with no personal intent meant.


The site fails W3C CSS validation with 96 errors.

The site fails W3C HTML validation with 92 errors and 9 warnings.

I have not run into a site like this since before the turn of this 
century where we had browser wars. The problem isn't just with my 
browser, but many more as you can see here:


http://www.browsercam.com/public.aspx?proj_id=516739

The page (not addressing the entire site) is riddled with embedded 
javascript and embedded styling both of which are considered bad from.


I haven't even addressed accessibility, graceful degradation, or 
separation of content from presentation from behavior all of which 
are the goals of "best practices" sites -- and all of which this site 
fails miserably.


My advice, which I realize that you didn't ask for, is if you want to 
provide something of substance, then do so for all and not just the 
privileged elite who think they are the leading edge with this type 
of "gimmick" nonsense. This site is a step backward into the old 
browser wars.


Of course, I could tell you what I really think, but I don't want to 
be too abrasive. :-)


Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] In need of CVS/SVN checkout script for Production servers [solved]

2010-05-04 Thread Nathan Rixham

Daevid Vincent wrote:

-Original Message-
From: Daevid Vincent [mailto:dae...@daevid.com] 
Sent: Thursday, April 29, 2010 12:33 PM

To: php-general@lists.php.net
Subject: [PHP] In need of CVS/SVN checkout script for 
Production servers


Semi-off-topic, but I'm pretty sure you all are faced with this same
challenge, I figured it's worth a shot and maybe some flaming.

I'm looking for a script (bash or php) that I would run on my 
production

web server that would do this or close to it:

1. do a CVS/SVN checkout to a new timestamped directory
2. change the symlink from the old directory
3. change permissions to www-data:www-data on new directory
4. and possibly tarball up the old directory.

I'm assuming this is a fairly common task, and I actually wrote one of
these at my previous job, but I can't find the script 
anymore. I remember
it's not quite as trivial as it sounds and took a few hours 
to perfect, so

I thought I'd try to save myself some time. :)
 
I have some other useful SVN scripts here if anyone is interested:

http://daevid.com/content/examples/snippets.php


Well, here is the one I'm using. I ended up just writing one (again!)

http://www.daevid.com/content/examples/snippets.php :: "Production
Deployment Script"



It appears your browser does not support some of the advanced features 
this site requires.


Please use Internet Explorer or Firefox.

getting that in chrome 5.0.375.29 beta - what advanced features am I 
(and chrome) missing?


sounds like I'm being negative, but I'm not :)

tip though; degrade gracefully mate, don't break the net for 
non-required features.


best,

nathan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] In need of CVS/SVN checkout script for Production servers [solved]

2010-05-04 Thread Daevid Vincent
> -Original Message-
> From: Daevid Vincent [mailto:dae...@daevid.com] 
> Sent: Thursday, April 29, 2010 12:33 PM
> To: php-general@lists.php.net
> Subject: [PHP] In need of CVS/SVN checkout script for 
> Production servers
> 
> Semi-off-topic, but I'm pretty sure you all are faced with this same
> challenge, I figured it's worth a shot and maybe some flaming.
> 
> I'm looking for a script (bash or php) that I would run on my 
> production
> web server that would do this or close to it:
> 
>   1. do a CVS/SVN checkout to a new timestamped directory
>   2. change the symlink from the old directory
>   3. change permissions to www-data:www-data on new directory
>   4. and possibly tarball up the old directory.
> 
> I'm assuming this is a fairly common task, and I actually wrote one of
> these at my previous job, but I can't find the script 
> anymore. I remember
> it's not quite as trivial as it sounds and took a few hours 
> to perfect, so
> I thought I'd try to save myself some time. :)
>  
> I have some other useful SVN scripts here if anyone is interested:
> http://daevid.com/content/examples/snippets.php

Well, here is the one I'm using. I ended up just writing one (again!)

http://www.daevid.com/content/examples/snippets.php :: "Production
Deployment Script"


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] In need of CVS/SVN checkout script for Production servers

2010-04-30 Thread David Otton
On 29 April 2010 20:32, Daevid Vincent  wrote:

> I'm looking for a script (bash or php) that I would run on my production
> web server that would do this or close to it:
>
>        1. do a CVS/SVN checkout to a new timestamped directory
>        2. change the symlink from the old directory
>        3. change permissions to www-data:www-data on new directory
>        4. and possibly tarball up the old directory.

Phing has SVN tools out-of-the-box.

http://phing.info/
http://morethanseven.net/2008/01/30/simple-deployment-with-svn-and-phing.html

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] In need of CVS/SVN checkout script for Production servers

2010-04-29 Thread Daevid Vincent
Semi-off-topic, but I'm pretty sure you all are faced with this same
challenge, I figured it's worth a shot and maybe some flaming.

I'm looking for a script (bash or php) that I would run on my production
web server that would do this or close to it:

1. do a CVS/SVN checkout to a new timestamped directory
2. change the symlink from the old directory
3. change permissions to www-data:www-data on new directory
4. and possibly tarball up the old directory.

I'm assuming this is a fairly common task, and I actually wrote one of
these at my previous job, but I can't find the script anymore. I remember
it's not quite as trivial as it sounds and took a few hours to perfect, so
I thought I'd try to save myself some time. :)
 
I have some other useful SVN scripts here if anyone is interested:
http://daevid.com/content/examples/snippets.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] In need of PHP to JS collapsable array printing routine?

2010-01-31 Thread Rene Veerman
http://mediabeez.ws/htmlMicroscope/

I'll b cleaning up & releasing the 1.3.0 code today / early next week..

On Sat, Jan 30, 2010 at 12:54 AM, Daevid Vincent  wrote:
> I'm  wondering if anyone has a PHP debug-type routine that will take a PHP
> array and output it to the web page, but make all the dimensions of the
> array collapsable, ideally showing each sub-key (or index) as the name to
> click to expand it again.
>
> I'm dealing with some rather huge datasets in multi-dimensional hashes and
> printing them out with a beautified print_r() is just not cutting it
> anymore. I need to collapse them down to wrap my head around them. Some of
> them have 6 or more dimensions!
>
> I use jQuery for JS if that helps (in case your routine requires that too).
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] In need of PHP to JS collapsable array printing routine?

2010-01-29 Thread Jochem Maas
Op 1/30/10 12:54 AM, Daevid Vincent schreef:
> I'm  wondering if anyone has a PHP debug-type routine that will take a PHP
> array and output it to the web page, but make all the dimensions of the
> array collapsable, ideally showing each sub-key (or index) as the name to
> click to expand it again.
> 
> I'm dealing with some rather huge datasets in multi-dimensional hashes and
> printing them out with a beautified print_r() is just not cutting it
> anymore. I need to collapse them down to wrap my head around them. Some of
> them have 6 or more dimensions!
> 
> I use jQuery for JS if that helps (in case your routine requires that too).

what everyone else said ... additionally check out the recent archives for
posts by Rene Veerman ... his current pet project seems to be something that
would be of interest you.

> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] In need of PHP to JS collapsable array printing routine?

2010-01-29 Thread Ashley Sheridan
On Fri, 2010-01-29 at 15:54 -0800, Daevid Vincent wrote:

> I'm  wondering if anyone has a PHP debug-type routine that will take a PHP
> array and output it to the web page, but make all the dimensions of the
> array collapsable, ideally showing each sub-key (or index) as the name to
> click to expand it again.
> 
> I'm dealing with some rather huge datasets in multi-dimensional hashes and
> printing them out with a beautified print_r() is just not cutting it
> anymore. I need to collapse them down to wrap my head around them. Some of
> them have 6 or more dimensions!
> 
> I use jQuery for JS if that helps (in case your routine requires that too).
> 
> 


I know it's not quite what you want, but what about copying and pasting
the output from the view source to a more advanced text editor like Kate
or Notepad++. They both support code-folding, and allow you to minimise
blocks of code at points in the text, usually where you have opened
brackets, etc. This also comes in handy when you're developing too.

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] In need of PHP to JS collapsable array printing routine?

2010-01-29 Thread TG
Take a look at the Firebug addon for Firefox and another addon called 
"FirePHP" or "FireConsole" (the new name coming soon).  It lets you 
output PHP debugging data to HTTP headers that show up in your Firebug 
console.  I believe it supports collapsable tree type output.

-TG

- Original Message -
From: "Daevid Vincent" 
To: 
Date: Fri, 29 Jan 2010 15:54:33 -0800
Subject: [PHP] In need of PHP to JS collapsable array printing routine?

> I'm  wondering if anyone has a PHP debug-type routine that will take a PHP
> array and output it to the web page, but make all the dimensions of the
> array collapsable, ideally showing each sub-key (or index) as the name to
> click to expand it again.
> 
> I'm dealing with some rather huge datasets in multi-dimensional hashes and
> printing them out with a beautified print_r() is just not cutting it
> anymore. I need to collapse them down to wrap my head around them. Some of
> them have 6 or more dimensions!
> 
> I use jQuery for JS if that helps (in case your routine requires that 
too).
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] In need of PHP to JS collapsable array printing routine?

2010-01-29 Thread Daevid Vincent
I'm  wondering if anyone has a PHP debug-type routine that will take a PHP
array and output it to the web page, but make all the dimensions of the
array collapsable, ideally showing each sub-key (or index) as the name to
click to expand it again.

I'm dealing with some rather huge datasets in multi-dimensional hashes and
printing them out with a beautified print_r() is just not cutting it
anymore. I need to collapse them down to wrap my head around them. Some of
them have 6 or more dimensions!

I use jQuery for JS if that helps (in case your routine requires that too).


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] In need of better __FILE__, __LINE__ and __FUNCTION__ magic variables

2010-01-25 Thread Paul M Foster
On Mon, Jan 25, 2010 at 10:59:43PM -0500, Robert Cummings wrote:

> Daevid Vincent wrote:
>> Like you, I have many little functions that are useful for debugging in a
>> page.
>>
>> The problem is that when you start to pepper them around, whilst debugging,
>> you can often times forget where you left them. A search isn't always
>> helpful since I sometimes leave them in the code, but commented out, so I
>> end up finding dozens of matches.
>>
>> What I need are some variables that tell me the current calling file, line
>> and function I'm in. Then when I see some debug info on the screen, I know
>> exactly where it came from.
>
> Use debug_backtrace() to capture the information from within the
> print_debug() or other deeper function. Just grab the second (or
> further) stack item that corresponds to the location where print_debug()
> was called.

+1

Or you can use debug_print_backtrace(), which directly outputs the
backtrace. I do this when my error handler encounters E_USER_ERROR and
the like.

Paul

-- 
Paul M. Foster

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] In need of better __FILE__, __LINE__ and __FUNCTION__ magic variables

2010-01-25 Thread Robert Cummings

Daevid Vincent wrote:

Like you, I have many little functions that are useful for debugging in a
page.

The problem is that when you start to pepper them around, whilst debugging,
you can often times forget where you left them. A search isn't always
helpful since I sometimes leave them in the code, but commented out, so I
end up finding dozens of matches.

What I need are some variables that tell me the current calling file, line
and function I'm in. Then when I see some debug info on the screen, I know
exactly where it came from.


Use debug_backtrace() to capture the information from within the 
print_debug() or other deeper function. Just grab the second (or 
further) stack item that corresponds to the location where print_debug() 
was called.


Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] In need of better __FILE__, __LINE__ and __FUNCTION__ magic variables

2010-01-25 Thread Daevid Vincent
Like you, I have many little functions that are useful for debugging in a
page.

The problem is that when you start to pepper them around, whilst debugging,
you can often times forget where you left them. A search isn't always
helpful since I sometimes leave them in the code, but commented out, so I
end up finding dozens of matches.

What I need are some variables that tell me the current calling file, line
and function I'm in. Then when I see some debug info on the screen, I know
exactly where it came from.

http://www.php.net/manual/en/language.constants.predefined.php are for the
most part useless for this task, as they tell you information about the
file, line and function name itself. This is a subtle but significant
difference.

Say I have a typical setup:

common.inc.php -- has all my helper routines and fancy debug functions.
mywebpage.inc.php -- the functions for mywebpage as I follow MVC logic.
mywebpage.php -- the page I'm trying to work on and debug.

If I place a print_x($foo) in mywebpage.inc.php somewhere, lets say in a
function insert_into_database() on line 69, I would expect that __FILE__,
__LINE__ and __FUNCTION__ to reflect all of that. It should return with
"mywebpage.inc.php", "69" and "insert_into_database" respectively.

What in fact happens is that I get "common.inc.php", "642", "print_x". If I
use $_SERVER['PHP_SELF'] instead of __FILE__ then I get "mywebpage.php"
(not "mywebpage.inc.php" as desired)

Now, the __FILE__, __LINE__ and __FUNCTION__ have their merit in some
cases, but I think there needs to be another set of magic variables that
are more dynamic and work as I suggest. Perhaps a __CFILE__, __CLINE__ and
__CFUNCTION__  with the "C" prefix for "Current" or "Calling"

/**
* Print out a pretty, portlet, styled version of an array
*
* @paramarray   $array  Array to print out
* @paramboolean $var_dump use either print_r (false/default) or
var_dump
* @paramstring $string if set, this will print out in the title of
the debug portlet
*/
function print_x($array, $var_dump=false, $string='')
{
if (!is_array($array))
{
echo ''.$_SERVER['PHP_SELF'].'::'.__FUNCTION__."(Not An
Array) $string\n";
return;
}
?>

()

\n";

if ($var_dump)
{
var_dump($array);
}
else
{
foreach($array as $k => $v)
if (is_bool($v))
$array[$k] = ($v === true) ?
'TRUE':'FALSE';
elseif (is_object($v))
$array[$k] =
'CLASS::'.get_class($v);

print_r( $array );
}

print "\n\n";
?>


'.__FILE__.'@'.__LINE__.''.$name.'
= '.$var."\n";
}


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] In need of help, plz

2005-04-12 Thread Siegfried
I've been working on a script to contain a monthly/weekly schema. The 
script is only starting from the start and stop unix timestamps for 
every task.

Now I'm having the problem of displaying the tasks properly.
For the time being, all tasks on a specific day gets its own column, but 
I want them to only appear in a new column if they collide with another 
task.

Example:   (example viewn with Courier New)
  (Now)  (Should be)
||   ||
|11  |   ||
||   ||
|  22|   ||
|  22  44|   ||
|  44|   ||
|3344|   ||
|  44|   ||
|  44|   ||
||   ||
Im using  tags and absolute positions, Here is my current 
"collision script":
#The $printTask is built up as follows
#$printTask[day_of_week][unique_task_id] = settings_for_this
#unique_task_id is allways different
#settings_for_this contains:
# sx = starting y position
# sy = starting x position
# ey = ending y position
# id = says wich task the settings are made for, different from 
unique_task_id
##_BEGIN_CODE_##
		if(is_array($printTask)) ksort($printTask);
		foreach($printTask as $id_1 => $day){
			if(is_array($printTask[$id_3])) ksort($printTask[$id_3]);
			ksort($day);
			print n();
			foreach($day as $id_2 => $task){
$width = 100;
$collides = array();
foreach($day as $id_3 => $task2){
	if($id_3 != $id_2){
		if($task['sy'] <= $task2['sy'] && $task['ey'] >= ($task2['ey'] + 
$task2['sy'])){
			if(is_array($printTask[$id_1][$id_3]['c']) && 
in_array("c_data_".$task['id'],$printTask[$id_1][$id_3]['c'])){
$printTask[$id_1][$id_2]['l'][] = "c_data_".$task2['id'];
			}else{
$printTask[$id_1][$id_2]['c'][] = "c_data_".$task2['id'];
			}
		}elseif($task['sy'] >= $task2['sy'] && $task['ey'] <= 
($task2['ey'] + $task2['sy'])){
			if(is_array($printTask[$id_1][$id_3]['c']) && 
in_array("c_data_".$task['id'],$printTask[$id_1][$id_3]['c'])){
$printTask[$id_1][$id_2]['l'][] = "c_data_".$task2['id'];
			}else{
$printTask[$id_1][$id_2]['c'][] = "c_data_".$task2['id'];
			}
		}
	}
}
			}
		}
		#drawarray($printTask);
		$fe['max'] = arrayMax($fe['tasks']);
		foreach($printTask as $id_1 => $day){
			foreach($day as $id_2 => $task){
$w = 0; $l = 0; $c = 0;
if(isset($task['c'])){
	$w+= count($task['c']);
	$c = count($task['c']);
}
if(isset($task['l'])){
	$w+= count($task['l']);
	$l = count($task['l']);
}
$width = 100;
if($w > 0) $width = (int)(100 / ($w + 1))+($w == $l?$l:0);
$left = 67 + ($id_1 * 101);
if($l > 0) $left+= (int)((100 / ($w + 1)) * $l) - $l;
printDiv($left, $task['sy'], makeColor($fe['max'] + 1, $task['id']), 
$task['ey'], $width, $task['id'], 0, 0, $task['cf'], $task['cb']);
			}
		}

##_END_CODE_##

I hope you will be able to help me, I've gotten gray hairs over this one
//SIEGFRIED
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] in need of php code for user management/admin function...

2005-01-27 Thread The Disguised Jedi
osCommerce handles it pretty well, but a lot of the data doesn't go
through much sanitization, so it can fall victim to SQL code
injection

www.oscommerce.com


On Thu, 27 Jan 2005 16:16:51 -0800 (PST), Bruce Douglas
<[EMAIL PROTECTED]> wrote:
> hi...
>
> i'm looking for 'open source' code that can be used in a website for handling 
> user registration, user admin functions... does anybody know of a good set of 
> functions that can provide this kind of feature set. or, can anybody give me 
> opinions regarding apps that you've used that have had this kind of 
> functionality...
>
> as long as the code is open source, i can rip out/recode the functionality 
> that i'm looking for...
>
> i'm looking for something that would be mysql based, with the ability to 
> allow users to register/login, and have an admin function that allows the 
> admin to deny/enable/disable users, as well as track various attributes 
> within the site...
>
> if i have the basic shell/structure, i can modify the code to my needs..
>
> comments/criticisms/thoughts...
>
> thanks
>
> bruce
> [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
The Disguised Jedi
[EMAIL PROTECTED]

PHP rocks!
"Knowledge is Power.  Power Corrupts.  Go to school, become evil"

Disclaimer: Any disclaimer attached to this message may be ignored.
This message is Certified Virus Free


-- 
The Disguised Jedi
[EMAIL PROTECTED]

PHP rocks!
"Knowledge is Power.  Power Corrupts.  Go to school, become evil"

Disclaimer: Any disclaimer attached to this message may be ignored.
This message is Certified Virus Free

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] in need of php code for user management/admin function...

2005-01-27 Thread Bruce Douglas
hi...

i'm looking for 'open source' code that can be used in a website for handling 
user registration, user admin functions... does anybody know of a good set of 
functions that can provide this kind of feature set. or, can anybody give me 
opinions regarding apps that you've used that have had this kind of 
functionality...

as long as the code is open source, i can rip out/recode the functionality that 
i'm looking for...

i'm looking for something that would be mysql based, with the ability to allow 
users to register/login, and have an admin function that allows the admin to 
deny/enable/disable users, as well as track various attributes within the 
site...

if i have the basic shell/structure, i can modify the code to my needs.. 

comments/criticisms/thoughts...

thanks

bruce
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] in need of a directory/listing script/app

2005-01-27 Thread Jochem Maas
Bruce Douglas wrote:
hi...
i'm looking for a good app/function/code to allow users to select a given item(s) from a list of categories. 
i'd also like the user to be able to display users who have selected a given category from the list...

i can't seem to find an app that has this kind of code incorporated...
thanks
Bruce, please be more specific - (or use google.)
from what I read you're not going to be able to just plug and play something 
into a website and expect
it to do what you want, sounds like there will be coding involved (i.e. you 
want something custom!).
tell us what stage you're at, maybe explain why your doing it or what the 
underlying idea is.
show us some code - that is always a good thing (emphasis on 'some' - 1000 line 
scripts are not really cool
on a mailing list me thinks)
actually if you read back to yourself what you wrote you might notice you 
didn't actually ask a
question. :-) - now if I was on your payroll I would immediately understand you 
tone/intention and
go find an answer to the implied question  but I'm not atm ;-)
rgds,
Jochem
bruce
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] in need of a directory/listing script/app

2005-01-26 Thread Bruce Douglas
hi...

i'm looking for a good app/function/code to allow users to select a given 
item(s) from a list of categories. i'd also like the user to be able to display 
users who have selected a given category from the list...

i can't seem to find an app that has this kind of code incorporated...

thanks

bruce
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] In need of a script

2003-08-25 Thread Jason Sheets
One thing to be aware of, Location: /newpage.php will probably work with 
most browsers (I know it works with IE, Mozilla and Opera) but the spec 
requires an absolute path  to the file you are redirecting to including 
protocol, server, path and file.  As Wouter demonstrated you should 
always die() after a redirect request because it is just that, a request 
that the client is not required to follow.

Jason

Wouter van Vliet wrote:

Though no parse error, it can result in an notice about 'undefined index' ..
I'd prefer

Taking care of three things:
- No undifined index notice
- the cookie can also have a value that evaluates to false
- the 'die;' makes sure the script really ends .. sometimes, somehow for
some
  undefined reason it does not stop after a header..
Wouter

-> -Oorspronkelijk bericht-
-> Van: Curt Zirzow [mailto:[EMAIL PROTECTED]
-> Verzonden: zondag 24 augustus 2003 20:22
-> Aan: [EMAIL PROTECTED]
-> Onderwerp: Re: [PHP] In need of a script
->
->
-> * Thus wrote Stevie D Peele ([EMAIL PROTECTED]):
-> > Heres what I wrote --
-> >
-> >  > if ($_COOKIE['pagename'])
-> > {
-> > header('Location: http://www.net-riches.com/800x600.html');
-> > }
-> > ?>
-> >
-> > and I got a parse error on line 4, but I do not see what is
-> wrong on line
-> > 4!
->
-> There is no parse error in that code.
->
-> Curt
-> --
-> "I used to think I was indecisive, but now I'm not so sure."
->
-> --
-> PHP General Mailing List (http://www.php.net/)
-> To unsubscribe, visit: http://www.php.net/unsub.php
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] In need of a script

2003-08-24 Thread Wouter van Vliet
Though no parse error, it can result in an notice about 'undefined index' ..
I'd prefer



Taking care of three things:
- No undifined index notice
- the cookie can also have a value that evaluates to false
- the 'die;' makes sure the script really ends .. sometimes, somehow for
some
  undefined reason it does not stop after a header..


Wouter


 -> -Oorspronkelijk bericht-
 -> Van: Curt Zirzow [mailto:[EMAIL PROTECTED]
 -> Verzonden: zondag 24 augustus 2003 20:22
 -> Aan: [EMAIL PROTECTED]
 -> Onderwerp: Re: [PHP] In need of a script
 ->
 ->
 -> * Thus wrote Stevie D Peele ([EMAIL PROTECTED]):
 -> > Heres what I wrote --
 -> >
 -> >  > if ($_COOKIE['pagename'])
 -> > {
 -> > header('Location: http://www.net-riches.com/800x600.html');
 -> > }
 -> > ?>
 -> >
 -> > and I got a parse error on line 4, but I do not see what is
 -> wrong on line
 -> > 4!
 ->
 -> There is no parse error in that code.
 ->
 -> Curt
 -> --
 -> "I used to think I was indecisive, but now I'm not so sure."
 ->
 -> --
 -> PHP General Mailing List (http://www.php.net/)
 -> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] In need of a script

2003-08-24 Thread Curt Zirzow
* Thus wrote Stevie D Peele ([EMAIL PROTECTED]):
> Heres what I wrote --
> 
>  if ($_COOKIE['pagename'])
> {
> header('Location: http://www.net-riches.com/800x600.html');
> }
> ?> 
> 
> and I got a parse error on line 4, but I do not see what is wrong on line
> 4!

There is no parse error in that code.
 
Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] In need of a script

2003-08-24 Thread Stevie D Peele
Heres what I wrote --

http://www.net-riches.com/800x600.html');
}
?> 

and I got a parse error on line 4, but I do not see what is wrong on line
4!

Can anyone else see?

Thanks



On Sun, 24 Aug 2003 10:04:50 -0400 "Matt" <[EMAIL PROTECTED]> writes:
> On  Sunday, August 24, 2003 at 9:49 AM Stevie D Peele wrote:
> 
> > Can someone show me an example of some code that works something 
> like
> > this :
> >
> >  >
> > if cookie is present
> > redirect to a certain page
> >
> > ?>
>  buffering) -- see http://www.php.net/header for explanation
> if ($_COOKIE['cookie_I_want_to_know_about']) {
>   header('Location: http://www.someserver.com/page.php');
> ?>
> 
> 
> 
> 

Re: [PHP] In need of a script

2003-08-24 Thread [EMAIL PROTECTED]
it's in the manual.

Stevie D Peele wrote:

Can someone show me an example of some code that works something like
this :


if cookie is present
redirect to a certain page
?>

Thanks


The best thing to hit the internet in years - Juno SpeedBand!
Surf the web up to FIVE TIMES FASTER!
Only $14.95/ month - visit www.juno.com to sign up today!
 



--
http://www.raditha.com/php/progress.php
A progress bar for PHP file uploads.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] In need of a script

2003-08-24 Thread Matt
On  Sunday, August 24, 2003 at 9:49 AM Stevie D Peele wrote:

> Can someone show me an example of some code that works something like
> this :
>
> 
> if cookie is present
> redirect to a certain page
>
> ?>
http://www.php.net/header for explanation
if ($_COOKIE['cookie_I_want_to_know_about']) {
  header('Location: http://www.someserver.com/page.php');
?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] In need of a script

2003-08-24 Thread Stevie D Peele
Can someone show me an example of some code that works something like
this :



Thanks


The best thing to hit the internet in years - Juno SpeedBand!
Surf the web up to FIVE TIMES FASTER!
Only $14.95/ month - visit www.juno.com to sign up today!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] In Need of a PHP freelancer...

2003-02-05 Thread @ Nilaab
You can also try the following site. It is loaded with freelance developers
who are sitting there waiting for requests like yours.

http://webhostingtalk.com/forumdisplay.php?s=deff1e6ceaa5f13e400bfefc1702a2f
c&forumid=33

> -Original Message-
> From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 04, 2003 3:14 PM
> To: Shane; [EMAIL PROTECTED]
> Subject: Re: [PHP] In Need of a PHP freelancer...
>
>
> -Original Message-
> >>Greetings... I am in need of a freelancer to write an additional
> >>function to our company's extranet. Before I go and post a
> >>request to this list, I would like to know if there is
> >>a more appropriate place to post such a request, and still
> >>get quality folks who know their stuff.
>
> This is probably the best place, assuming you need a PHP function.. :)
>
> I'd be interested, also, if you want to send more details offlist.
>
> ---John Holmes...
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] In Need of a PHP freelancer...

2003-02-04 Thread 1LT John W. Holmes
-Original Message-
>>Greetings... I am in need of a freelancer to write an additional 
>>function to our company's extranet. Before I go and post a 
>>request to this list, I would like to know if there is 
>>a more appropriate place to post such a request, and still 
>>get quality folks who know their stuff.

This is probably the best place, assuming you need a PHP function.. :)

I'd be interested, also, if you want to send more details offlist.

---John Holmes...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] In Need of a PHP freelancer...

2003-02-04 Thread Shane
-Original Message-
Greetings... I am in need of a freelancer to write an additional function to our 
company's extranet. Before I go and post a request to this list, I would like to know 
if there is a more appropriate place to post such a request, and still get quality 
folks who know their stuff.

Suggestion are appreciated.
Thanks gang!
- That is all.
NorthBayShane

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] In Need of...

2001-09-04 Thread chicago23f

Hello,

This message is being sent to you because you either sent / or requested
this information from me.  We are offering a full or part-time position using our
program.  You can work at home.  I do require that you have a computer and 
are familar with internet/email functions.  As to the salary, that is totally up to
you, as you will be running your own business.  The sky is the limit!  What you
will see represents a totally legal money making business that anyone can do.
You will receive full instructions, and we will always be available to help you 
and answer your questions.  This is a genuine home business.  This is not a 
chain letter, money game, telecom scheme, or any of the multitudes of dubious
"business" offers that come through your emailbox.  This business will generate
an income of $2,000 to $6,000 every month with a part-time commitment.  We do
not make promises that we cannot keep so that is why we GUARANTEE that 
you will make money with our program.  If the above opportunity interestes you 
in the least, and you would like more information about our business, please
contact our customer service department at [EMAIL PROTECTED]
and type "Send Info" in the subject line.  Insert your name with your correct 
email address.  We are successful ONLY if YOU are successful, and therefore
we will do everything in our power to ensure that your relationship with us is a
profitable and successful one.  We look forward to your response.

Best Reguards,
Customer Service
J&H Marketing

[EMAIL PROTECTED]


This message is being sent in compliance with the new e-mail bill: Section 301.
Per section 301, paragraph (a)(2)(c) of S. 1618, http://www.senate.gov/
~murkowski/commercialemail/S771index.html  Further transmissions to you by
the sender of this email may be stopped at no cost to you by sending a reply to
this email address with the word "remove" in the subject line.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]