I use DreamweaverUltraDev with the Interackt extension for several months.
It was interesting for me at the beginning, to see how a functionnality
could be coded in PHP (prev next, dynamic drop list, etc...), and because
other people in my company, working on static pages, use Dreamweaver. But
now
Not really a php question, is it? But what I would do is have two tables,
a cdrom table and a keyword table. Each cd in the cd table would have a
cd_id, and then the keyword table could have two attributes, cd_id (foriegn
key from cdrom table) and keyword. Make the primary key for the keywor
hello sir,
we are creating a cdrom database in
postgresql wherein we have cd rom titlename,author,year etc and keywords
as fields. we will store a set of keywords for each record. i want to know
how to enter those keywords in to database (whether to have comma between
keywords or pla
I know this comes up again, and again, and I'm bringing it up again now :)
There's been requests for a function that displays the current heirachy of
calls
I was just thinking about this - php must maintain a stack so that it knows
what function to return to when another function exits, why can't
I think what'll you'll need to do is look through the phpinfo() output and
piece together all the parts, eg $HTTP_HOST (or should that be
$_HTTP["HOST"] ?), $PHP_SELF, etc.
If anyone knows of a better way, I'd like to know too
Martin
-Original Message-
From: [EMAIL PROTECTED] [mailto:[
Hi all,
How can I get the full URL of the currently running script? $DOCUMENT_ROOT is not what
I need, instead I need the url (be it domain if exists, or ip if not). $SERVER_NAME
works but if a domain isn't paired with the server, I could get some useless
information (right?).
Thanks,
Sean
On Friday 08 February 2002 04:33, CompMan86 wrote:
> I posted about this a few days ago. I received several responses but
> none of them were very helpful (thanks for the effort though). I finally
> figured out what it was by process of elimination. At the top of my
> registration form, I put sess
On Friday 08 February 2002 06:17, Martin Towell wrote:
> I've found that you can specify a function anywhere in the page and call it
> anywhere in the page so:
>
> foobar();
> function foobar() { echo "in foobar\n"; }
> foobar();
> ?>
>
> would work and display the text twice, without errors/warn
Would this happen to be the one?
http://www.interakt.ro
If it is, then the extension can be found here:
http://www.interakt.ro/products/PHAkt/index.php
This place also has several othe extensions:
http://www.udzone.com/index.asp?TypeId=3&CatId=68
Found these links using Google.
God bless G
Hi John:
jtjohnston wrote:
>
> I'm looking for a function that will find occurences of urls in any
> given string and do this:
>
> http://www.nowhere.com/
> becomes
> http://www.nowhere.com/";>http://www.nowhere.com/
\\1\\2\\3', "$Val");
?>
You'll have to undo the line wrapping before you us
I did try an extension with it once with terrible results. I do not know
if it is the same one. The extension would take all the includes and
make them the same name, not every time but often enough to scrap it. I
don't use Dreamweaver much anyway, Homesite with server mapping enabled
works
> does using system() work?
> what about back-ticks? - `funky script stuff here`;
I'll give it a go, i hadn't tried that
Although I thought system would return the output. I was using exec
because it didn't (oops I think I forgot to mention that.)
Jason
--
PHP General Mailing List (http://ww
does using system() work?
what about back-ticks? - `funky script stuff here`;
-Original Message-
From: Jason Rennie [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 3:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Execing problems
Hi all,
I have a seperate perl script that I need
try this:
$str = $s24; // this is the string you want to look at...
$dst = '\\1\\2';
foreach (array("http://";, "mailto:";, "telnet:", "news:";) as $src)
{
$str = ereg_replace("(".$src."[^ ]*)( *)", $dst, $str);
}
echo $str;
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECT
Hi all,
I have a seperate perl script that I need to start running from a php
script. The script does a fork into the backgroup and exits.
when i do an
exec("funky script stuff here");
The page just hangs trying to load again, apparently after I call the
exec.
I've also tried
exec("script s
I'm looking for a function that will find occurences of urls in any
given string and do this:
http://www.nowhere.com/
becomes
http://www.nowhere.com/";>http://www.nowhere.com/
Could, should also look for
mailto:[EMAIL PROTECTED]
telnet:blah.blah
or even news:blaj.blah
Does such a thing exist?
Please ignore my question - I just figured it out. I had the method="post"
in the input type="submit" tag rather than in the form tag. It works!
However, if one has an HTML select/option menu scrolling list with multiple
selections, how does one get the number of values for the same name with
HTT
Hi Joe,
The record has other information as well, names, phone, and etc. I like
to store everything in an array and reference to it later. That way I don't
have to do another mysql_xxx() later for the subsequent pages...that should
save sometime, right?
The problem has gone away once I switc
Hi. I'm a newbie at this and am having problems understanding how this
works.
I have a form with method="post". The server program does display
REQUEST_STRING as I expect (e.g., choice=yes but displaying
HTTP_POST_VARS["choice"] is null). However, displaying
HTTP_GET_VARS["choice"] does display "
remember to escape the escape character so php passes it onto the reg.ex.
function correctly, so:
if(eregi("\\+",$variable))
-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 12:54 PM
To: Jim Lucas [php]; Leif K-Brooks; [EMAIL PROTECTED]
Su
That would be InterAKT Online (http://www.interakt.ro/), and the products
you're talking about is the PHAkt (open source) and the ImpAKT (commercial
version). Another product worth looking into is NeXTensio as well.
I've heard good things, but I've never tried it yet.
--
Laurie Landry
[EMAIL
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Actually Ultradev does support PHP if you buy a php application
server extension. A company in Romania (The name escapes me) makes
the extension and I have heard it works very well. I am sure somebody
can find the name of the company by searching fo
Actually, all you need is this:
if(eregi("\+",$variable))
You only need to escape the + sign once.
Tyler
- Original Message -
From: "Jim Lucas [php]" <[EMAIL PROTECTED]>
To: "Leif K-Brooks" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 7:39 PM
Subject: Re: [
try this
if(eregi("/\+/",$variable))
Jim Lucas
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 5:40 PM
Subject: [PHP] Checking for plus signs?
> I'm trying "if(eregi("+",$variable)){", but it gives me an error. W
Hi Peter, are you limited to using arrays? If not, try msql_fetch_row()
since you are only looking for the one record, ie: the corresponding
username and password record for the username and password that was passed.
Hope this helps, Joe :)
Peter Ruan <[EMAIL PROTECTED]> wrote in message
The plus is a special character for regular expressions. You need to
escape it in order to search for a literal +
Try this:
eregi("\\+", $variable)
Jeff
At 08:40 PM 2/7/2002 -0500, you wrote:
>I'm trying "if(eregi("+",$variable)){", but it gives me an error. What do I
>do?
--
PHP Genera
you might want to check your coding, but that is a parse error waiting to
happen.
Jim Lucas
- Original Message -
From: "Rick Emery" <[EMAIL PROTECTED]>
To: "'Nathan Cassano'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 1:54 PM
Subject: RE: [PHP] Quote in inp
What's the error?
Tyler
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 7:40 PM
Subject: [PHP] Checking for plus signs?
> I'm trying "if(eregi("+",$variable)){", but it gives me an error. What do
I
> do?
>
--
I'm trying "if(eregi("+",$variable)){", but it gives me an error. What do I
do?
Hi,
I'm getting a PHP group together in the New York, NY
area. Please email me if insterested.
__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To uns
Probably the easiest way is to not get to that point at all in the first
place. Just use a client-side javascript form validation script to prevent
un-filled fields from even occurring.
Another way around ths is to create tempory session variables on the
processing page, and if some of the form
Hi,
I'm getting together a PHP group in New York, NY. If
interested, please send me an email.
__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To uns
what about?
$str = "a bc def ghij klmno p qr i'd do, it. stu vwxy a";
$az = "[a-zA-Z']";
$str = str_replace(",", " , ", $str);
$str = str_replace(".", " . ", $str);
$str = trim(preg_replace(array("/ $az /", "/ $az$az /", "/ $az$az$az /"), "
", " $str ")); // couldn't get "/ [a-zA-Z]{1,3} /" to w
Does anyone know of a method of testing the minimum version of PHP required
for a particular job? - Assume I'm developing a web-site for a customer who
has PHP 4.0.5 installed. Now, I tend to use the latest version (4.1.1), so I
have to be a little careful in certain aspects, but it would be usefu
There is no PHP support in Dreamweaver UltraDev.
Gary
Luke Crouch wrote:
> I know Dreamweaver UltraDev has nice site management features for using a
> JSP/SQL type serverdoes it have similar capabilities with PHP/MySQL?
> Does anyone know?
>
> -L
>
>
>
--
PHP General Mailing List (ht
I don't know about preg but how about this monster?
$str = "I'm okay now aren't I. Do I work? 'mm";
while(eregi(' [a-z\']{1,3} ', $str))
$str = eregi_replace(' [a-z\']{1,3} ', ' ', $str);
while(eregi(' [a-z\']{1,3}([^a-z\' ])', $str))
$str = eregi_replace(' [a-z\']{1,3}([^a-z\
after some puzzling I came to this:
$str = "One as a start. This is or was a test for short words, although an,
should be deleted to.";
$str = preg_replace(array("/\b[A-Za-z']{1,3}\b/",
"/[ ]{1}([ ]{1}|[,]{1}|[.]{1}|[:]{1})/"), array("", "\\1"), $str);
print $str;
which means:
first: replac
Op donderdag 07 februari 2002 23:58, schreef Michael Kimsal:
> Looking for a regex (preg or ereg) to remove
> all 1, 2 and 3 character words.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
what about words at the start of the string??
eg
$str = "One can see this is or was a test for short words, although an,
should be deleted to.";
-Original Message-
From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 10:47 AM
To: [EMAIL PROTECTE
this might even work beter, to take comma's and periods etecetera into
account to:
$str = "This is or was a test for short words, although an, should be
deleted to.";
while (ereg(" [a-z]{1,3} ", $str)) {
$str = eregi_replace(" [a-z']{1,3}([ ]{1}|[,]{1}|[.]{1}|[:]{1})", "\\1",
$str);
}
or even
I don't know if this is the best way but:
$str = "This is or was a test for short words";
while (ereg(" [a-z]{1,3} ", $str)) {
$str = eregi_replace(" [a-z]{1,3} ", " ", $str);
}
print $str;
this replaces all occurences of a space followed by 1,2 or 3 alphabetic
characters followed by a space.
$string = ereg_replace("[A-Za-z']{1,3}", "", $string); // don't forget "I'm"
I haven't checked but something like this.
-Original Message-
From: Michael Kimsal [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 9:59
To: [EMAIL PROTECTED]
Subject: [PHP] Regex function needed
Lo
Looking for a regex (preg or ereg) to remove
all 1, 2 and 3 character words.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi PHPers,
> in late 2001 I had a customer that was interested in a kind of
> universal (my)SQL module for PHPNuke / phpWebsite. Thus I ordered the
> development and - as fair as life is - the customer went straight into
> bankruptcy.
>
> Now I have a first beta of "modDb" - as we call it - and
I know Dreamweaver UltraDev has nice site management features for using a
JSP/SQL type serverdoes it have similar capabilities with PHP/MySQL?
Does anyone know?
-L
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've found that you can specify a function anywhere in the page and call it
anywhere in the page so:
\n"; }
foobar();
?>
would work and display the text twice, without errors/warnings
I haven't looked at the php's source code, but maybe it's a two pass parser
(??) first it gets all the functio
On Thursday, February 7, 2002, at 04:54 PM, Rick Emery wrote:
> I prefer: print" ";
>
> -Original Message-
>
> If there is a quote mark in an input tags value what is the correct way
> to print the quote?
>
>
>
> or
>
>
>
>
It probably doesn't really matter, but from a purist's poi
Bryan Gintz wrote:
> All of a sudden Mail through PHP just stopped working, we can do it
> through the command line, but refuses to work in PHP.
> Any ideas?
Does the maillog mention any errors?
How about the webserver log?
Best regards
Martin
--
PHP General Mailing List (http://www.php.net/)
I prefer: print" ";
-Original Message-
From: Nathan Cassano [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 3:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Quote in input tag value?
If there is a quote mark in an input tags value what is the correct way
to print the quote?
If there is a quote mark in an input tags value what is the correct way
to print the quote?
or
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 01:42 PM 2/7/2002, Andrew Chase wrote:
>Which part are you having trouble with, specifically? The task as you've
>described it is very straightforward, almost pseudo-code. :)
>
>-Andy
I know very well how to do the Db query and then loop through the results
to display the info on an HTML pag
This is an inappropriate question for this list.
I would suggest either a book on learning Unix (almost any flavor will do)
or seeking any number of Linux mailing lists for questions concerning the
OS.
-Original Message-
From: karthikeyan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, Februar
Which part are you having trouble with, specifically? The task as you've
described it is very straightforward, almost pseudo-code. :)
-Andy
> -Original Message-
> From: Phillip S. Baker [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 07, 2002 12:32 PM
> To: PHP Email List
> Subjec
"Phillip S. Baker" wrote:
>
> Greetings All,
>
> What I want to do is create a tab-delimited text file for download from
> records in a database.
Construct then execute the desired query
http://www.php.net/manual/en/function.mysql-query.php
Loop through each record, putting each row into an
Hi,
How do i set cron job on Red Hat Linux.
Looking forward for yours response.
karthikeyan.
I know the subject of web hosts that support PHP comes up frequently - but
here's a twist:
After going through the archives, and checking out many, many hosts, I
haven't found a web host that is up to PHP 4.10 or better. Most seem stuck
at 4.04 or, at best, 4.06.
Since 4.10 made some important
can I limit the information shown in phpinfo function?
the info it gives is a little risky for me
thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
okay, i'm new in PHP developing and i'm having a few problems with a script
i'm building...
i work at an ISP what i need is a script that will add users to the company
database. what i can't
get is my PHP server (IP 18) to connect to the RAS server (IP 21).
i've checked all the documentation i h
hi.
i need to be able to open an ssl 'plus' socket (authorize.net told me
this) to post
data. i can use curl to post data, but how do i use curl to open an ssl
'plus' socket?
thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Doesn't php for windows come with pgsql already? extension=php_pgsql.dll
Gary
Todor Stoyanov wrote:
> Any ideas how to get PHP for win32 with PostgreSql support?
>
> Cheers
>
> Todor
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.
try it like this:
switch(true){
case strstr($line,"zip"):
echo "found zip";
break;
}
On Thu, 7 Feb 2002 14:29:45 -0600, Chuck Barnett wrote:
>Hello, I am trying to find out if a string is in a line being read
>from a
>file. I should use strstr for this I am pretty sure.
>I want to do
Hi!
Have anyone ever have problem with the connection speed using PHP and
DB2? I'm a little puzzled by the odbc_connect reaction. There were very
many people using the DB2 on the website. The most I can have is from 5 to
10 people. For some people, they get quick result from the database
Hello, I am trying to find out if a string is in a line being read from a
file. I should use strstr for this I am pretty sure.
I want to do something like this: switch(strstr($line, case argument)) but
I don't know if it is possible. For example, I am looking for Zip in a line
but it will not
Thanks, Erik! This will do nicely. :)
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 2:07 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Need XML info for PHP -- XML Newbie
On Thursday, February 7, 2002, at 03:03 P
Morning all ...
I'm runing Cyrus-IMAPd 2.0.16, Cyrus-SASL 1.5.24 and DB3.2.9 on
several servers, with Horde2/IMP3 installed as a front end ... if I close
my web browser down and restart it, then try to login, *every time* it
will give me:
Feb 7 16:23:41 earth imapd[49380]: login: earth
$str = substr($str,0,-3);
-Original Message-
From: Renaldo De Silva [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 1:57 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-DB] Need to delete charcters from a string
I need to delete the last 3 character of a string, w
I posted about this a few days ago. I received several responses but
none of them were very helpful (thanks for the effort though). I finally
figured out what it was by process of elimination. At the top of my
registration form, I put session_start() just like I did for all my
other scripts. Well
All of a sudden Mail through PHP just stopped working, we can do it
through the command line, but refuses to work in PHP.
Any ideas?
Thanks,
Bryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Greetings All,
What I want to do is create a tab-delimited text file for download from
records in a database.
I am not sure on how to do this.
So what I want to do is as follows.
ON a page a button is clicked.
Script is activated that pulls records from a database.
From these records a tab-del
Hi,
I recommend using a nice program call PHPTriad. It's painless and you
don't have to worry about anything. The only downside is that it cofigures
PHP as CGI module only.
-Peter
"Karadamoglou Kostas" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I don't k
Hi,
I am running into a problem that I can't figure out the solution to. So
I'm hoping that someone can give me some pointers here. I have two files
(see below): verify.php and edit.php
The job of verify.php is basically to verify that a user is in the
database before allowing him/her to ed
On Thursday, February 7, 2002, at 03:03 PM, Navid Yar wrote:
> Hello everyone,
>
> I'm a "newbie" when it comes to XML. I need to know if there's an
> easy-to-understand documentation/tutorial online that will help me
> understand how PHP and XML work together, what software technologies
> PHP
Hello everyone,
I'm a "newbie" when it comes to XML. I need to know if there's an
easy-to-understand documentation/tutorial online that will help me
understand how PHP and XML work together, what software technologies
PHP uses to parse XML/XSLT documents, and how to actually build PHP to
have sup
Ah.. much appreciated. :)
> -Original Message-
> From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]] On Behalf Of Lars
Torben
> Wilson
> Sent: Thursday, February 07, 2002 12:43 PM
> To: Kevin Stone
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] Formatting a MYSQL time
>
> On Thu, 2002-02-
I have redhat 7.1, apache 1.3.22, php 4.1.1
I have installed php and other apache modules as static.
I have installed all php modules static.
I also installed java module as static (--with-java=..)
But I cannot enable java in php.ini
Also, lib_phpjava.so library is not created. Only li
On Thu, 2002-02-07 at 10:47, Kevin Stone wrote:
> Unless the $eventdate coming being pulled from your database a bonified
> Unix timestamp the date() function will not work.
>
> I don't like MySQL functions so I've always used $timestamp = mktime()
> to create the timestamp. Then plug that value
hey.. anyone got any suggestions on how to have a form build dynamically?
where a user can define his fields and store the form data in mysql?
Regards,
Kunal Jhunjhunwala
"Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired though
Thanks y'all! Everything's workin great now.
Jon Haworth wrote:
>>>With javascript onSubmit, but that ain't php, so with
>>>if($form1==$form2){sendthembackwitherrors()}
>>>
>>Thanks Chris, but I have about 10 different fields and want to make sure
>>none of those are the same.
>>
>
> You coul
What happened when you tried?
-Original Message-
From: Brad Harriger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 8:22 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Using functions before they're defined
How does PHP 4 locate function definitions if the function is called
bef
hi. i've been experimenting with curl and it has been working great. i
was
wondering though if anybody knows why an extra "0" value is being tacked
on to the end of the post.
here is the example:
http://www.mydomain.com/testing.php";);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT
Unless the $eventdate coming being pulled from your database a bonified
Unix timestamp the date() function will not work.
I don't like MySQL functions so I've always used $timestamp = mktime()
to create the timestamp. Then plug that value into a field defined as
INT(14). Use $eventdate = date("
I would let mysql do the work:
select *,date_format(dateofevent,"%H:%i %p") as date_formatted from
table...
- Mark
On Thu, 07 Feb 2002 11:21:13 -0600, Frank Miller wrote:
>Hello,
>
> Since I'm the only one who uses php at work I run
>into a
>little problem and was hoping maybe someone c
well, from what you show here you are trying to use a MYSQL timestamp format
string in a UNIX Timestamp String.
what you need to do is add add this to your select statement.
SELECT UNIX_TIMESTAMP() From Table;
you want to convert the MYSQL timestamp into a UNIX timestamp.
then just through tha
yea, evals() exactly what i needed, tanx
"J Smith" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> include() and require() were suggested, but you may also want to look into
> eval(), which parses a string as PHP code and returns the parsed PHP.
> Sounds like
Here Frank, play with this you'll have to add a bit of code to select
your time values, but it will start you down the road. I spent some time
playing with this a couple of years ago, this is taken from a file with the
grand name of "junk.php"!
Miles Thompson
// up here there's code to co
On Thursday 07 February 2002 22:45, Erik Price wrote:
> I don't mean to butt in here, I'm just a bit confused. I thought that
> the poster ("obo") was asking how to submit form variables using POST.
> For the purpose of doing more work with these variables, from a (PHP)
> script. Is obo asking
> > I tried it out on my site by deleting the get parameters and
> > typing the mock directories in on the url. Very cool, my website
> > is still being displayed even with the fake directories. BUT,
> > I noticed that the server was not finding my css page or my images.
> You need to exclu
On Thursday 07 February 2002 23:08, Erik Price wrote:
> I have two questions:
I think the php-db list is more appropriate for these.
> 1. Can anyone tell me whether the following statement is true or false?
> The PHP function mysql_insert_id() differs from the MySQL function
> LAST_INSERT_ID() i
> All variables in PHP are local to the scope in which it is defined. You
> cannot declare a variable as global (as such). To use a global variable:
This is true. But I believe that the original question was actually
the other way around... Make a local variable into a global one.
The way to d
Thanks Jon.
But, that's for security, right? Maybe even other reasons. I know close to
zero of programming theory, so, why is it bad to have undefined vars on the
code?
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
--
PHP General Mailing List (http://www.p
> I develop with error_reporting(E_ALL). It's a major pain to type everytime
>
> if(isset($some_var))
>
> To avoid undefined variable errors. Any tips? If you turn E_ALL on
> error_reporting, what do you do?
Generally I make sure my variables are defined, and if I can't be sure I
use...
if (is
On Thursday 07 February 2002 23:48, Wee Chua wrote:
> Hi all,
> I have tried:
> global $myArray[]
>
> and it gives me an error 'the array expects semi-colon or comma'. Any helps
> would be appreciated!
>
> Thanks,
> Wee
>
> -Original Message-
> From: Bjorn Abt [mailto:[EMAIL PROTECTED]]
>
Jeff,
> can i force a browser to refresh using php.
=the issue is PHP's server-side-edness.
Consider adding an HTML META tag to the page, to call/renew itself every n-seconds.
=dn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> I tried it out on my site by deleting the get parameters and
> typing the mock directories in on the url. Very cool, my website
> is still being displayed even with the fake directories. BUT,
> I noticed that the server was not finding my css page or my images.
You need to exclude certain r
> > With javascript onSubmit, but that ain't php, so with
> > if($form1==$form2){sendthembackwitherrors()}
> Thanks Chris, but I have about 10 different fields and want to make sure
> none of those are the same.
You could brute force it:
$ok = true;
if ($field1 == $field2 || $field1 == $field3
Hi All,
I develop with error_reporting(E_ALL). It's a major pain to type everytime
if(isset($some_var))
To avoid undefined variable errors. Any tips? If you turn E_ALL on
error_reporting, what do you do?
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei
Hello,
Since I'm the only one who uses php at work I run into a
little problem and was hoping maybe someone could help me. I've set up a
Mysql database that has an event time. I've set the field in the table
as: eventtime time DEFAULT 00:00:00.
When I go to print the eventt
You can force the browser to refresh using a meta tag:
This will cause the page to refresh every 180 seconds.
HTH
Sam Masiello
Software Quality Assurance Engineer
Synacor
(716) 853-1362 X289
[EMAIL PROTECTED]
- Original Message -
From: "Chris Wright" <[EMAIL PROTECTED]>
To: <[EMAI
Hi, I think that you could still use Chris' method, you will just have to
do it in a loop. Create an array of all the form fields, and then have a
nested for loop which just checks that none of the elements are equal.
$numelements = count($fieldarray);
for($i = 0; $i < $numelements; $i++) {
I discovered this wonderful article at zend discussing how to pass get
parameters as mock directory names . . . ie
www.ica.bc.ca/kb.php3?artid=34&catid=23 would become
www.ica.bc.ca/kb.php3/artid/34/catid/23. Then you retrieve these values from
the $PATH_INFO variable.
I tried it out on my site b
1 - 100 of 154 matches
Mail list logo