Hello all, my name is Kirk Bailey, and I am new to php, so please be
forbearing. I code in python, and am trying to learn this language as
our new client runs a web business based in it.
I need a routine that will return a list of every directory immediately
under the current directory- but
be
a list of things not to notice?
Also, how compatible is it with SSI includes? If part of the echo is an
ssi include statement, will it work right? Hmmm...
Daniel P. Brown wrote:
On Fri, Nov 26, 2010 at 19:03, Kirk Bailey wrote:
I need a routine that will return a list of ev
^2: http://php.net/directoryiterator
^3: http://php.net/recursivedirectoryiterator
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-+
| BOX
tory it could
then use THAT as the text in the link, instead of the name. This could
be useful in many settings.
Daniel P. Brown wrote:
On Fri, Nov 26, 2010 at 19:03, Kirk Bailey wrote:
I need a routine that will return a list of every directory immediately
under the current directory- b
OK, now here's a giggle; I like ssi includes. If I put the script in as
an ssi include, will it still work? The functionality would also be
useful on a page besides the default landing page, such as a
404error.html page, or a thank you page.
--
end
Very Truly yours,
-
implement the required
multi step algorithm.
Jim Lucas wrote:
On 11/26/2010 4:03 PM, Kirk Bailey wrote:
Hello all, my name is Kirk Bailey, and I am new to php, so please be forbearing.
I code in python, and am trying to learn this language as our new client runs a
web business based in it.
I
Now Now, fight nice. We don need no stinkin' @$^*$^(! woids here. :-P
Steve Staples wrote:
On Thu, 2010-12-02 at 10:07 -0500, Daniel P. Brown wrote:
On Wed, Dec 1, 2010 at 23:13, Kirk Bailey wrote:
[snip!]
Can this be improved to exclude anything with a '.' or a &
a website one may go to. By
excluding some folders, people don't go trespassing into the cgi-bin or
images folder, or into areas reserved for administrative uses.
Daniel P. Brown wrote:
On Wed, Dec 1, 2010 at 23:13, Kirk Bailey wrote:
[snip!]
Can this be improved to exclude anything
*82nd Airbourne - We are an elite unit of army Paratroopers
*
Then that element in the list would appear as:
* 82nd Airbourne -We are an elite unit of army Paratroopers
And would be clickable. Let's try it and see if this hound hunts.
Matt Graham wrote:
From: Kirk Bailey
OK, no
t/dirlisting.php and is live right now. The
results are a tad odd to say the least.
Kirk Bailey wrote:
Ok, let's kick this around.
iterating an array(?; 1 dimensional listing of things) in php, I am
creating a list of direcoties. I want to open and read in a file in
each directory wi
's not in the source file. Link:
http://www.howlermonkey.net/dirlisting.php
I hope this dialog is proving at least mildly interesting to the
remainder of the list as an educational exercise.
Tamara Temple wrote:
On Dec 4, 2010, at 2:15 PM, Kirk Bailey wrote:
The hound barks, but does not yet pr
his newbie.
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-+
| BOX |
+-+
think
--
PHP General Mailing List (http://www.ph
Groovy; they appear to be identical in all but name. IDENTICAL. Or am I
missing a subtle definition difference?
David Robley wrote:
Kirk Bailey wrote:
Ok, so what is echo, and how is it different from print.
The code in code quest used echo. I have a copy of learning php 5.0 from
I ran the executable installer. I have no recollection of having
opportunity to configure it.
On 4/10/2012 12:08 AM, Tommy Pham wrote:
On Mon, Apr 9, 2012 at 7:05 PM, Kirk Bailey wrote:
The edition of php for windows I instaklled does not work. Which flavor of
windows php DOES work properly
?!? Considering that
Boll Bates and co. are almost as omnipresent as Satan, and have been
accused of BEING Satan, that's quite an accomplishment.
On 4/10/2012 6:31 AM, Tim Streater wrote:
On 10 Apr 2012 at 03:05, Kirk Bailey wrote:
The edition of php for windows I instaklled does not work.
I have a web server, and it works fine with python.
On 4/10/2012 7:03 AM, Matijn Woudt wrote:
On Tue, Apr 10, 2012 at 4:05 AM, Kirk Bailey wrote:
The edition of php for windows I instaklled does not work. Which flavor of
windows php DOES work properly in windows?
It does work, you just
I am not running apache; I am running tinyweb, which is a cgi
capable server. It does not need any special configuration to handle
cgi, and worked out of the box with python.
On 4/10/2012 11:13 AM, Bogdan Ribic wrote:
On 4/10/2012 04:05, Kirk Bailey wrote:
The edition of php for windows I
A good tip, thank you. The php cookbook just arrived today, and this
weekend I will be doing some cooking.
On 4/10/2012 4:22 PM, Govinda wrote:
Revisiting said dead horse, it's interesting there is no clear consensus of
opinion about what is the best book to use to learn php. Generally, you g
ok, I just installed 5.2.17 VC6X86. I have a simple test page,
index.php; it spews the content code at me.
On 4/10/2012 11:13 AM, Bogdan Ribic wrote:
On 4/10/2012 04:05, Kirk Bailey wrote:
The edition of php for windows I instaklled does not work. Which
flavor
of windows php DOES work
ok, there is a copy of index.php ion the cgibin, and this got WAY
different results.
It puked an error.
"CGI script /cgi-bin/index.php returned nothing"
NOW W.T.F., over?
I think that it's time for some rack time. 'Night all.
On 4/11/2012 12:50 AM, Kirk Bailey wrote:
Steve, THERE IS NO SUCH FILE in tinyweb. It turns to the operating
system asspciations to determine what to use to process the cgi,
then captures the returned stdio output and feeds THAT back as part
of the data stream back down the stack. Therefore, it is not
interfacing with the windows opera
lease don't
waste the bandwidth.
Would anyone care to help me understand this without dedicating 4
precious and in over demand/under supply hours to RTFM?
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
shelf solution?
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-+
| BOX |
+-+
think
--
PHP General Mailing List
Where is a good place for bread and butter day in day out routinely
needed functionality in php?
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-+
| BOX
#40
foreach ($ls as $d) { if (is_dir($d) &&
!preg_match('/^\./',basename($d)) &&!in_array(basename($d),$excludes))
{
echo ''.$d.'src="/Categories/'.$d.'/thumb.png" border="5">';
include($d."/desc.txt"
PM, Richard Quadling wrote:
On 15 February 2011 00:53, Kirk Bailey wrote:
Now I have a situation. I need to take the code from my former home page and
modify it to lay out a table (let's say 5 cells wide) and as many rows deep
to contain all the items. Each item is the name of the dire
Very nice; I am leaning in the direction of doing it this way. Thank
you!
:-)
On 2/14/2011 9:24 PM, Jim Lucas wrote:
On 2/14/2011 4:53 PM, Kirk Bailey wrote:
Now I have a situation. I need to take the code from my former home page and
modify it to lay out a table (let's say 5 cells
($d)) &&!in_array(basename($d),$excludes))
{
++$counter ;
echo ''.$d.'href="'.$d.'">';
echo 'border="5">';
include($d."/desc.txt");
echo '';
if ($counter > 3)
{
echo ''; #50
nd he didn't use any consistent
indenting style.
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-+
| BOX |
+-+
think
Just for a giggle, please share the context generating the magic
number you cite.
On 2/18/2011 10:08 PM, John Taylor-Johnston wrote:
9970318527584
Could this number refer to a date()? In late 2009?
How could I calculate it?
--
end
Very Truly yours,
- Kirk Bailey
May I have suggestions of websites I would do well to visit to
improve my php skills? Links please, with a breif description if you
would be so good.
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
facts.
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-+
| BOX |
+-+
think
--
PHP General Mailing List (http://www.php.net/)
I need to extract the name of the subdirectory a page lives in to
use in the title for that page. This will be returned as a string to
echo to the output stream. Now how the heck do I do that?!?
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
PERFECT SIMPLE SOLUTION. THANK YOU!
On 3/31/2011 12:34 PM, Stuart Dallas wrote:
On Thursday, 31 March 2011 at 17:24, Kirk Bailey wrote:
I need to extract the name of the subdirectory a page lives in to
use in the title for that page. This will be returned as a string to
echo to the output
OK gang, to spew a single line from a file of fortune cookies, I
want to read it and echo one line. While I found a 4 line code which
gets it done, I thought there was a preexisting command to do
exactly that. Any feedback on this?
--
end
Very Truly yours,
- Kirk Bailey
If I only had 1 book on php, what would it be?
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-+
| BOX |
+-+
think
--
PHP
one, and that's a bloody shame.
Any discussion?
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-+
| BOX |
+-+
think
--
PHP Gene
build a secure vendobot? Let's discuss
this in this thread.
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-+
me) makes a download link available. This page
also deletes that magic cookie from the list of them,so it can never
be used again.
Discussion?
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-+
this the worse the user experience will be and it won't be any
more secure than a time-limited unique token as described above.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
On 7/6/2011 9:31 AM, Stuart Dallas wrote:
On Wed, Jul 6, 2011 at 3:01 AM, Kirk Bailey
mailto:kbai...@howlermonkey.net>> wrote:
On 7/3/2011 4:53 PM, Stuart Dallas wrote:
Only allowing them to access the URL once is a bad idea.
If their download fails, is corrupt,
g
that useful.
Good luck with this.
Steve.
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-+
| BOX |
+-+
think
--
PHP
I already subscribe, of recent.
On 7/7/2011 11:58 AM, Tamara Temple wrote:
On Jul 7, 2011, at 9:07 AM, Stuart Dallas wrote:
Now, what do I win?
A free subscription to InformationWeek.
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-+
| BOX |
+-+
think
--
PHP General Mailing List (http://www.php.net/)
To
The best book for a beginner? No, don't tell me php.net, I hear that
one already, and while it is indeed good, I want something in a dead
tree edition I can canny around and smoke as needed.
--
end
Very Truly yours,
- Kirk Bailey,
Largo Fl
about "install Linux" shall be ignored as
line-noise.
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-+
| BOX |
+-+
,
- Kirk Bailey,
Largo Florida
kniht
+-+
| BOX |
+-+
think
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I can
use it in other directories as is.
Now ai am still a novice at p[hp, how can I do this ?
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-+
types,
print ''# print out the
material to return surrounding
# the
file name
On 4/5/2012 10:34 PM, Tommy Pham wrote:
On Thu, Apr 5, 2012 at 7:26 PM, Kirk Bailey wrote:
Now ai am still a novice at p[hp, how can I do
jim, I am a novice at this language as I said.
On 4/5/2012 10:44 PM, Jim Giner wrote:
As Tommy says - you sound like a total new user who doesn't know how to do
it and furthermore doesn't know how many things you are going to have to
pick up just to accomplish this task.
You have to:
determine
and it lists them all
and composes proper img links to display on the inventory page. NOW
I have the tool i needed; can someone else put this to good work?
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
PM, Kirk Bailey wrote:
Image inventory of this directory
body { margin-left: 10; margin-right: 10%; }
body {background-attachment:fixed;}
A:link, A:visited, A:active { text-decoration:none; }
A:hover { text-decoration:underline; }
.justify{text-align:justify;}
.center{text-align:center
ividualism?
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-+
| BOX |
+-+
think
--
PHP General Mailing List (http://www.php.
Php would (IMHO) benefit from an interactive desktop application
where you can test and experiment with code interactively, instead
of "edit, dsave, run, view webpage result, edit...
Python has this; why not php?
--
end
Very Truly yours,
- Kirk B
I am not ABLE to create it yet. Anyone else able to?
On 4/9/2012 9:45 PM, Jay Blanchard wrote:
[snip]
On Apr 9, 2012, at 8:38 PM, Kirk Bailey wrote:
Php would (IMHO) benefit from an interactive desktop application where you can test
and experiment with code interactively, instead of "
The edition of php for windows I instaklled does not work. Which
flavor of windows php DOES work properly in windows?
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
56 matches
Mail list logo