There are a huge number of forums at php.resourceindex.com
These range from fairly basic forums such as venomboard to more complex forums such as
phpbb
Michael Egan
-Original Message-
From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]]
Sent: 26 September 2002 06:26
To: [EMAIL PROTE
hi,
can anybody help me with cookies..I read the manual of php but it came
complicated..Any basic tutorial or other something helps alot..I am trying
to make a cookie to kkep the user id in it...
thanks
meltem
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
This probably breaks the rules of the forum in that it's not really a PHP question but
I thought it might cause some amusement.
I heard a discussion on the radio last night which mentioned the new 'sport' of
extreme ironing! Sure enough they've got a web site at www.extremeironing.com
It's no
Why don't you keep you mind ahead and use session auth
bsantos
"Meltem Demirkus" <[EMAIL PROTECTED]> wrote in message
001701c26532$ba7c8c90$5583@hiborya">news:001701c26532$ba7c8c90$5583@hiborya...
> hi,
> can anybody help me with cookies..I read the manual of php but it came
> complicat
Hello,
I was wondering if i do:
function test()
{
$result = mysql_query("SELECT * FROM bigbigtable");
}
after calling test() will $result be freed as if calling
mysql_free_result()?
Elias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
look for an application called: TimeWebSheet
Elias,
"Faisal Abdullah" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi people.
> Does anyone happen to know whether there is a sample script/application
out
> there which can tell me (and everyone else in the
Hello,
As far as I've seen from your requirements, you are searching for a platform
like Krysalis is.
Krysalis does exactly this, allows you to define a sitemap to associate XSL
presentation files to dynamic XML files, in a Model-View-Controller
approach.
http://www.interakt.ro/products/
Al
Hi All,
I'm really just looking for some advice!
I am looking to build a website which users will be able to logon and have a
template based website generated for them, the output will have to be HTML
so that these sites can be indexed by search engines, it will also have to
change Apache conf f
I was using a redirect using $_SERVER['PHP_SELF'] from the previous page (a
login for a site) and it didn't include this from the url: ?aid=12.
shouldn't it? It caused a SQL error. (which I have included a catch for so
the error will be friendly)
instead of the variable to be: /co2_busters_mk2/f
Noodle Snacks wrote:
> I was using a redirect using $_SERVER['PHP_SELF'] from the previous
> page (a login for a site) and it didn't include this from the url:
?aid=12.
>
> shouldn't it? It caused a SQL error. (which I have included a catch
> for so the error will be friendly)
>
> instead of the v
Morning!
I'm having quite a dumb problem with PHP... It's probably more a result
of brain freeze than anything else, but if anyone could help it'd be
very much appreciated.
Basically, I need to include() the contents of a variable. Saving the
contents to a temporary file and then using include()
Hi,
I want to make some people download files the server tar's on demand.
But i don't know really how to send the files back to the browser.
I used the following command for taring the file:
This command starts taring, I think, but fills the browser window with the pure code
of the tar file
> I'm having quite a dumb problem with PHP... It's probably more a
> result
> of brain freeze than anything else, but if anyone could help it'd be
> very much appreciated.
>
> Basically, I need to include() the contents of a variable. Saving the
> contents to a temporary file and then using includ
Sascha Braun wrote:
> Hi,
>
> I want to make some people download files the server tar's on demand.
>
> But i don't know really how to send the files back to the browser.
>
> I used the following command for taring the file:
>
> $command = 'tar -c '.$arrResult['name'].'.tgz
> ../images/'.$arrResu
"Erwin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Noodle Snacks wrote:
[snipped]
>
> It is supposed to be like that...the PHP_SELF points to this file, and the
> filename has no arguments, thus the PHP_SELF variable don't have them
> either.
>
> You wil
Hi all,
I need to write an application that accepts a list of URLs and checks them
on a daily basis (via cron) to see if the pages have changed in the past day.
I need some help with this. Does anyone know the most optimal way to find
out when a particular Web page has been modified? I am thinki
Noodle Snacks wrote:
> "Erwin" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Noodle Snacks wrote:
>
> [snipped]
>
>>
>> It is supposed to be like that...the PHP_SELF points to this file,
>> and the filename has no arguments, thus the PHP_SELF variable don't
"Erwin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Noodle Snacks wrote:
> > "Erwin" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >> Noodle Snacks wrote:
> >
> > [snipped]
> >
> >>
> >> It is supposed to be like th
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey,
http://www.ibforums.com/
~Pauly
On Thursday 26 September 2002 01:26 am, John Taylor-Johnston wrote:
> Hi,
> I'm looking for some forum script, a bit like this:
> http://www.chevelles.com/cgi-bin/forum/Ultimate.cgi
> Can anyone post a link to som
I have a HTML form that has a session variable called $cost. Now I want to
set the value to this table data input field. Anyone know how this is
accomplished?
Thanks in advance!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
On 09/26/2002 02:11 AM, Rasmus Lerdorf wrote:
> No DB abstraction layer, including MetaBase offers true database
> abstraction. No layer will make stored procedures portable. No layer
Not that you know, of course.
> will make your fancy Oracle DECODE() query portable. No layer will
>
[snip]
I have a HTML form that has a session variable called $cost. Now I want to
set the value to this table data input field. Anyone know how this is
accomplished?
[/snip]
Ken,
You question is not too clear, but I will try to help. You want the form
element to reflect the value of $cost?
I was about to tell you to use Last-Modified Header! ;)
Well then...try to fetch the page's size and compare with last time, if
changes then regrab the page.
Elias,
"Vikram Vaswani" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> I need to write an
hey folks, don't forget quotes ;o)
I use one like this:
and it works ok.
Peace & Love
skitum
- Original Message -
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "'Ken'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, September 26, 2002 1:46 PM
Subject: RE: [PHP] Help with PH
Why can't you post to the newsgroup with [EMAIL PROTECTED]
(not that i've tried)
Justin
on 26/09/02 4:38 PM, John Taylor-Johnston ([EMAIL PROTECTED])
wrote:
> Justin,
>
>> Best advice is to post strictly to the newsgroup with a dud email address,
>
> Unfortunately, that doesn't work. I
Have installed PHP v4 on IIS 5 server, all the connectivity works fine as
for the sending but the main text variables will not come through. I think
there must be a setting I have missed somewhere? I have checked the
permissions and are set ok for the IGA can anyone help?
Thanks in advance
--
You could always use the GD image library to create an image and use
javascript to send back the coordinates of the mouse click. From the mouse
click, the javascript variables would be sent back to the server to
interpret and check for correctness.
This way they can't look at the code to find wh
Do you mean when POSTing a form?
Justin French
on 26/09/02 10:14 PM, Neil Laker ([EMAIL PROTECTED]) wrote:
> Have installed PHP v4 on IIS 5 server, all the connectivity works fine as
> for the sending but the main text variables will not come through. I think
> there must be a setting I have
Now I tried to use your script:
$_REQUEST['image'] is =
'../images/2002/09/jpg/ls006022_pettersson_johan.jpg';
It opens the download dialog again and lets me download the archive, but
it's named
download.gz (How can I change it to ls006022_pettersson_johan.gz?)
And if I open it with winrar it
Aww! Neat! That look better than the one I came up with. Thanks for your
time on this one.
Thanks,
FletchSOD
"Tom Rogers" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> Thursday, September 26, 2002, 4:45:04 AM, you wrote:
> SF> How do I encrypt t
Just dont forget that eval assumes php code, so escape from it first
using ?>
Erwin wrote:
>>I'm having quite a dumb problem with PHP... It's probably more a
>>result
>>of brain freeze than anything else, but if anyone could help it'd be
>>very much appreciated.
>>
>>Basically, I need to includ
You could cache/save the actual contents of the file, then when you read
it next time, compare it to what you saved and see if it changed. You
may want to filter out everything but what's between and ,
so you're not thinking it changed just b/c of something in the
headers...
---John Holmes...
>
Look at phpnuke, or any other website management project
Research and Development wrote:
> Hello. Has anyone noticed that some sites can display a list of users
> currently looking at their site? I would like to see the code to do
> such things.
>
> Thanks in advance.
>
>
--
PHP General Mai
Simply make your own php module.
Anna Sotnichenko wrote:
>Hello All!
>
>I want to transfer a PHP script with minimum changes from IIS under Win2000
>to Unix. My ISAPI PHP script calls some external C-functions through PHP
>W32api extension.
>Is there a way to call external C-function from PHP-sc
> Now I tried to use your script:
>
> $_REQUEST['image'] is =
> '../images/2002/09/jpg/ls006022_pettersson_johan.jpg';
>
> Header('Content-Type: application/x-gzip');
> $command = 'tar -cf - ../images/' . $_REQUEST['image'] . ' | gzip -
> cf'; system( $command );
> ?>
>
> It opens the download di
$d=opendir('/home/');
while($u=readdir($d)) {
if($u!='.' && $u!='..' &&
(fileexists('/home/'.$u.'/public_html/index.html') ||
fileexists('/home/'.$u.'/public_html/index.php') ... more index files)) {
echo ..link..;
}
}
untested
Bryan Koschmann - GKT wrote:
>Hi,
>
>I need to do someth
Hope the sites have no banners :), they change all the time
John Holmes wrote:
>You could cache/save the actual contents of the file, then when you read
>it next time, compare it to what you saved and see if it changed. You
>may want to filter out everything but what's between and ,
>so you're
Marek Kilimajer wrote:
> Hope the sites have no banners :), they change all the time
But the URL to the banners will be the same, so that's no change in the HTML
code ;-))
> [SNIP]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
When we are at it let's don't forget htmlspecialchars
skitum wrote:
>hey folks, don't forget quotes ;o)
>
>readonly>
>
>I use one like this:
>readonly>
>and it works ok.
>
>Peace & Love
>skitum
>
>- Original Message -
>From: "Jay Blanchard" <[EMAIL PROTECTED]>
>To: "'Ken'" <[EMAIL PR
Yeah sorry about that.. It happens where I just hit reply and forget to add
the mail list address :-(
Oops.. hehe
--oOo---oOo--
Julien Bonastre [The_RadiX]
The-Spectrum Network CEO
[EMAIL PROTECTED]
www.the-spectrum.org
--oOo---oOo--
- Original Me
Seems to work not that bad, but I got another Question.
Why isn't there anything in the archive?
This is my code yet:
I did put away the gzip routine couse I find it a little nerving if i always
have to open
two files ;)
The source pictures size is 406 KB, the download is about 340 KB in si
[snip]
When we are at it let's don't forget htmlspecialchars
skitum wrote:
>hey folks, don't forget quotes ;o)
>
>readonly>
[/snip]
Well now we have gone too far! :^] In the original post the variable was
$cost. But let's not forget addslashes() or stripslashes(), unless, of
course, magicquo
> -Original Message-
> From: Daren Cotter [mailto:[EMAIL PROTECTED]]
> Sent: 25 September 2002 20:11
I know your real problem has been solved, but this might save you from wasting time
inspecting the wrong line of code one day:
> There isn't even a line 3 in the script:
Errr...
1
Sascha Braun wrote:
> Seems to work not that bad, but I got another Question.
>
> Why isn't there anything in the archive?
It works in here (just tested it), I don't know why it's empty (don't stop
reading here!!! :-) )
>
> This is my code yet:
>
> Header('Content-Type: application/x-tar');
> H
Yes in Flash 5, basic variables for the input text fields and the correct
script in the .php file, I just don't know what it could be at the moment.
"Justin French" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Do you mean when POSTing a form?
>
> Justin Fren
Hi all,
I am new here and I would be really happy if someone could have a look =
on the following question:
I have a question concerning a connection with a LDAP server via SSL.
What I=B4ve found is:
To use ldap_connect to connect via SSL to your LDAP server, you must use
the following:
ldap
Ok, somebody told me, the archive contains the Image, only winrar seems not
to show the image, grrr.
I tried the gzip method and it did not work that fine for me.
> Sascha Braun wrote:
> > Seems to work not that bad, but I got another Question.
> >
> > Why isn't there anything in the archive?
>
Sascha Braun wrote:
> Ok, somebody told me, the archive contains the Image, only winrar
> seems not to show the image, grrr.
;-))
That's why...i did see the image too!
> I tried the gzip method and it did not work that fine for me.
Hmz...too bad, because you will get smaller downloads then (use
Do you know how to exclude the path informations in the tar archive?
> Sascha Braun wrote:
> > Ok, somebody told me, the archive contains the Image, only winrar
> > seems not to show the image, grrr.
>
> ;-))
> That's why...i did see the image too!
>
> > I tried the gzip method and it did not wo
Sascha Braun wrote:
> Do you know how to exclude the path informations in the tar archive?
Yes, first chdir to the ../images directory
http://www.php.net/getcwd
http://www.php.net/chdir
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
Y'know? I started fiddling with the drill-down I had
made and found that the thing only worked on the
latest Mozilla. Seems the developers made the same
mistake I did in what is
supposed to do. Looks great on one browser :-)
I wound up with another alternative: a folder view
with "wayback's"
I'd start by making sure you can get a standard HTML for to POST to a PHP
script, rather than making issues complex with Flash.
If that works, then you know it's not an issue with the installation, in
theory.
Justin
on 26/09/02 11:30 PM, Neil ([EMAIL PROTECTED]) wrote:
> Yes in Flash 5, basi
Same with sites that have negligible daily changes (like today's date
dynamically inserted), or random changes (a random quote, tip, stock quote,
product, image, etc etc would all screw that up).
Justin
on 26/09/02 11:03 PM, Marek Kilimajer ([EMAIL PROTECTED]) wrote:
> Hope the sites have no b
php-general Digest 26 Sep 2002 14:24:04 - Issue 1608
Topics (messages 117665 through 117728):
Re: replacing literal " in string
117665 by: Tom Rogers
Re: Configure php for windows
117666 by: Uma Shankari T.
117668 by: Khalid El-Kary
Example script : Employee schedu
IT'S WORKING, GOOD DAMN, IT'S WORKING!
Yo, this was a really hard Job, if I look at the working snipped below!
Ey man, this was the second Time you helped me out,
Thanks alot. You are really a great PHP Guru I believe.
So, if my page is finished you will be one of the first Persons
to watch
to test this try returning $result from the function
e.g.
function test()
{
$result = mysql_query("SELECT * FROM bigbigtable");
return $result;
}
echo(mysql_numrows(test()))
remember $result holds a number that is a pointer to the result set
resource, it isn't the actual result data set, if
Hi all
I am brand new to PHP, I have a friend that develops in it and I'm
interested in learning more about it. I am familiar with VB at the moment
and that's about it, but I'm always willing to learn!!
What do I need to get developing using PHP? I want to develop completely on
my machine rather
Welcome Steve,
You'll need to do two things to get started, download apache and php for
windows, and configure 2 files - httpd.conf (apache), and php.ini. A good
tutorial can be found here :
http://softwaredev.earthweb.com/script/article/0,,12014_912381,00.html
After that create a .php file in
read the install section of the PHP manual at www.php.net and then read
the tutorial.
Adam
On Wed, 25 Sep 2002, Sauron wrote:
> Hi all
>
> I am brand new to PHP, I have a friend that develops in it and I'm
> interested in learning more about it. I am familiar with VB at
I went through a load of forum systems recently that I found on
www.hotscripts.com, but none of them had what I wanted - In the end, I used
the bare-bones forum system in 'PHP & MySQL Web Development' by Welling and
Thomson and added:
- My own existing login system (I was integrating forums into
Hi all.
i was wondering if it is possible to use PHP to retrieve a remote file and
then write a copy to my own server for quicker access?
--
Cheers
-
Simon Angell
Canberra ACT
www.canberra-wx.com
-
Hi All,
I've been playing with parsing RDF/XML files using PHP (code snippet
below). However I'm having trouble trying to work out how to actually
format the results in an order. My source is in the form
Politicizing Science
http://slashdot.org/article.pl?sid=02/09/17/0349219
Now I could easi
While were on the subject what about retreiving a web page and images
based on URL?
Ed Curtis
On Fri, 27 Sep 2002, Simon Angell wrote:
> Hi all.
> i was wondering if it is possible to use PHP to retrieve a remote file and
> then write a copy to my own server for quicker access?
>
> --
> Che
Hi everybody out there,
my name is Christopher (loc:germany), and i'm new in here.
My actual pain is:
I expecting
to print something like "00:05:00".
The two given timstamps, differing (e.g.) five minutes, wich is 300
seconds, print this instead: "01:05:00".
Whatever I try, the result alwa
Sauron,
Since you're running Win2K, then you can use IIS already installed instead
of Apache. I use Win2K Server, with IIS, PHP 4, and mySQL on my local box,
and it works just fine.
Peter
At 10:55 AM 9/26/2002 -0400, Steve Bradwell wrote:
>Welcome Steve,
>
>You'll need to do two things to g
I have my own login system - which authenticates against a MySQL database
and then uses sessions to keep track of logins. It registers a session
variable for last access time, and logs access to pages in a separate table.
Then I can do things like this:
function currently_active_users(){
> -Original Message-
> From: Christoph Siefer [mailto:[EMAIL PROTECTED]]
> Sent: 26 September 2002 16:16
>
> I expecting
>
>
> $timestamp = ($now - $five_minutes_ago);
> print date(H:i:s, $timestamp);
>
> ?>
>
> to print something like "00:05:00".
>
> The two given timstamps, differ
Of Course!
You can use the fopen functions or curl functions depending on what and how
you want to manage the data once you get it.
Look at the manual in both of these sections and it will show you how to do
it.
BTW: What you are talking about doing is building a caching webserver.
Apache can
List,
Here's the bugs:
http://bugs.php.net/bug.php?id=19460
http://bugs.php.net/bug.php?id=19554
It's related to mbstring, Apache 2.0.40 and PHP 4.2.3 you can get the
latest snapshot or you can follow instructions below
The issue was with the --enable-mbstr-enc-trans configure
opt
On 26 Sep 2002 at 1:26, John Taylor-Johnston wrote:
> Hi,
> I'm looking for some forum script, a bit like this:
> http://www.chevelles.com/cgi-bin/forum/Ultimate.cgi
> Can anyone post a link to something useful?
I know a couple of webmasters who are using and like
http://www.phpbb.com/
I've n
Hi guys,
I am trying to make a script which will automatically put in the first 4-5 numbers of
a mobile number depending on which mobile connection the user hasbut since i do
not live in the states I would appreciate any help you can give me..
To call here from outside Stockholm,Sweden(my
Yeah, true. Maybe you could just ereg() out the content. Each url would
need it's own ereg, though, so it won't be as easy to set up.
But, technically, if the quote changes, then the page has been updated,
even if it's dynamic. How do you define "updated"??
---John Holmes...
> -Original Mes
Hey,
> It used to be that 07xxx = vodafone ... and 07yyy = orange - but now it
> could be anything.
DAMN, that sounds bad, any fixed numbers in the UK atleast?
My cousins number is +44 79320- so that could be any company right?
I am not just trying to do the states, any location..trying
Hi. I've scoured the net, posted tons of forum threads, tried everything. I
simply cannot get this to work, yet it should be so simple.
I recently had our Admin guy install PHP as a CGI-binary on a Unix system.
Apache 1.3.2 is also installed.
He didn't install PHP as a Apache module because the
I have been working to try and have flash MX use PHP to access a database
but have been having issues with retrieving the post values in php.
http://127.43.1.1/learning/checkpassword.php?password=somepassword&username=
MyUserName
the list as replies asking you to confirm your email before allowing the post, this
was brought in to stop people spamming the lists.
so to post you need a subscribed email or a confirmed email.
Paul Roberts
- Original Message -
From: "Justin French" <[EMAIL PR
Hi,
I am connecting to a mysql server on a remote machine, and opened up port 3306 for
this purpose. But, I am concerned about sending a clear text password, via the
mysql_pconnect() call. My question is, what is the procedure for connecting to a
remote server with an encrypted password? Or,
> I am connecting to a mysql server on a remote machine, and opened up
port
> 3306 for this purpose. But, I am concerned about sending a clear text
> password, via the mysql_pconnect() call. My question is, what is the
> procedure for connecting to a remote server with an encrypted
password?
> Or
Maybe you could somehow setup your SSH tunnel before-hand
(at server start up or something) and use that instead.
Adam Voigt
[EMAIL PROTECTED]
On Thu, 2002-09-26 at 12:40, John Holmes wrote:
> > I am connecting to a mysql server on a remote machine, and opened up
> port
> > 3306 for this purpos
Hi,
Is there any way of taking a snapshot of the current memory usage of a
script? I tried the getrusage() function, but the PHP version doesn't
seem to support all the options of the systems getrusage() system call.
What I would like to do is take a snapshot of the memory usage before and
after
I'm trying to write a function that will display the full contents of an
array. If one of the keys contains a value that is an array, the full
array (all indices) should be shown.
As an example, given the following definitions:
$Arr1[1] = "Apple";
$Arr1[2] = "Banana";
$Arr1[3] = $Arr2[];
$Arr
Yes. my idea is to use:
echo "";
print_r($array);
echo "";
"Brad Harriger" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm trying to write a function that will display the full contents of an
> array. If one of the keys contains a value that is an array, t
go look at the tutorial for using php with flash to retrieve variables from
a database. it's pretty self explanatory and clear in how/what to do.
-Original Message-
From: Joshua Patterson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 10:35 AM
To: 'PHP'
Subject: [PHP] Looki
On 26 Sep 2002 at 10:35, Joshua Patterson wrote:
> I have been working to try and have flash MX use PHP to access a
> database but have been having issues with retrieving the post values in
> php.
> http://127.43.1.1/learning/checkpassword.php?password=somepassword&usern
> am e= MyUserName
> //
Thank you for your help it seems that Macromedia in there support document
is a little confused about php or I need a new brain. (points to option
number 2)
the Macromedia document can be found at
http://www.macromedia.com/desdev/mx/flash/articles/flashmx_php02.html
-
Hi all,
Is there a really thorough tutorial on the use of
session variables? Seems like there are a zillion
options to choose from, lots of interdependent
settings, etc, and I'm a bit confused on how to make
it work.
I try not to use session objects too much in any
language as it makes the code
Hello;
I'm using PHP 4.2.3 on a Solaris 2.8 (Sparc) system.
I've been having some difficulties getting PHP-Nuke 6.0 to work for me.
I eventually narrowed the problem down to incorrect results from calls
to file_exists(). It seems that file_exists() is having trouble finding
an existing file w
Hi!
Someone knows why is this returning 1969-12-31 ???
$day = 13;
$month = 10;
$year = 2002;
echo date("Y-m-d",mktime (0,0,0,$month,$day,$year));
And MySQL also does the same when I insert '2002-10-13' in a date field!!!
::: R o d r i g o M e u r e r
[EMAIL PROTECTED]
B a s e 5 1 - W
You could use recursion example:-
function printArray($arr) {
for ($i =0; $i < count($arr); $i++) {
if (!is_array($arr[$i])) {
echo $arr[$i];
}
else {
printArray($arr[$i]);
}
}
}
$arr = array("Orange", "Peach", "Apple");
$arr2 = array("Banana"
Hi all,
When using Apache web server, with php module, I can intermix between HTML
code and PHP. But when using PHP as CGI (in other web server, eg. OMNI), as
far as I know, I have to write all HTML code using either echo or print
statement, right? Is there a better way to do this?
The proble
The module and CGI will work the same. Just put your PHP where you need it
within the HTML.
---John Holmes...
- Original Message -
From: "Reuben D. Budiardja" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 26, 2002 3:27 PM
Subject: [PHP] Echoing HTML in PHP as CGI
You can use this code:
print <<< EndOfHTML
put all html in here even with "
EndOfHTML;
This will print out all html. and dont care about special signs.
goodluck.
Martin
"Reuben D. Budiardja" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi all,
When using
Debbie,
Yes. I could use recursion, but what's really hanging me up is keeping
track of how deep into an array I am. It should be fairly simple, but I
seem to be having a brain freeze.
Brad
Debbie_dyer wrote:
> You could use recursion example:-
>
> function printArray($arr) {
> fo
I've been hunting all over to find a script that will just list a
directory. I don't need a full feature file system manager just something
I can list files and choose to delete a file if I wish. Where would I find
this.
TIA,
Ed
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
Use a static variable in the function? A static var retains its value
between function calls
function printArray($arr) {
static $depth = 0;
for ($i =0; $i < count($arr); $i++) {
if (!is_array($arr[$i])) {
echo "$depth $arr[$i]";
}
else {
$depth++;
PHP is automatically rewriting the URLs for the tags specified in
url_rewriter.tags (php.ini) because the session cookie has not been
accepted. I found it best to remove these tags and append the SID manually
to the URLs that need it for when cookies are off - else SIDs can get
appended where you
http://www.php.net/manual/en/function.opendir.php
-Kevin
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 26, 2002 1:58 PM
Subject: [PHP] Simple directory listing
>
> I've been hunting all over to find a script that will just list a
> di
print_r($array); simply print out the entire array..
It cant be easier.
"Debbie_dyer" <[EMAIL PROTECTED]> wrote in message
01bf01c26598$1d84ec00$0100a8c0@homepc">news:01bf01c26598$1d84ec00$0100a8c0@homepc...
> Use a static variable in the function? A static var retains its value
> between functio
I'm just starting to use PHP with mySQL, and I have a few basic
questions. I've successfully created a mySQL database on my local
machine, was able to create tables and populate them (from the command
line), query it with php from the browser, etc - no problems there. Now
I need to create one on
Hello,
I need help I never programmed in php. :/
I have a firewall with proxy. Now a put a webcam behind the firewall. If put
the external_ip i see the cam, if i put the internal_ip i see the cam. Now i
made a web page with code below
Nova pagina 1
test">tes
1 - 100 of 148 matches
Mail list logo