Just to flesh it out a little more
Split the address up and get the domain name (the part after the @).
Do a DNS lookup on that domain name for an MX record.
If that fails, look for an A record.
If that fails, give up.
If you got an address, open a socket connection to that address, port
what are you using for your flags when you do ./configure
normal should be ./configure --with-apxs=/usr/local/apache/bin/apxs
Things like that. if you ran ./configure nothing will compile the libphp4
for you. there is a Install file which will walk you thru the setup also on
the manual on php.ne
No idea, check your config.log and see why it is failing.
On Thu, 25 Apr 2002, zhaoxd wrote:
>
> Whatever I tried ,it is also useless,why?
>
> This time I compile it with freetype-1.3.1.when I used the test code , it also said
>"libgd was not built with FreeType font support in /usr/local/apac
On Thu, Apr 25, 2002 at 01:50:17AM -0400, Larry Brown wrote:
:
: I ended up using a port which eventually worked. I parsed the INSTALL file
: and it didn't mention anything about specifically adding libphp4.so. It
: mentioned checking the flags available with ./configure -help which I ran.
: Bu
Whatever I tried ,it is also useless,why?
This time I compile it with freetype-1.3.1.when I used the test code , it also said
"libgd was not built with FreeType font support in /usr/local/apache/htdocs/test.php
on line 14".
Would you mind tell me how you do this? I just wanna support Fr
You really are not reading the instructions carefully enough. Or perhaps
my writing is horrible. It says:
===
A popular choice is to build the Apache module version. In order to
build PHP as a dynamic module for Apache-1.3.x you have to first have
Apache installed. Assuming Apache i
I ended up using a port which eventually worked. I parsed the INSTALL file
and it didn't mention anything about specifically adding libphp4.so. It
mentioned checking the flags available with ./configure -help which I ran.
But I had no way of knowing what apxs means. It mentioned -with-apxs in t
Please read the INSTALL file. The default is to make the command line php
binary if you do not provide any ./configure flags, so simply typing
./configure && make && make install should have installed
/usr/local/bin/php and it would not have built a libphp4.so. For that you
need to add --with-ap
I have one question that I've been working about. When you setup a
session to last a particular time say 1 week. If the user comes back to
that page because the week is over to reset the session does the user
then at that time reset the timer to yet another week. I'm trying to
figure out a way
I don't mean to be rude but as I mentioned in my post "After running
./configure make and make install...". Please review my post for the actual
problem.
Larry S. Brown MCSE
Dimension Networks, Inc.
Member ICCA
(727) 723-8388
-Original Message-
From: Evan Nemerson [mailto:[EMAIL PROTECT
php.net/fsockopen
php.net/sockets
Have fun ;
On Wednesday 24 April 2002 22:14 pm, you wrote:
> The commercial server where my pages are hosted is having trouble
> with the lastest version of PHP and as a result the mail() function
> is not working. E-mailing from PHP is critical for my postca
./configure
make
make install
On Wednesday 24 April 2002 22:08 pm, you wrote:
> I am trying to get php installed and working on a freebsd server and I'm
> used to using linux where it hasn't failed me before. After running
> ./configure make and make install there is no libphp4.so anywhere on
The commercial server where my pages are hosted is having trouble
with the lastest version of PHP and as a result the mail() function
is not working. E-mailing from PHP is critical for my postcard and
other functions on my site. (I might as well shut four of my sites
without e-mail.)
Is there a
I am trying to get php installed and working on a freebsd server and I'm
used to using linux where it hasn't failed me before. After running
./configure make and make install there is no libphp4.so anywhere on the
server. I ran just ./configure and make and then checked the current
directories f
Yike, now I wish I hadn't found it:
[Wed Apr 24 19:42:18 2002] [error] PHP Warning: Wrong datatype for second
argument in call to in_array in beta_up.asp on line 61
[Wed Apr 24 19:42:18 2002] [error] PHP Warning: Undefined variable:
upload_path in beta_up.php on line 73
[Wed Apr 24 19:42:18 200
I don't believe there is such a problem, because
will get replaced with foo by the PHP parser. >> Thus by the
time the content gets to the browser, it ISN'T PHP anymore -- it's HTML, or
text.
What you should do is view the source of your processed page, to ensure that
your HTML around the pro
Found it - just added another curly brace to the end of the code and it
worked, so I searched up from there and found:
function ext_valid ($filename) {
$extget = substr( strrchr($filename, "."), 1);
$found = in_array($extget, $extval);
if ( $found ) {
ech
On Thursday 25 April 2002 11:20, Jason Soza wrote:
> Can someone take a look at this code for me? I'm pretty new to programming,
> but looking at it I think it should work. I'm not saying there aren't
> plenty of errors, because I'm sure there are. I'm getting a parse error on
> the last line, and
If your page is frequently access and the data does not change then by all
means store the image in the file system.
however, I have found it useful to store the images in the database for
certain applications which I want to maintain an additional level of
security over the images when using ses
Copy and paste the parse error into your e-mail. Also, try placing another
"}" at the end of the code. If you're missing a closing bracket somewhere,
that will take care of it.
Tyler Longren
Captain Jack Communications
www.captainjack.com
[EMAIL PROTECTED]
- Original Message -
From: "J
Can someone take a look at this code for me? I'm pretty new to programming,
but looking at it I think it should work. I'm not saying there aren't plenty
of errors, because I'm sure there are. I'm getting a parse error on the last
line, and I can't see any reason for it. All of my ifs and functions
> > > //define the type of inputting picture;
> > Heder("content-type:image/png");
>
> Is this a typo? Should be Header(...).
>
Sorry, I did a wrong copy.But when I cut this line,it output a warning words:
"libgd was not built with FreeType font support in /usr/local/apache/htdocs/tes
It works fine. Spell Header() right, or remove the header altogether so
you can see the error message. I predict you will see a message telling
you it couldn't open the font file.
-Rasmus
On Thu, 25 Apr 2002, zhaoxd wrote:
> hello,all:
>
> I have already installed gd-1.8.4 in php-4.1.2 with s
On Thursday 25 April 2002 10:08, zhaoxd wrote:
> //define the type of inputting picture;
> Heder("content-type:image/png");
Is this a typo? Should be Header(...).
> //create picture
> $pic=imagecreate(240,30);
> //define color
> $black=imagecolorallocate($pic,0,0,0);
> $white=imagecolorallocate
hello,all:
I have already installed gd-1.8.4 in php-4.1.2 with some libraries,such as libpng
-1.2.0,freetype-1.3,zlib-1.1.4,freetype2,in my apache server which version is
1.3.24,and "phpinfo()" display php can support such soft,as follow:
GD Support---enabled
GD Vers
>From the manual (and with honor):
int setcookie ( string name [, string value [, int expire [, string path
[, string domain [, int secure])
so
limits the cookie to work on only one specified folder
see for more: www.php.net/setcookie
Sincerely,
Maxim Maletsky
Founder, Chief Developer
> Hi,
>
> I am not a PHP programmer. (Sorry Guys;-)
> Although, I am working on a PHP portal type site, where I need to
> integrate as seemlessly(?) as possible an outside specialized leased
> Search Engine Service done with ASP (I suppose? ".asp").
yup, probably ASP.
> I have been looking ev
SF is OK, as every other software it itself may have some problems from
time to time. But overall it always works. You might be frustrated abut
the security precautions it takes, but this is only for your best.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
www.PHPBeginner.com // where PH
Do this:
$contents = file($file);
foreach($contents as $line_num=>$line_data) {
$data = explode('|', $line_data);
// now data contains:
// [0] = aa
// [1] = bb
// [2] = cc
// nd so on
}
Sincerely,
Maxim Maletsky
Founder, Chief Develo
> Personally I think databases these days (MySQL in my experience at
> least) are more than reliable enough and fast enough to serve up
> binary data in quite large quantities. If you run into performance
> issues, implement a caching solution run from a crontab.
I had a very, very bad experienc
This isn't directly PHP related, but I feel it is appropriate.
I just got a letter from VeriSign- a "Domain Name Expiration Notice". It was
EXTREMELY misleading. I looked like an invoice demanding $29 by 5/15/02.
Basically, they made it seem like I already had a service with them and this
was
There was some kind of ASP for Linux. I only heard of it.
Search.
Also, for apache's mailing list look on the Groups of Google.
May god have mercy on your soul... Amen
Sincerely,
Maxim Maletsky
Founder, Chief Developer
www.PHPBeginner.com // where PHP Begins
> -Original Message--
Okay...
ereg("([_a-zA-Z\-\=\+0-9]+|\*)\@[\.a-zA-Z\-0-9]+\.[\.a-zA-Z\-0-9]+",$variable);
Anything else? That one works, right???
So far we've got a-z, A-Z, underscores, hyphens, equals, and pluses. Oh crap
numbers! Okay added it in up there. Anything else?
On Wednesday 24 April 2002 17:17 p
its about validating eMail address, but thanks anyways!
evan
On Wednesday 24 April 2002 20:46 pm, you wrote:
> I don't know what the original question was, but there is a parse_url
> function that'll break apart a url into it's various parts. Quote from
> manual:
>
> www.php.net/parse_url
>
>
I don't know what the original question was, but there is a parse_url
function that'll break apart a url into it's various parts. Quote from
manual:
www.php.net/parse_url
---
Here is a good example of how it would parse this url:
http://name:[EMAIL PROTECTED]:6667/pages/page.php?foo=bar#boo
You can do ASP on Apache via the ChiliSOFT module/component/plugin ( or
whatever it's considered).
www.chilisoft.com
__John Monfort_
_+---+_
P E P I E D E S I G N S
www.pepiedesigns.com
"The world is waiting, are you read
You can do two things..
First you can use $to = "[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]";
or you could use a loop such as for or while to mail to each address
using a function or not whatever way you wanted to.
In article <009a01c1eb9c$9b5cf2b0$6501a8c0@gandalf>,
[EMAIL PROTE
this worked for me.. might be useful to someone...
// sort the array..
$current = 0; // we begin at the top
$totals = forum_count_values($r);
while ( $current < sizeof($r)) {
$c = $r[$current][FORUM_POST_FIELD_ID];
// count the number of posts that are replies to current.
$tot
At 4:45 PM -0700 24/4/02, PHP List wrote:
>I was wondering about the following:
>Should I store a picture directly in a MySQL table? Or just store the link
>to a file on the system somewhere?
This should be a FAQ.
If you allow people to upload files via a web form, your only secure
option is to
On Wed, 24 Apr 2002, Evan Nemerson wrote:
> A domain cannot contain an underscore, but unless i'm mistaken the
> USERNAME can. the domain name REGEX is [\.a-zA-Z\-]+
>
> ereg("([_a-zA-Z\-]+|\*)\@[\.a-zA-Z\-]+\.[\.a-zA-Z\-]+",$variable);
Right you are. I spaced out right past the @.
But on the o
A domain cannot contain an underscore, but unless i'm mistaken the USERNAME
can. the domain name REGEX is [\.a-zA-Z\-]+
You're right about the .com. senior moment. here's a better version
ereg("([_a-zA-Z\-]+|\*)\@[\.a-zA-Z\-]+\.[\.a-zA-Z\-]+",$variable);
won't make sure there are letters betwe
Hi list,
I need to read a txt file and insert it lineas a record in mysql.
My list in the format
aa|b | cc |
fff|hhdhdhdh|jsjjsjs
in other words my separator is "|" and the lines have a return at the end of
each one.
I'm new to PHP, so can anyone help me with and Idea???
thank'
Sorry for the off topic post.
I know that you can setup a .htaccess file that will provide basic security access to
a directory.
Is it possible to create a .htaccess file that will provide username and password
security for a specific file in a directory, without effecting the other files?
He
It looks like Miquel got to the performance issue already. Thanks guys for
helping me on this.
Larry S. Brown MCSE
Dimension Networks, Inc.
Member ICCA
(727) 723-8388
-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 8:00 PM
To: Larry Brown
Store a link to the file!
Mainly because filesystems are designed to store, er.. files ;-)
There's a note on Mysql's manual, under Optimizations, that recommends
this.
--
Julio Nobrega.
Tô chegando:
http://www.inerciasensorial.com.br
"Php List" <[EMAIL PROTECTED]> wrote in message
051c01
Chris Wesley wrote:
>In your Apache config, add .html to the list of extensions handled by php.
>e.g. -
>AddType application/x-httpd-php .phtml .php .php3 .html .php4
This works great in my test site here. Will this cause a lot of overhead if
I add that to the httpd.conf of a production server
On Wed, 24 Apr 2002, Evan Nemerson wrote:
> ereg("([_a-zA-Z\-]+|\*)\@[\.a-zA-Z\-]+\.com",$variable);
> should work, but test it. I'm not 100% the wildcard part will work.
An internet domain name cannot contain an underscore ( _ ).
...and a whole lot of them don't end in .com!
miguel
--
PHP G
On Wed, 24 Apr 2002, Larry Brown wrote:
> I have run many .php documents and generated html from them without
> problems. I have a client whose specific need to to keep the .html
> extention. I want to embed a php script into the html but the script won't
> run. I've tried two php enabled serve
On Wed, 24 Apr 2002, Larry Brown wrote:
> problems. I have a client whose specific need to to keep the .html
> extention. I want to embed a php script into the html but the script won't
> run. I've tried two php enabled servers running apache and neither picks it
> out. Is there a trick I'm m
Store a link to it. I see no advantage at all to storing binary data in
a database. It just creates a lot more work for you by putting the data
in a table. You have to create an "interface" to get at the data...or
select it out into a file to get back the image, etc.
---John Holmes...
> -Or
Okay if you just want to do a REGEX something like
ereg("([_a-zA-Z\-]+|\*)\@[\.a-zA-Z\-]+\.com",$variable);
should work, but test it. I'm not 100% the wildcard part will work.
If you want to make sure the domain is valid, well that's much more fun ;)...
function validateAddr($addr)
{
Hi,
I was wondering about the following:
Should I store a picture directly in a MySQL table? Or just store the link
to a file on the system somewhere?
I would think that leaving the picture as an actual file and just storing
the link would be quicker. But what are the dis/advantages of storing ri
I have run many .php documents and generated html from them without
problems. I have a client whose specific need to to keep the .html
extention. I want to embed a php script into the html but the script won't
run. I've tried two php enabled servers running apache and neither picks it
out. Is
As I am using php 4.0.6 I don't have $_REQUEST available, and there is no
equivalent in earlier vers.
The foll. doesn't work:
updateHTML.php:
$layer = urldecode(unserialize($layer));
I get this:
Warning: Invalid argument supplied for foreach() in
/rstc/user1/erc/pushkar/gis/mcrgdl//updateHTML.php
Hello,
Currently I am using SourceForge for a variety of Projects and now some
issues have surfaced concerning SF quality. Now I am now wonder what is the
worst downfall about SF? Now SourceForge is a very great tool as mention
earlier, it is a very useful tool in Open Source and I am quite
On Wed, 24 Apr 2002, Pushkar Pradhan wrote:
> I was just reading urlencode.php, shouldn't the complementary function be
> urldecode() like the document. says,
> well unserialize must be working too, I believe you.
I'm pretty sure the urldecoding happens automatically. If you get funny
results th
Thanks Miguel,
I was just reading urlencode.php, shouldn't the complementary function be
urldecode() like the document. says,
well unserialize must be working too, I believe you.
> On Wed, 24 Apr 2002, Pushkar Pradhan wrote:
> > I am collecting some data on a page - test.php, ($layer which is an a
On Wed, 24 Apr 2002, Pushkar Pradhan wrote:
> I am collecting some data on a page - test.php, ($layer which is an array
> of names).
> If checkbox is checked that user wants to change drawing order, I should
> redirect the browser to page - "updateHTML.php" which has necessary script
> to do that.
On Wed, 24 Apr 2002, Robert wrote:
> Has anyone ever had trouble with Netscape not displaying a layer with you
> put any php code in it? Anyone know a source for reading more about it?
I would put a fair amount of money on the proposition that your troubles
have nothing to do with PHP in particu
> At 9:02 AM -0400 23/4/02, Dave Sugar wrote:
>
> >I disagree with your assessment of the situation being related to the
> >index.html. If I browse directly to
> >http://gdpim.glencoe.com/login/login.php (using IE 6.0 on Windows) I get an
> >error from IE (not from the webserver) saying 'The pag
My previous question:
I am collecting some data on a page - test.php, ($layer which is an array
of names).
If checkbox is checked that user wants to change drawing order, I should
redirect the browser to page - "updateHTML.php" which has necessary script
to do that.
I achieved redirection using he
I would add some file locking to your code to make it more reliable. If
you start having a lot of traffic, your code will start missing people.
www.php.net/flock
---John Holmes...
> -Original Message-
> From: Tyler Longren [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 23, 2002 8:44
Recursion is the way I manage this in my forum script. The database
table for a particular forum topic does not have any concept of "threads"
in the field data. Each message only knows who its parent is. If the
parent ID = 0, then I know this is the first message of a virtual thread.
Have a l
Good description. One minor addition I would suggest: That schema only
allows for one level of replies. Add a parentpostid to the posts table and
you can easily handle replies to replies to replies to replies (etc) to a
thread.
Stuart
-Original Message-
From: Kevin Stone [mailto:[EMAIL P
Hi,
I am not a PHP programmer. (Sorry Guys;-)
Although, I am working on a PHP portal type site, where I need to
integrate as seemlessly(?) as possible an outside specialized leased
Search Engine Service done with ASP (I suppose? ".asp").
I have been looking everywhere for this info. Just can't
You can use implode _or_ serialize for this.
$arr = array('a','b','c','d');
$vars1 = implode('|', $arr); // a|b|c|d
$vars2 = serialize($arr);// try it :)
And send one of the above strings through your
"hidden" form element.
Then upon use, either explode or unserialize it.
Also consi
Plain english eh? Oookay... :)
Well it's pretty obvious you'll want to store the data somehow. I'd
recommend using a MySQL database.
For a simple forum script you'll want to have two tables in your database.
A Thread table and a Post table. The Thread table will store (threadid,
username, su
I am collecting some data on a page - test.php, ($layer which is an array
of names).
If checkbox is checked that user wants to change drawing order, I should
redirect the browser to page - "updateHTML.php" which has necessary script
to do that.
I achieved redirection using header(), but can't pass
On Thursday, April 25, 2002, at 06:03 AM, r wrote:
> I know for some of you PHP gurus that you must be holding your stomach
> and
> laughing,
I am laughing, but not at your request -- we're re-enacting quotes from
Abe's Oddworld, the PlayStation game:
"Follow me!"
"eeEERE BOY!"
"lookout!"
"
Greetings all,
I am pretty much still a virgin on PHP. :-)
I have just started to learn about all the features and am migrating from
java servlets.
To make things easier on myself i have sucessfully installed Apache,MySql
and PHP on my Win2k system without any problems.
(after 4 hours of work and
I am testing user-handling of sessions (mysql database) and just do not understand
this behavior. my SESSION table is created as
CREATE TABLE SESSION (
id varchar(32) NOT NULL default '',
time timestamp(14) NOT NULL,
user_id mediumint(8) NOT NULL default '-1',
data text NOT NULL,
PRIM
Try this:
$file = "/usr/blah/doh/yuck/wow/abigfile.html";
$file = basename($file);
It will returns abigfile.html
That´s it
Regards
Alex
At 16:04 24/4/2002 -0400, ROBERT MCPEAK wrote:
>I need code that grabs the file at the end of a file path.
>I have this:
>
>/usr/blah/doh/yuck/wow/abigfile
Try this, not the most efficient way.
$names = explode("/", /usr/blah/);
last_element = sizeof($names)-1;
$name[last_element] = abigfile
> I need code that grabs the file at the end of a file path.
> I have this:
>
> /usr/blah/doh/yuck/wow/abigfile.html
>
> And would like to return this:
>
On Thursday 25 April 2002 04:04, ROBERT MCPEAK wrote:
> I need code that grabs the file at the end of a file path.
> I have this:
>
> /usr/blah/doh/yuck/wow/abigfile.html
>
> And would like to return this:
>
> abigfile.html
Manual > Filesystem functions
--
Jason Wong -> Gremlins Associates -> w
On Wednesday, April 24, 2002, at 04:04 PM, ROBERT MCPEAK wrote:
> I need code that grabs the file at the end of a file path.
> I have this:
>
> /usr/blah/doh/yuck/wow/abigfile.html
>
> And would like to return this:
>
> abigfile.html
>
> Could somebody show me how to do this?
http://www.php.n
I need code that grabs the file at the end of a file path.
I have this:
/usr/blah/doh/yuck/wow/abigfile.html
And would like to return this:
abigfile.html
Could somebody show me how to do this?
Thank you!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php
I want to write a simple bulletin board in PHP. I want to use the
typical parent-child (it's sorted by both date AND thread) type of
bulletin board you see often on other websites.
But I just can't figure out how to write some simple code to do this
and keep track of all the threads.
Any idea
On Thursday 25 April 2002 02:09, Kevin Stone wrote:
> Concept is solid, method is wrong. Understand that is but
> one index in the array. To produce an array with multiple indicies you
> must create a separate for each value. Example..
>
>
> foreach ($layer as $lay)
> {
> echo
On Wednesday, April 24, 2002, at 03:27 PM, Pusta wrote:
> When we are setting a cookie in a PHP page, that cookie cannot be
> accessed
> by any page in a different folder. When we move the pages into the same
> folder, the cookies worked fine. Can anyone shed some light on this??
Is the dif
On Wednesday, April 24, 2002, at 02:59 PM, Julio Nobrega Trabalhando
wrote:
> And this is how I use it:
>
> if (isset($_SESSION['forum']['error']['insert'])) {
> echo showError($_SESSION['forum']['error']['insert']));
> }
Try this:
function showError(&$mensagem)
{
// print what
Please help...
When we are setting a cookie in a PHP page, that cookie cannot be accessed
by any page in a different folder. When we move the pages into the same
folder, the cookies worked fine. Can anyone shed some light on this??
Here is how we are setting the cookie:
setcookie("cookiename",
It's not documented in the manual yet and since I'm doing quite some
LDAP stuff lately I think it would be useful so if anybody knows how to
use it let me know.
What I need is how do you define the "string sortfilter"? What's the
syntax for that?
Thanks
Jean-Rene Cormier
--
PHP General Mail
If you mean a layer as in a tag, then Netscape or any other browser shouldn't
know or care that it was PHP. PHP is server side therefore the client knows nothing
about the PHP or what jobs went on at the server...
You most likly have a bug in your HTML that netscape just doesn't like to displ
> And let me know if that works or doesn't work. (It's kind of a hunch,
> hard to tell from your code if it will work.)
Didn't. I still get the same error, using unset($mensagem). Also tried:
global $mensagem;
session_unregister($mensagem)
Also tried:
showError(&$_SESSION
And a mix
> What function can I use to replace just the first occurence
> of a "," in a string?
Let's replace the first , with a ! and if , does
not exist at all let's not replace anything. Change
according to taste:
$str = 'Hello, I love you!';
if (($pos = strpos($str, ',')) !== false) {
Scott Fletcher <[EMAIL PROTECTED]> wrote:
> Thanks! That's explain it! One other question. Is the even number a
> stable release and the odd number an unstable release? Just like the Red
> Hat Linux or Perl as an example. Does that apply to PHP?
nope. (this just happened to be broken in 4.1.
Has anyone ever had trouble with Netscape not displaying a layer with you
put any php code in it? Anyone know a source for reading more about it?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wednesday, April 24, 2002, at 02:59 PM, Julio Nobrega Trabalhando
wrote:
> I have a simple function that returns a message:
>
> function showError ($mensagem)
> {
> return '' . $mensagem . '';
> }
>
> And this is how I use it:
>
> if (isset($_SESSION['forum']['error']['insert'])) {
Hi All!
I have a simple function that returns a message:
function showError ($mensagem)
{
return '' . $mensagem . '';
}
And this is how I use it:
if (isset($_SESSION['forum']['error']['insert'])) {
echo showError($_SESSION['forum']['error']['insert']));
}
But I want that when
> I'm just curious what other constants in php are defined.
> any hints where or how to find a list?
http://www.php.net/manual/en/reserved.constants.php
Kirk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Personally I would serialize and unserialize, but if you just want to pass
the array the way you are doing it, you need to try this instead:
This will create a bunch of hidden input types with your values.
Cheers!
Rick
In order to seek truth it is necessary once in the course of our l
Concept is solid, method is wrong. Understand that is but
one index in the array. To produce an array with multiple indicies you must
create a separate for each value. Example..
foreach ($layer as $lay)
{
echo "";
}
That will produce..
And when the subm
On Thursday 25 April 2002 02:02, Pushkar Pradhan wrote:
> I want to pass a 1 dim. array through a form, I use the hidden field and
> do as follows:
>
> foreach($layer as $lay) {
>print "$lay ";
> }
> print "\">
> This generates the foll. source:
>
>
> where actually it should be $layer[]
Thanks! That's explain it! One other question. Is the even number a
stable release and the odd number an unstable release? Just like the Red
Hat Linux or Perl as an example. Does that apply to PHP?
THanks,
Scott
"Jim Winstead" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[E
On Thursday 25 April 2002 00:14, Kirk Babb wrote:
> I have a feeling I am making this much harder than it really is! I'm a new
> programmer, and I am trying to output "x" number of characters per line
> without splitting up the words in the string. I want to approach as best
> as possible a cert
I want to pass a 1 dim. array through a form, I use the hidden field and
do as follows:
This generates the foll. source:
where actually it should be $layer[] = "a", "b", "c",
i.e. it doesn't remain an array anymore and thus I cannot do array
operations (eg. array_slice etc.) on it.
Can a
On Wednesday, April 24, 2002, at 11:37 AM, Jackson Miller wrote:
> When storing dates and times in databases is it better to store them as
> UNIX timestamps or in one of the SQL date/time types?
>
> I am working on an application that takes school attendance and has
> homework assignments, so I
Miguel Cruz wrote:
> Someone else has already provided you with a regex. I'll provide you with
> a new question: Why store it that way? Just create a new field to hold the
> name of the user who last modified the description. Then you don't have to
> do all that processing, and you aren't unneces
The last post is using the MySQL JDBC from a Java Server Page in a servlet
environment. I never tried to run this from Java imbedded in a PHP script.
You would have to remove the exception handling, at least.
I dispatch a Java Server Page from my php script (write to a socket), do
some java stuff
http://www.php.net/manual/en/function.ereg-replace.php
-Steve.
-Original Message-
From: Diana Castillo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 12:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP] replacing first occurence
What function can I use to replace just the first oc
1 - 100 of 203 matches
Mail list logo