***
Please reply directly or I'll likely miss the reply in the digest
***
Hello,
I am attempting to compile php 4.0.4pl1 as a dynamic shared module
for Apache 1.3.12 on a Redhat 6.2 box. I followed the detailed
directions, and upon attempting make install it went along fine,
until...
*snip*
"p" == php3 [EMAIL PROTECTED] writes:
Addressed to: "Kenneth R Zink II" [EMAIL PROTECTED]
[EMAIL PROTECTED]
** Reply to note from "Kenneth R Zink II" [EMAIL PROTECTED] Wed,
21 Feb 20= 01 11:42:28 -0600
--=3D_NextPart_000_00AC_01C09BFB.5E254010 Content-Type:
text/plain;
Addressed to: Jack Davis [EMAIL PROTECTED]
[EMAIL PROTECTED]
** Reply to note from Jack Davis [EMAIL PROTECTED] Wed, 21 Feb 2001 14:58:13
-0600
We have designed a web based email program that we have
recently found a problem with...If you open up two email
accounts in two
Jan Grafstrm wrote:
Hi!
I am trying to change a filename this is my php:
?
change $filename = "yourfile.php3.xml";
to $filename = "yourfile2.php3.xml";
?
It doesnt work do I need some more code to get it working, something
like fopen?
Thanks for any help.
Regards
Jan
use isset($action1) and isset($action2) to test each.
the nice way to do it would be for them to have the same name but different
values as you would do with alternative submit buttons, but I haven't ever
needed to find out how to do that and doesn't seem to be quite that simple.
Tim
?php
$data = "trtdItem3/tdtdItem3 Has Changed/td/tr";
eregi("trtd([^]+)/trtd([^]+)/td/tr", $data, $regs);
echo $regs[1]; // "Item3"
echo $regs[2]; // "Item3 Has Changed"
?
Oops sorry, that fourth line should say:
eregi("trtd([^]+)/trtd([^]+)/td/tr",
a quite neat (though maybe no more efficient) way would be ...
$keys = array_keys($HTTP_POST_VARS);
$key_list = array();
foreach($keys as $fred)
{ $key_list() = $fred."='".$HTTP_POST_VARS[$fred]."'";
}
$updateString=$updateString.implode(",", $key_list)."'";
... I haven't tested the
Hi...
I have a file, say temp.txt. It's just a kind of logging file. When my
system write one line data to this file, is there any real time way to know
this event from php (or other scripting language) ?
TIA
-toto-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
Anybody know of an offshore dedicated web server hosting companies?
randy
--
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]
I [EMAIL PROTECTED] wrote:
It seems the pgsql_session_write() function is not even being invoked.
Here it is:
As a followup, it seems that turning register_globals "on" allows the
pgsql_session_write() function to be called, and my test script works
if I replace $HTTP_SESSION_VARS["count"]
At 5:54 PM +0100 2/21/01, Sebastian Stadtlich wrote:
writing an apache module that did the following:
When a file with .pdf is asked for it looks to see if the user is
currently in a session (aka 'logged on'). I'm guessing the module can
know this by using the HTTP headers. Figuring we
-Original Message-
From: Mike Tuller [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 12:01 AM
To: Michael Stearne; Sam Goin
Cc: php mailing list
Subject: Re: [PHP] PDF Problems
If anyone knows how to fix this please let me know.
In fact the Maintainers of the
People
I tried to check if teh field has set a vaule in it before submit using isset with the
sniplet below
if ((isset($AgeChild))=="false") {
$AgeChild = "NA";
}
The resule is that it always displays NA whether or not it has vaule in the field,
what is the correct way of using isset for this
[PHP] isset()yes, it is the var from the form
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"
- Original Message -
From: Thiva Charanasri
To: 'Jacky@lilst'
Sent: Thursday, February 22, 2001 3:59 AM
Subject: [PHP] isset()
People
I tried to check if teh field has set a vaule in it before submit using isset with
the sniplet below
if ((isset($AgeChild))=="false") {
$AgeChild = "NA";
}
if you removed the quotes around "false" it should work (as currently
"false" is being treated as a string) but another way
On Wednesday 21 February 2001 17:09, Chris Lee wrote:
dspimage.inc
?php
[...]
index.php
?php
echo "
img src='include/dspimage.inc?product_id=123456'
";
?
Note: better name that to dspimage.php, as webservers typically don't
execute *.inc
--
Christian Reiniger
LGDC
steinm Thu Feb 22 01:38:59 2001 EDT
Modified files:
/php4/ext/hyperwave hw.c
Log:
- took out the HwSLS_FETCH to make it compile again on Unix
Is this really neccesary at this point?
Index: php4/ext/hyperwave/hw.c
diff -u php4/ext/hyperwave/hw.c:1.76
On Wednesday 21 February 2001 18:13, Janet Valade wrote:
Previously on this list, there have been questions about the Warning:
page has expired problem. When you submit a form, then press the back
button, you get this message and have to press refresh before the page
will redisplay.
I have
Hi,
I wondered if anyone knew what would be the better method to use to see if a file has
been sent/uploaded?
method 1:
if ($HTTP_POST_FILES['file']['name'] != "none" $HTTP_POST_FILES['file'] != "") {
method 2:
if (@$fp = fopen($HTTP_POST_FILES['file']['tmp_name'],"r")) {
method 2 seems to
On Wednesday 21 February 2001 20:11, Hrishi wrote:
On Thursday 22 February 2001 00:12, Brandon Orther wrote:
Hello,
I am trying to finish up a script with instructions on how to add my
banner add script to someone's .phtml file. I need to print ?
readfile(""); ?
use :
echo '?
On Thursday 22 February 2001 00:04, Simon Garner wrote:
I have a database of numbers:
TOTAL HITS: 1000
PAGE 1: 500
PAGE 2: 250
PAGE 3: 250
How can I query these numbers and display back a percentage number?
For instance with the numbers above:
PAGE 1: 50%
PAGE 2: 25%
Better (if it works):
SELECT (hitcount / MAX(hitcount)) * 100 AS percentage FROM sometable
Nope unfortunately that does not work :(
Firstly using MAX() will not work as that finds the largest value in the
group; SUM() would be more appropriate as it finds the total for that column
in the
You should escape your backslashes in windows file pathes
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Christian Reiniger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday,
yeah, you can just fputs() an empty string in it and close the file.
In this way you'll empty it all.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Tim Ward [mailto:[EMAIL
what I think you've missed is your array starts with []['string']
remove []...
$menu['name'] = ... should work ... unless your code is a little specific
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
strange .. should work ...
try it again ... search for some HTML errors and see if in your PHP file
there's HTTP_GET_VAR, if is there then change the _GET_ into _POST_
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
HTTP_REFERER work ONLY clicking a link which brings you to a page in the
SAME window.
this value comes from your browser and it is very unreliable
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original
you made a comparison in your code. it returned true which is 1.
what are you trying to do anyway? if you want to compare and print it only
if it's yes then do:
$confidential = 0;
echo "$confidential " . $confidential ? 'yes' : '';
Sincerely,
Maxim Maletsky
Founder, Chief Developer
If the result is always something, for instance in the worth case it is
'N/A'
then do:
if($AgeChild != 'N/A')
you can continue
isset check if the variable has at least a byte in it.
so this will return true:
$var = ' ';
if(isset($var))
echo 'got something in it';
Just check
from PHP - now, but you can set a script which will check the file size each
minute and if finds it different does something.
It will have to run under cron.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
Hi,
how can I determine size of directory with subdirectories? if I see
at "ls -l" it returns directory size 4096. I want to know how large
is directory (with files into) without looping all files ...
thanx,
--
Andris
mailto:[EMAIL PROTECTED]
--
PHP General Mailing List
stasThu Feb 22 02:36:41 2001 EDT
Modified files:
/php4/ext/standard string.c
Log:
Safer bin2hex
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.189 php4/ext/standard/string.c:1.190
--- php4/ext/standard/string.c:1.189Sun Feb
Are you trying to create images or just display
images? If you're trying to create images using GD,
you'll need to check the version of GD you have
installed. If you have a newer version or don't have
it installed at all, you won't be able to use that
functionality. If you're trying to display
You only have the module globals during requests (rinit/rshutdown). You
can't access them in module init/module shutdown.
Andi
At 11:35 PM 2/20/2001 +, Emiliano Heyns wrote:
emile Tue Feb 20 15:35:35 2001 EDT
Modified files:
/php4/ext/midgard midgard.c
Log:
Because thread-wide globals are only available when you're actually in the
thread (during a request) and not when the process starts up. If you need
true globals you can just use globals.
Andi
At 12:34 PM 2/22/2001 +0100, Thies C. Arntzen wrote:
On Thu, Feb 22, 2001 at 01:26:45PM +0200, Andi
Yes. It will call your init_globals just in time, usually on your first
access to the data if I remember correctly. Your fix is correct. I didn't
see it when I sent that Email.
Andi
At 12:37 PM 2/22/2001 +0100, Emiliano wrote:
Andi Gutmans wrote:
You only have the module globals during
php-general Digest 22 Feb 2001 13:57:11 - Issue 527
Topics (messages 41087 through 41146):
Re: pop textarea field w/ text incl. quotes
41087 by: Simon Garner
41091 by: Paul Warner
41092 by: John Monfort
41093 by: Simon Garner
41094 by: Simon Garner
Hello
I tried to used PHP with autentification
I wrote script, but I had got error :
Fatal error: Call to undefined function: pam_auth() in
/usr/home/httpd/html/farm/dev/test/user.php on line 2
I read some FAQ and I found the answer:
For some reason, newer version of php4 do not always
Try using the PNGs instead. They can get very small with good results.
-Original Message-
From: jason cox [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:39 PM
To: Ana Carolina Blanco Abascal
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] No GIF support in this PHP
BTW when it sleeps PHP takes up no noticable resources. Also I'm running the
php binary to send out these messages (that way I can use screen and make sure
that my browser doesn't crash, os freeze, etc.)
--Joe
On Fri, Feb 22, 2002 at 03:36:33PM +0800, Arnold Gamboa wrote:
thanks for the
If you are running linux try
du -shc /path/to/directory
If you are running some other unix flavor, omit the -h and try -k
Robert Zwink
http://zwink.levitate.org
-Original Message-
From: Andris Jancevskis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 6:29 AM
To: [EMAIL
1.) sleep() is in seconds - plain old seconds - so sleep(300) == 5 minutes.
2.) yes - send, sleep, send, ...
--Joe
On Thu, Feb 22, 2001 at 11:09:05PM +0800, Arnold Gamboa wrote:
hi,
thanks again. questions:
1. sleep(300) would mean pause by 300 mins, right? That's why i thought you
Hi there,
I am implementing a search function on a site that we are working on. We
have created a script that will search through the contents of a page and
looks for matches etc. It works well but will get slow on a large site.
Does anybody know a tutorial or info on how to create an
Cool, Hrishi.
Can you make it work if you use a different url? For example, for SSL
connections like:
https://www.secure-website.net/~mydomain
I'm thinking of using something like this:
$spos=strpos($SCRIPT_FILENAME, "/public_html"); // or whatever the name of the
public root dir
$firstpath
I've just done some testing and the "Image" type input doesn't seem to pass
its anem across as a variable at all when the form is submitted in the way a
submit button does. This is contrary to the w3c html specs. I've tested this
in nutscrape and micros**t ie5.
this is the code that doesn't
FreeTDS is used to provide Sybase and MSSQL-specific TDS protocol
instructions to the databases. ODBC is a different protocol (from my
understanding).
If you're trying to use ODBC stuff, you need an ODBC driver. I think FreeTDS
might have this/allow this, but I don't think it's intended to do
I' m searching a way to programmatically alternate 2 schedules each sunday
at 00:00. Schedule1 start on first sunday and seven days later, schedule2 replace
schedule1,and seven days later, schedule1 replace schedule2 etc...
Waiting...
John
chagenbuThu Feb 22 08:01:15 2001 EDT
Removed files:
/php4/pear/Mail SMTP.php Sendmail.php
Modified files:
/php4/pear Mail.php Makefile.in
/php4/pear/Mail sendmail.php smtp.php
Log:
factory-generated classes have
On Wed, Feb 21, 2001 at 05:48:50PM -0500, Jaxon wrote:
Is there any way to take an image from the filesystem, say a .jpg or .png,
and display it in a different orientation? e.g. 20 degrees to the right?
Yes, php_imlib can do image rotations.
http://mmcc.cx/php_imlib/
Hello,
I need to write a file and upload it to a ftp. Is there a way to upload
without making a temp file? Like making a text file on the server and
writing to it?
Thank you,
Brandon Orther
WebIntellects Design/Development Manager
[EMAIL
Don't store your object in the session, that is just bad design.
Store a lookup value, then grab your object from your DB only when you
need it.
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
- - - -
Why is this good design?
If I create a user object, populate it, kill the connection to the database
(or return it to the pool) and cache the object then I can retrieve it any
time I want without having to hit the database.
Not arguing, just curious as to your perspective.
Cal
I install a new system RH6.2 width some updates the kernel is a 2.2.17-14
I use Apache 3.1.14 whit PHP 4.0.4pl1 compiles as a module.
I use a test page that is very simple to check sessions:
?php
session_start();
if( !isset( $c)) {
session_register("c");
$c = 1;
}
echo $c . "br";
?
a
I stand firm on strlen() for the following reasons ...
if(!$var) will sometimes act strangely (has for me in the past) when variables
are set to something other than what you are expecting.
if(isset($var)) will return true if your text field is declared but not filled
in.
if(empty($var)) will
At 19:07 22.02.2001, Joe Stump said:
[snip]
I'll take an extra bazillionth of a second to know for sure
I have what I need
[snip]
Do you really know _how_ right you are?
g
...ebird
O Ernest E.
Hi!
i have a problem!
i send a variable from one page to another page using post method!
but when a variable is like composed of two words , the other page receives
only the first word !
can u please help?!
Thanks
_
Get Your
When selecting a value from a dynamically generated list box, the subsequent
value passed to the table truncates when
there is a blank in the string
Here is the table structures (Mysql database)
First table has variable course_name (varchar -- length 50)
This database will be used to generate
Hi -
How can/should I contact the developers of PHP
to request that they add a new feature to PHP?
Thanks -
Jim
--
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,
Where can I find some help, how to make use page templates on my
webpages??? Needs this some add-ons to my PHP3(Linux-main)/PHP4(win98+pws)?
THNX
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
I want to assign a value using the url however the value contains both a ?
and an so PHP (or the browser) seems to get confused.
Here's an example:
http://www.mysite.com/index.php?id=23url=http://www.anothersite.com/file.ph
p?qid=234forum=4
Everything after url= should be the value of $url
URLs must be encoded if they contain special characters (and should be
encoded always). See urlencode().
-jm
-Original Message-
From: Tom Harris [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 11:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Passing values containing a ? and
At 20:11 22.02.2001, Tom Harris said:
[snip]
I want to assign a value using the url however the value contains both a ?
and an so PHP (or the browser) seems to get confused.
Here's an example:
Hi,
I moved my server, changed the IP addresses, etc., and now I'm having
strange problems with PHP. Not on all scripts, just some. Scripts that
worked just fine before I moved it. Most notably, I'm working with Phorm
http://holotech.net and I can no longer pass certain variables. Again:
On Thu, Feb 22, 2001 at 06:36:06PM -, kaab kaoutar wrote:
i have a problem!
i send a variable from one page to another page using post method!
but when a variable is like composed of two words , the other page receives
only the first word !
can u please help?!
Look at the form that you
May some suggest a kick ass book on php?
Thanks a lot for your time and cooperation.
best regards,
Gustavo Rios
PS: Any one here from Brazil/South America ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
I'm using the file command, which reads an entire file and sticks it into an
array. I'm trying to read a file from mp3.com, and what I get back is
basically that the connection is refused. Doesn't it just load it up like
any browser would load it? Is there an equivalent command that wouldn't try
hholzgraThu Feb 22 10:35:23 2001 EDT
Modified files:
/php4/tests/strings 003.phpt
Log:
removed LC_* warnin
Index: php4/tests/strings/003.phpt
diff -u php4/tests/strings/003.phpt:1.1 php4/tests/strings/003.phpt:1.2
--- php4/tests/strings/003.phpt:1.1
I'm seeing various posts to mailing lists in the past on this subject, but
there doesn't appear to be a fix. I'd love it if one of you can help out.
We're running PHP 4.0.0 and Apache 1.3.12 on Solaris 7. PHP runs fine with
99 VirtualHosts, but when we add our 100th, every site on the server
It could have to do with the register_globals setting (within php.ini)
as the following :
?php
// foo.php?fruit=apple
echo $fruit;
?
Will print nothing if register_globals is off. The following will
print it correctly, whether on or off (assuming track_vars is on) :
?php
//
I need to combine two variables which are set to two form field values and
will be put into $from of mail(). Should it be $from = "$varOne . $varTwo"
?
also a way to make
if(.something)
(eregi("blah", $one)("blah2", $two)("blah3", $three));will this
work?
"PHP Developers Cookbook" is my favorite, it and many others are listed
here :
http://www.php.net/books.php
The WROX books are popular. Also, check out the archives for previous
discussions :
http://marc.theaimsgroup.com/?l=php-generalr=1w=2q=bs=book
Regards,
Philip Olson
rasmus Thu Feb 22 10:37:33 2001 EDT
Modified files:
/CVSROOTcvsusers gen_acl_file.m4
Log:
doc account for Dmitry Tkatchenko
Index: CVSROOT/cvsusers
diff -u CVSROOT/cvsusers:1.215 CVSROOT/cvsusers:1.216
--- CVSROOT/cvsusers:1.215 Thu Feb 15
rasmus Thu Feb 22 10:40:02 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Doc account for Lucas Rocha
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.88 CVSROOT/avail:1.89
--- CVSROOT/avail:1.88 Tue Feb 20 10:23:17 2001
+++
How may i prevent my users from reading others php scripts?
--
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]
I need to combine two variables which are set to two form field values and
will be put into $from of mail(). Should it be $from = "$varOne . $varTwo"
?
Check out :
Using Strings :
-
rasmus Thu Feb 22 10:47:54 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Doc accounts for Juhyon Kim and Luiz Augusto Gonçalves Flores
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.90 CVSROOT/avail:1.91
--- CVSROOT/avail:1.90 Thu
Encode them, or set filesystem permissions in such a way (suggest using
groups) to allow apache to read files but not other users.
For instance, if your users are all members of the users group, and apache
runs as nobody, then set your files to be owned by the user with the nobody
group (chown
rasmus Thu Feb 22 10:51:03 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Doc account for Ernani Joppert Pontes Martins
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.91 CVSROOT/avail:1.92
--- CVSROOT/avail:1.91 Thu Feb 22 10:47:54
rasmus Thu Feb 22 10:53:52 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Doc account for Arne Blankerts
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.92 CVSROOT/avail:1.93
--- CVSROOT/avail:1.92 Thu Feb 22 10:51:03 2001
+++
rasmus Thu Feb 22 10:56:53 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Doc account for Carlos Eduardo Vargas Miranda
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.93 CVSROOT/avail:1.94
--- CVSROOT/avail:1.93 Thu Feb 22 10:53:51
rasmus Thu Feb 22 10:59:40 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Doc account for Adonias Malosso
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.94 CVSROOT/avail:1.95
--- CVSROOT/avail:1.94 Thu Feb 22 10:56:52 2001
+++
rasmus Thu Feb 22 11:01:21 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Doc account for Jaemin Byon
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.95 CVSROOT/avail:1.96
--- CVSROOT/avail:1.95 Thu Feb 22 10:59:40 2001
+++
Check out :
http://www.weberdev.com/index.php3?GoTo=ShowShoppingItems.php3%3FMasterCateg
ory%3D156%26SubCategory%3D106%26SubCategoryName%3DPHP%26MainCategoryName%3DB
ooks
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
-Original
Hi,
I'm storing files in DB. basically (what's important in this case),
I have two columns:
file_name - contains the original filename
file_src - blob which contains the actual file
now the user clicks on a link something like download.php?file_id=123
and the php script will spit out
I hate to post flamebait, but I genuinely want to know -
what have people liked as far as a slasdot style PHP apps?
I would love one that has integrated user management and mailing lists :)
TIA, and sorry for the YAWIB (yet another which-is-best) post.
regards,
jaxon
--
PHP General Mailing
Javier Muniz wrote:
Encode them, or set filesystem permissions in such a way (suggest using
groups) to allow apache to read files but not other users.
For instance, if your users are all members of the users group, and apache
runs as nobody, then set your files to be owned by the user
I am attempting to insert a set of data (actually a pair) into an array,
without much success. I would like to insert the data set ("course
number", "course title") into a numerically indexed array so that when I
want to output the array I can reference it like so:
Hi!
I am trying to put in a new data at the beginning of a file.
I have started like this;
$yourfile = "test.xml"; (abcdef/c this is the file.)
$fp = fopen ($yourfile, r);
$message = array(1 = 'a', 'b', 'c', 'd', 'e', 'f',
'/c');
Here I need some code to get the output look like
Try:
echo $array[$i][course_num] . ' ' . $array[$i][course_title];
-jm
-Original Message-
From: Scott Walter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Arrays -- How do I insert a pair of data into an array
I am
You can also use PHP for shell scripting - just add #!/path/to/php -q as
the first line of your script.
Note: You will still need to enclose all PHP scripting in ?php ... ?
tags.
Here's an example:
file: phpinfo.phpshell
? phpinfo() ?
The preceding information was returned by PHP info.
From: "Ian LeBlanc" [EMAIL PROTECTED]
I am working on a site that has over 1000 pages and all the images need to
be made lower case in the HTML.
Here is what I have so far. Please someone tell me what I am doing wrong.
$contents="img src=ThisOneReallyNeedsToBeAllLowercase.gif
mysql executes the queries in the order it recieves
them, (so if your program's logic executes a select
before an update, you'll never see results from the
update in your select... at least not normally :)
Are you able to access the MySQL monitor program?
if so, verify that the data really does
I have been using the code below to do my page redirects for a year and a
half with good results. Recently, some users have reported to me that the
actual code is being partially displayed to the screen, and the re-direct is
not occurring. It is as if the server stops serving the page before it
Personally I started with the Wrox Professional PHP Programming guide and
still use it today(its sittin in front of me). I see they have one out now
for php4 which is around $60 which I am probably going to order just to keep
up to date. They cover the basics and then go into some more specific
On Thu, 22 Feb 2001 17:41:43 -0500, ..s.c.o.t.t.. [gts]
([EMAIL PROTECTED]) wrote:
mysql executes the queries in the order it recieves
them, (so if your program's logic executes a select
before an update, you'll never see results from the
update in your select... at least not normally :)
well,
if you have output buffering on in php.ini
output_bufffering = on
cobine this with
?php
header("Location: http://$SERVER_NAME/index.php");
exit();
?
and youve got a great cobination, zero html will be sent to the browser,
just the header, the browser will refresh for you. try it,
Guys/Gals:
For some reason too long to explane .. i have this site that i need to make
all the image names in an
image src all lowercase.. Here is what I have so far. Please someone tell
me what I am doing wrong.
?
$contents="img src=ThisOneReallyNeedsToBeAllLowercase.gif
On Thursday 22 February 2001 23:42, Simon Garner wrote:
This should do the trick (untested!):
?
$contents = "img src=ThisOneReallyNeedsToBeAllLowercase.gif
alt=ThisOneReallyNeedsToBeAllLowercase.gif";
$contents = preg_replace("/([-_a-zA-Z0-9]+)\.gif/e",
"strtolower('\\1') .
You should either do this with ereg, or strtolower and not a combination of
the two, and in all actuality strtolower is specifically desinged to do this
very easily so I would go with it.
?
$contents="img src=ThisOneReallyNeedsToBeAllLowercase.gif
alt=ThisOneReallyNeedsToBeAllLowercase.gif";
Hi,
My last message on this topic was a bit hard to translate. So here is the
thought out version.
1.I have a page on a server called admin.php (protected by htaccess for
admin use only)
2.This page holds variables that are changed by form elements.
(Checkboxes etc)
And this in
1 - 100 of 143 matches
Mail list logo