hi all
how do i prevent php from exposing itself when opening url with
fopen() ?
kann i make it look like MSIE or whatever?
reaons : i want to query google by script but it does not allow that...
Sebastian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Hi all
i have a skript that sends out various files after versifying tat the
user is authenticated.
can i determine the content type of a file with php? like using it on
pdf and it return
applicatin/pdf etc?
Sebastian
How do I sort out data from mysql_fetch_row() or mysql_fetch_array? For
example say I wanted to list all my users alphabetically. How would I do
this? Or say I had a form and I wanted to present the content to the user
*AFTER* they have filled it out so that they can check for mistakes.
I am trying to use anytext in an object but I am having a number of
problems. anytext does not seem to work if it is indented. If I un-indent
anytext and the text between it, it works perfectly. Does anyone know
what could be causing this error? I can give you a sample of my code if it
would
Hello,
Today I was working on an object that will create all of the columns and
tables in my DataBase for my upcoming application. I however, did run into
trouble. I am having problems because I cannot pass the name of the database
from the form to the function that needs it. Everything
Lately I have noticed many scripts that all consist of one file even though
they create the appearance of many pages. For example, you would open
setup.php and a form would appear. Then after you complete the form a new
page appears with the results of your form, however the URL is still
Hey All,
I have recently been trying to create some logs for the install script I
have been making (to make it easier for me to diagnose problems) but I am
wondering how to create and write to text files. I know about the fopen()
and fwrite() functions, which theoretically should enable
You can try using fopen() and fwrite(), they are the primary file
manipulation tools you should use in this instance.
-Original Message-
From: Raymond Lilleodegard [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 06, 2002 5:52 PM
To: [EMAIL PROTECTED]
Subject: [PHP] How to convert a
Hello,
I have been working with XML in the recent weeks and I have recently come
across the need to format some of the data in my XML. For example I might
have a large XML file and I would like some of the text to be bold, or maybe
I would like to insert a hyper-link. Unfortunately it does not
Hello,
I am having some problems parsing XML with PHP. Here is an example of my
problem:
Example 1:
PAGE
TAG1
SOME TEXT
/TAG1
/PAGE
When I try to use the expat XML functions I cannot parse TAG1 in the above
example. I simply get nothing. However with the
Message-
From: Analysis Solutions [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 30, 2002 8:27 PM
To: PHP List
Subject: Re: [PHP] XML Problem
On Sun, Jun 30, 2002 at 05:58:59PM +0200, Sebastian A. wrote:
I am having some problems parsing XML with PHP. Here is an
example of my problem
% certain
about this process...
Could you give me any advice?
-Original Message-
From: Analysis Solutions [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 6:26 AM
To: PHP List
Subject: Re: [PHP] XML Problem
Sire:
On Sun, Jun 30, 2002 at 10:21:40PM +0200, Sebastian A. wrote:
Later
Recently I have caught on to XML, and I think it truly is a good idea.
Because XML was *made* to store data I believe an XML flatfile database is
(perhaps) one of the best ways to store data because it can be easily
exchanged. Therefore I would like to embark on the feat of trying to create
Recently I have been trying to work with sessions however I must admit that
I am not sure I completely understand them. Does anyone know of a good
tutorial that thoroughly explains sessions?
Thanks in advance
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On PHP.net it says that version 4.2.0 of PHP is out, yet on the downloads
page, I can only find 4.1.2. If anyone has PHP 4.2.0 can you please provide
me the URL?
Thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What do I have to do to upgrade from PHP 4.1.2 to 4.2.0? Do I just overwrite
all the old PHP files with the new ones or must I do something else?
Thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Have the new DOM XML functions been included in the latest version of PHP
(4.2) when I try to use one of the new functions, such as domxml_open_file()
I get an error message saying I am calling and undefined function. Has
anyone successfully used these new functions with PHP 4.2? My second
Hello,
I have been recently doing experiments with the DOM XML function and I am
(not surprisingly) having some problems with it. When I try to run the code
below, I get an error saying I am trying to use and endefined function. To
me it seems that the DOM XML extension is working fine, because
Hello,
I have recently installed PHP-GTK with any problems, however I cannot get
it to work. When I click on the php_win shortcut I get an error saying:
Usage: php_win path to php-gtk script
Does anyone know how I can fix this and run my PHP-GTK scripts?
--
PHP General Mailing List
Hello,
I have recently been trying to use templates with XML documents. My problem
however is that I cannot get the values between XML tags into variables. For
example
Example XML Document:
me
name
Foo-Bar
/name
/me
What would I need to do, so that I can get the
: Monday, May 06, 2002 8:25 PM
To: PHP List
Subject: Re: [PHP] Variables from XML Documents
On Mon, May 06, 2002 at 08:20:46PM +0200, Sebastian A. wrote:
me
name
Foo-Bar
/name
/me
What would I need to do, so that I can get the contents of the name tag
(Foo-Bar
Hello
I have recently been trying to parse an XML document that has different
content in the same tags. Here is an example:
LIST_ITEM1/LIST_ITEM
LIST_ITEM2/LIST_ITEM
LIST_ITEM3/LIST_ITEM
...
I am trying to get the content from LIST_ITEM into an array. I want the
content of the first LIST_ITEM
I tried your suggestion already but It doesn't seem to work. I still can get
it to be assigned to different parts of the array. Do you have any other
suggestions?
-Original Message-
From: Kjartan Mannes [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 12, 2002 11:10 PM
To: Sebastian A.
Cc
: Monday, May 13, 2002 10:04 PM
To: PHP List
Subject: Re: [PHP] XML: Similiar Multiple Tags With Different Data
On Mon, May 13, 2002 at 05:49:04PM +0200, Sebastian A. wrote:
function elementContent($parser, $data, $attrs='') {
global $tag, $p;
$ti = sizeof( $tag ) - 1
I hope I didn't sound impolite, I really didn't mean to offend you, because
if it weren't for your tutorial I would probably still be trying to figure
out how to parse attributes and get XML Content into variables. Anyway, the
performance and efficiency doesn't really interest me at this point. I
, May 15, 2002 at 07:49:58PM +0200, Sebastian A. wrote:
performance and efficiency doesn't really interest me at this point. I
just
want to get the thing working before I work on improving it.
But your haste is making waste. Even funnier, in your haste, you're making
more work
for yourself
Hello,
I recently have run into a situation where I must search through many text
(XML) documents. I would like to implement a search feature on my site that
can search through the XML documents I use for my pages. I will probably
need to search all the files in a specific directory for
Thanks a lot for this. I will try to implement this in my site. Does anyone
have any other suggestions?
-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 10:06 PM
To: Sebastian A.
Cc: PHP General List (PHP.NET)
Subject: Re: [PHP] Searching Many
if user
is
authorized to get these files.
sebastian
-Ursprüngliche Nachricht-
Von: George Pitcher [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 19. Oktober 2001 12:55
An: Arpad Tamas; [EMAIL PROTECTED]
Betreff: Re: [PHP] Delivering NAMED pdf files
Arpi,
Thanks
Hi
We encountere some problems with our Squid-Proxy.
When we user direct internet connection the sky was the limit,
but with our Proxy, the limit was 2MB...
Sebastian
-Ursprüngliche Nachricht-
Von: The Big Roach [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 13. November 2001 17
I looking for a way to update certain parts of a site that is highly
dynamic. I've tried creating static files via cronjobs then including them,
but it is a pain to do. for instance, i have a news page that utilizes
mysql, rather than query the DB on each page load i would like to have it
update
I'd like to know if it is possible to perform a search across multiple
mysql tables within a single query.
eg, i have two tables with different column names:
news: title | newstext
faqs: topic | faqstext
currently i am just searching the news table with a query as such:
SELECT *, MATCH
I am quite aware of a mysql mailing list. I don't feel like joining
another list,
anyway, move along,.. I've already solved the problem without your help,
but from others on this list.
John Nichel wrote:
Sebastian wrote:
I'd like to know if it is possible to perform a search across
they're usually used as includes, hence the INC part.
files that have certain functions/classes that another script requires
and people use them to split up the code.
I don't and have never created .inc files.. all my files end in .php --
but that's just me.
Martin Zvarik wrote:
Hi,
I
you can do that with just an index.php file.
say you have a directory called 'foo' with an index.php you can do
something like this:
if($_GET['a'] == 1)
{
echo 'blah';
}
mysite.com/foo/index.php?a=1
would be the same as:
mysite.com/foo/?a=1
Ryan A wrote:
Hey,
I noticed a site that is
what is a safe way to clean a post/get before echoing it.
example. input form, user enters some text, hits enter.
.. next page i echo what they entered.
right now i just run the variables passed by htmlentities() which
preseves any html. is that acceptable?
--
PHP General Mailing List
yea.. takes hours... sometimes 6+ or more.
i dont post that much to the list for this reason.. if it stays like
this i'll just unsubscribe.. its pointless... this is suppose to be
E-mail, not post office mail.
Jack Jackson wrote:
Has anyone else noticed significant delays in messages
Thanks.
*test*
Rasmus Lerdorf wrote:
We found a problem caused by a recent disk failure that wiped out a
named pipe qmail needed. I am hoping the mailing list delays should be
fixed now.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
wow, got that in 20 seconds.. can we go for a record? ;)
Sebastian wrote:
Thanks.
*test*
Rasmus Lerdorf wrote:
We found a problem caused by a recent disk failure that wiped out a
named pipe qmail needed. I am hoping the mailing list delays should be
fixed now.
-Rasmus
--
PHP
i dont think having a + in an achor tag is standard.. but i could be wrong.
John Taylor-Johnston wrote:
I seem to have a problem with Mozilla or with IE?
echo a name=\.urlencode($mydata-district).\/a;
a name=Montr%E9al+District+%234/a
is it possible for $mydata-lastinsalled to have -MM-DD format? ie:
2004-05-31
you can use strtotime to convert it to unix timestamp to
compare...something like this:
$stamp = strtotime('2004-06-31'); // $mydata-lastinsalled
if($stamp = strtotime('1 year ago'))
{
echo 'less than 1
i'm looking for a function that can highlight certain search terms in a
string. anyone have something already made that i can plugin to my
exisiting code?
I found a couple but they do not work very well.. some break html code
if the string contains the keywords in the html.
thanks.
--
PHP
Don't forget to mention that even if you don't select a checkbox it will
still add a empty record to the db.. i know for sure the foreach loop
will add a record even if a box is not check, so you have to check its
actually set before you start inserting.
Richard Davey wrote:
Hello jack,
well, your trying to get the insert_id() without running the query first. so
you have to add:
mysql_query($query);
before:
$art_id = mysql_insert_id();
also, your foreach loop should be:
foreach ($media_types as $type)
(without the brackets [])
i am assuming $media_types is an array
backslash was invented for windows ;)
Jochem Maas wrote:
the backslash has caught us all out when we first started, and beyond.
many 'noobs' have had the fortune of being explained, in depth,
how and why concerning the backslash by a singular Richard Lynch ...
but obviously nobody is immune
i am looking for a simple ad management app to keep track of ad
views/impressions. i was looking at phpadsnews, but it seems way too
much bloat of what i need i to do.
anyone know of a simple ad script to keep track of views/impressions?
thanks.
--
PHP General Mailing List
you sound exactly like someone i know..
i enjoy reading your long posts.. no sarcasm ;-)
i'd defently hire you, but you're probably too expensive ;-)
Richard Lynch wrote:
On Sat, June 25, 2005 3:37 am, Catalin Trifu said:
No! You don't have to rewrite your application. What mmacache
if you have php = 4.2.3 yes, otherwise no.
it has to be set in php.ini, .htaccess, or httpd.conf
[EMAIL PROTECTED] wrote:
Hi,
If i use, at the beginning of my scripts, ini_set('register_globals', 0),
register globals will be turned off?
Thanks
--
PHP General Mailing List
Each time i try setting MAX_FILE_SIZE in a form and using the upload
error code to check if the file is large it always uploads the entire
file before showing the error that the file is too big.. either the
manual is incorrect or this does not work as every method i've tried
always waits for
Ahmed Saad wrote:
hi Sebastain,
On 7/12/05, Sebastian [EMAIL PROTECTED] wrote:
yet it waits for file to upload before error.
I've been using php for serveral years and i cant remember ever getting
this to work like the manual states.
Quoting the *php manual*
The MAX_FILE_SIZE
The phone would have to have GPS capabilities..
Ethilien wrote:
I think that would require tapping the cellphone network, which I
doubt they would let you do since it be a major violation of privacy,
because you could track the general location of anyone on their network.
Thomas wrote:
Hi
i never really used constants before so this may sound stupid..
when you define a constant using define() and want to return true/false
is this logical:
if($bars == 3)
{
define('BAR', 1);
}
then:
if(BAR)
{
// bars is true
}
or should i need to do an else statement as well:
if($bars
i know i shouldn't rely on mime types for file verification but anyways..
I use application/zip which works fine on firefox and only allows zips..
however, on Internet explorer it doesn't work since IE returns
application/x-zip-compressed for zips.. problem with this is it also
allow rar
i know how to break up db results into two tables but im having a hard
problem with this:
db structure
---
| id | cid | title
---
| 1 | 2 | hardware
| 2 | 3 | software
| 3 | 3 | software
| 4 | 2 | hardware
how can i have hardware on column 1 and software on
is it always necessary to call array() when you do something like this:
mysql_query(SELECT );
while($rows .)
{
$data[] = $rows;
}
if so, why? i have a habit of never calling array() and someone told me
i shouldn't do this.
--
No virus found in this outgoing message.
Checked by
i need to mask (hide) some vars in a url so they arent visible to the
user. example, i want a url like this:
page?id=3something=12more=12
to turn into:
page?id=3;LyFU;MLFxvy
so from LyFU i can access $something and from MLFxvy $more
any ideas how i can do this?
doesn't have to be 100%
you sure each is on its own line (\n) ?
if you're only getting a value of 1 it is likely putting everything on a
single array key..
Tom Chubb wrote:
I'm having a problem with the following code:
?php
$file = http://www.mysite.co.uk/mailing_list_database.list;;
$lines =
wrote:
When I open the list in notepad everything is on one line with a
square box character.
When I open it in wordpad, it's one email address on each line.
On 04/08/05, Sebastian [EMAIL PROTECTED] wrote:
you sure each is on its own line (\n) ?
if you're only getting a value of 1 it is likely
sorry, i forgot to put file();
Sebastian wrote:
do this:
$file = 'http://www.mysite.co.uk/mailing_list_database.list';
echo 'pre';
print_r($file);
echo '/pre';
im pretty sure you'll only see 1 key..
if each has its own line, you would see something like:
Array
(
[0] = foo
[1] = foo
im working on a comment/forum app and when a user enters too many
carriage returns i want to remove them before insert to db.
example, user input:
-snip-
[quote=user]
foo
[/quote]
bunch of extra lines
more text...
-snip-
I to change to:
[quote=user]foo[/quote]
more
, Sebastian [EMAIL PROTECTED] wrote:
[quote=user]
foo
[/quote]
bunch of extra lines
more text...
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.0/63 - Release Date: 8/3/2005
--
PHP General Mailing List (http
really need to learn some regexp.
Marco Tabini wrote:
Try changing the
\n*
patterns to
(?:\r?\n)*
Cheers,
Marco
--
BeebleX - The PHP Search Engine
http://beeblex.com
On 8/4/05 10:39 AM, Sebastian [EMAIL PROTECTED] wrote:
[quote=user]
foo
[/quote]
bunch of extra lines
more text
try using -f
mail($toemail, $subject, $message, $from, '-f [EMAIL PROTECTED]');
[EMAIL PROTECTED] wrote:
I don't seem to be able to set the return path using the mail() function. I can't figure out why from will let me set it, but not the return path.
$headers = 'From: [EMAIL PROTECTED]' .
, but Is that the only way to get a
faster solution?
/mr G
@varupiraten.se
- Original Message - From: Sebastian
[EMAIL PROTECTED]
To: Gustav Wiberg [EMAIL PROTECTED]
Sent: Saturday, August 06, 2005 11:08 PM
Subject: Re: [PHP] Fast count of recordset in php...
how many records in the table? its
i have this app where a user fills out a form and after submit it
displays the values they entered. i want to save this info to a file
after they submit, then allow them to download the file. some other user
does the same, fills in the form and allow that person to download the
file... and so
Paul Waring wrote:
On Mon, Aug 08, 2005 at 04:37:12PM -0400, Eric Gorr wrote:
Should it? Is it possible to write a doesexists.php script which would
cause the 404 directive to be triggered?
I also tried: header(Status: 404 Not Found); but this did not work either.
Try searching the
Jasper Bryant-Greene wrote:
Sebastian wrote:
Paul Waring wrote:
On Mon, Aug 08, 2005 at 04:37:12PM -0400, Eric Gorr wrote:
Should it? Is it possible to write a doesexists.php script which
would cause the 404 directive to be triggered?
I also tried: header(Status: 404 Not Found
i'd like to create a graph with the amount of downloads per hour, i am a
little confused how i should go about this.
i know i can use rrdtool/mrtg, but im looking for more 'user friendly'
graphs with custom colors,etc.
each time someone downloads a file it is incremented in the db and the
Philip Hallstrom wrote:
i'd like to create a graph with the amount of downloads per hour, i
am a little confused how i should go about this.
i know i can use rrdtool/mrtg, but im looking for more 'user
friendly' graphs with custom colors,etc.
each time someone downloads a file it is
some of my users are complaining that when they try download media files
(mp3, mpeg, etc) their media player opens and doesn't allow them to
physically download the media. These are IE users, firefox seems to like
my code, but IE refuses to download the file and plays it instead..
can anyone
James R. wrote:
That would be browser dependent, something you have no control over.
Maybe you can include a little text message saying right-click save
as for the users not intelligent enough to figure it out themselves.
- Original Message - From: Sebastian
[EMAIL PROTECTED
James R. wrote:
That would be browser dependent, something you have no control over.
Maybe you can include a little text message saying right-click save
as for the users not intelligent enough to figure it out themselves.
- Original Message - From: Sebastian
[EMAIL PROTECTED
Richard Lynch wrote:
On Wed, August 10, 2005 12:49 pm, Chris wrote:
if ($extension != 'txt')
{
header(Content-disposition: inline; filename=\$file[type]\);
}
else
{
// force txt files to prevent XSS
header(Content-disposition: attachment; filename=\$file[type]\);
}
The
Richard Lynch wrote:
On Tue, August 9, 2005 3:07 pm, Sebastian wrote:
i'd like to create a graph with the amount of downloads per hour, i am a
little confused how i should go about this.
i know i can use rrdtool/mrtg, but im looking for more 'user friendly'
graphs with custom colors,etc
Ryan A wrote:
Hey,
Having a bit of a problem working out the logic to this one (its 5am
now...),
basically people vote on pics like hotornot.com, but here they vote on
a scale of 1-5 (one being something like what was hit by a bus at birth and
five being
the person you will never have a
[EMAIL PROTECTED] wrote:
I tried this one:
SELECT trans_no
FROM orders
WHERE trans_no IN (
SELECT trans_no
FROM special_orders )
but gives me an error:
You have an error in your SQL syntax. Check the manual that
corresponds to your MySQL server version for the right syntax to use
near
take what other say with a grain of salt.. im sure you're using php to
pull info from mysql anyway..
the fact is without mysql php would be nowhere where it is today.. its
like peanut butter w/o the jelly..
see my reply in the other email.. im sure it will work for you.
[EMAIL PROTECTED]
Jochem Maas wrote:
if you haven't seen it yet and are interested in the future
of php you might be interested in the _big_ thread on php-internals
that starts with the message:
http://www.manucorp.com/archives/internals/200508/msg00398.php
IMHO every halfbaked php coder should read it ;-)
to
Matthew Weier O'Phinney wrote:
* Sebastian [EMAIL PROTECTED] :
why php6 and not php5? look how long it took to get to php4 (with php5
just starting to rolling out) and people are already talking about php6?
My observation was that more people jumped to PHP4 from PHP3 than have
so
accepted I was wrong. I apologized.
What do you want now? Sebastian wanted to help – in difference to you
and John. Even it’s “wrong place”. I guess you would never stop and
help to car in trouble on highway because you are IT or “it’s not your
department”, ha?
C’mon… It’s really not place
Matthew Weier O'Phinney wrote:
* Sebastian wrote:
i spent hundreds of hours building my site on php4,
im not about to rewrite any of it to make it 'compatible' with php5.
Don't rewrite it to make it compatible with PHP5 -- rewrite it to take
advantage of PHP5's better performance
Greg Donald wrote:
On 8/14/05, Sebastian [EMAIL PROTECTED] wrote:
now if they say php5 is 20% faster than php4 than i would upgrade
overnight ;)
Who is 'they' ? Go write a benchmark and see for yourself.
obviously coming from the developers..
i guess im more or less wanting
I will be building a new server and wondering what would be a good
choice for php/mysql/apache other than redhat.
I was thinking either Debian or CentOS. can anyone share their thoughts
on them for php environment?
does anyone use them on high traffic php sites? or is there not a
difference
Hello,
im working on an article system and looking to avoid running three queries.
example, i have this query:
SELECT id,title FROM articles WHERE id=$_GET[id]
now say $_GET[id] = 5
I would like to get the previous id 4 and the next id 6 (if there is one)
so i can do something like:
Previous
i have some php forms which uploads files/images and i would like to know if
its possible to upload them to a remote server instead, if so, how?
cheers
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ok, so i made a file manager and i need to prevent people from linking
directly to files that do not come from another part of the site.
i know i can use http_referer, but i wonder how fool proof it is, i dont
want to spit out errors to a legit user that actually came from a valid page
before
i ran into this problem and i dont remember how i worked around it.
if($_REQUEST['value'] == 1)
{
// do something
}
else if($_REQUEST['value'] == 0)
{
// do something
}
even if i don't do ?value=0 its always prints something.. i want to make an
on/off value based on the value of the url.. 1
Hi,
it appears mail() stopped working on my server. i recall it worked
previously. since i haven't used mail() in a while i dont recall when it
stopped working. running php 4.3.10
php.ini is default path for send mail which is the correct path for the
server.. anything else i should be looking
it seems the xhtml validator is throwing an error with:
--
Line 530, column 12: value of attribute id invalid: 1 cannot start a
name
div id= 1 79 style=display: none;
--
Here is the code:
i have a form with checkboxes which after POST it writes to a file.
i would like to allow the user to sort the selected checkbox filename in the
order they want it written to file.
so i was thinking creating an input text box where they can enter a number,
then have it written to file in that
i have an issue with site linking directly to my images.
the problem is these images are generated on the fly with php/gd -- they're
generated each time its viewed because i have done some watermarking
manipulation and didnt want to watermaker them in a static way. they're
including the images
i am developing a comment/discussion board and i want to display the results
in a threaded style. so far i have it all working except this one issue:
each row has an ID and a parentid, say i have 5 rows:
id : 10 most oranges come from florida
id : 16 Re: most oranges come from florida
, Sebastian said:
i am developing a comment/discussion board and i want to display the
results
in a threaded style. so far i have it all working except this one issue:
each row has an ID and a parentid, say i have 5 rows:
id : 10 most oranges come from florida
id : 16 Re: most
$recipients = '[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],';
echo str_replace(',', ', ', substr($recipients, 0, -1));
- Original Message -
From: Ross [EMAIL PROTECTED]
I have a large group of email addesses serperated by commas. I need to
trim
off the very last comma
$string = '4:gaming,5:hardware,3:software,8:security';
what is the best way to explode then loop this string after its taken apart.
output should be something like:
$id = 4
$cat = gaming
etc..
im just looking for the best/fastest way to do this. the string can grow to
200 or so bytes, maybe
when the if statement is true how do i make it appear as the last record in
the loop?
$tabarray = array('/games' = 'Games', '/news' = 'News');
foreach ($tabarray AS $loc = $item)
{
if(strpos($loc, $_SERVER['REQUEST_URI']) !== false)
{
$tabmenulist .= 'td class=tabsela
does anyone know of a way to view the contents of a zip file and its
directory structure?
i know there are zip file functions in php but they require extra libs i
would rather not load right now.
i know its possible, at least by looking at this download manager that does
this:
No releases have been made yet.
Philip Hallstrom wrote:
does anyone know of a way to view the contents of a zip file and its
directory structure? i know there are zip file functions in php but they
require extra libs i would rather not load right now.
im looking for a small tutorial/cms script without all the fluff.
something to create pages (static preferably) doesn't even need an
admin/user interface.
i could write my own, but don't have the time at the moment.
if anyone knows of such a small script let me know.
cheers.
--
PHP General
i've been doing some reading on optimizing php for fastest performance.
are there any benifts to configure php with:
--enable-inline-optimization
also running eAccelerator.
these are my current options:
--with-apache=../apache_1.3.33 \
--with-mysql=/usr/local/mysql \
--with-xml \
--with-gd \
1 - 100 of 555 matches
Mail list logo