It may also be possible to use document.location.href (in Javascript) to
change the location to the desired PHP file which you want to run, and then
at the end of that PHP file, go to the page which the user originally wanted
to go (if any)...
I'm not very sure if that works though. Hope it helps
If I understand you properly you need smth like this
function checkmail ($email) {
return (eregi("^[_\.0-9a-z-]+@([0-9a-z][-0-9a-z\.]+)\.([a-z]{2,3}$)",
$email, $check));
}
- Original Message -
From: "Rosen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 24, 2001 10
Hi all
I'm looking for a web host with the following requirments
* PHP (would prefer version 4) with GD support - the most important thing is
the version of GD must be 1.6 or lower because we have to work with GIF
files on the fly
* High data transfer - somewhere in the range of 20gig+ per month
Header("Location: anypage.php");
> exit(); //stopping the script
> ?>
No, he wants to launch a script after Javascript has processed.
PHP is run on the server, Javascript on the client so Javascript has to run
after PHp is finished.
For him to launch a Javascript code, he can only do it by con
Stick gd-1.8.4gif into google and you will see you can get gd versions
with gif support higher than 1.6.
-Rasmus
On Wed, 24 Oct 2001, Ben Quinn wrote:
> Hi all
>
> I'm looking for a web host with the following requirments
>
> * PHP (would prefer version 4) with GD support - the most importan
Why does your URL contain .asp?
[EMAIL PROTECTED] wrote:
> I found the following code currently used on our website to match a url
> expression. Unfortunately, when I added a question mark, the webpage that
> contained the url with the question mark just "hung" and would not load into
> my brows
mysql_data_seek();
Niklas
-Original Message-
From: Adam Douglas [mailto:[EMAIL PROTECTED]]
Sent: 23. lokakuuta 2001 21:48
To: PHP-DB (mailing list) (E-mail); PHP-General (mailing list) (E-mail)
Subject: [PHP-DB] Using A Query Results Multiple Times
I have an instance where I
All these solutions are depending (mainly) on having a dedicated server,
which I believe would not be the case for 90% of the users on here
(don't shoot me if i'm wrong).
So far, I can't see how the problem can be solved. My host does not
allow telnet/ssh at all which sounds like a good thing!
Checkout sqltools at:
http://zc8.com/zc8/ZC8news/shownews.php?articleid=98
It has many fucntions for mysql within php.
They should work with php3.
On Wednesday 24 October 2001 04:19 am, Niklas Lampén wrote:
> mysql_data_seek();
>
>
> Niklas
>
> -Original Message-
> From: Adam Douglas [ma
> >You could open a new window, give focus to the current window, and in the
> >new window, have it close itself after it's finished processing.
An invisible frame is the easiest:
mailto:[EMAIL PROTECTED]]
>
> >Sent: Wednesday, October 24, 2001 4:16 PM
> >To: [EMAIL PROTECTED]
> >Subject: [PHP] O
Like this?
function checkmail ($email)
{
if
(eregi("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z][a-z][a-z]?$",
$email, $check))
{
if (checkdnsrr(substr(strstr($check[0], '@'), 1), "ANY"))
{
return TRUE;
}
}
return FALSE;
}
On Wednesday 24 October 2001 03:24 am, R
I got some thread mixed up. Ignore that answer.
> No, he wants to launch a script after Javascript has processed.
> PHP is run on the server, Javascript on the client so Javascript has to run
> after PHp is finished.
> For him to launch a Javascript code, he can only do it by contacting the
> ser
Yes I agree. Flash has great integration with PHP and that makes it much
easier for communication between them, eg. passing around variables.
- Original Message -
From: "Kodrik" <[EMAIL PROTECTED]>
To: "Jason G." <[EMAIL PROTECTED]>; "Martin Towell" <[EMAIL PROTECTED]>;
"'Impex Holidays M
> I have a need for a package mechanism like that provided by TCL. We
> write a
> lot of code in reusable libraries and often encounter the situation in
> which
> an application uses a particular library but requires at least version X
> or
> greater.
>
> The require(), require_once(), etc. functi
Well, php runs the same as apache, so whatever apache can access, php can
access.
So any files with the db passwords that need to be accessed by php, can be
seen by all users who can upload php scripts to your server. In the case of
virtual hosting.
So trust people you give access, even limite
Firstly,
thanks to those who replied to me last week about xmldom support with this
error:
Warning: Unknown list entry type in request shutdown (0) in Unknown on line
0
I've since tried a few combinations of versions of libxml, and expat (dont
know if expat would
matter), any was wondering if
> On Tue, 23 Oct 2001 16:35, Grant Walters wrote:
> > I'm going nuts trying to work out how to handle errors from data
> > statement with single quotes. PHP 4.0.6 appears to be mangling
> > something somewhere.
> > All statements work with the Openlink odbctest program
> > Any help appreciated
>
Hi,
Is it possible to sort a class array using array multisort, I have two items
in each class that I wish to sort by, one is a text and the other is the
first item in an array within within each class. i.e.;-
$class[$index]->text;
$class[$index]->array[0];
how can I do this?
thanks in advance
On Tuesday 23 October 2001 23:33, Kurt Lieber wrote:
> Sorry -- but you're wrong. If you've got php loaded as an apache
> module in a shared hosting environment, then any file that apache can
> read, I can gain access to through a simple FTP account and a
> well-constructed php file using fopen(
Thanks !!!
Rosen
"Rosen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
> can someone give me script for syntax check of username for mail server ?
>
> Thanks,
> Rosen
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [E
Douw,
It's kind of eerie the way your reply appears in my email before I can see my
intervening post!!!???
Perhaps you're just more important than me (bow, scrape, simper...)
> Thanks for the feedback and additional ideas.
=HTH
> I had also though that it might be necessary to separate out th
Warning: Could not find/open font in
/sdr/httpd/Prisa/DATA/private/libs/graficos/intradia.php on line 57
Line 57: ImageTTFText ($O_imagen, 11, 0, 10, 20, $O_colorValor,
"arial.ttf",$s_Valor);
arial.ttf is into the same dir.
Any ideas?
that file has read permissiones for everyone.
-
Hi list,
What/why this error:
[Wed Oct 24 17:03:33 2001] [error] [client 127.0.0.1] Premature end of
script headers: c:/php4win/php.exe
Thanks,
NOBBY
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTE
Hello,
I configured PHP 4.0.5 with the --with-custom-odbc option.
I get no errors but the odbc functions are not available.
When I look at phpinfo() I can see that the configure command is:
'./configure' '--with-mysql' '--with-apache=../apache_1.3.19'
'--enable-track-vars'
Is --with-custom-od
I think that the MySql's API allow to many queries to be executed w/o having
an open connection, example:
SELECT 1+1;
how can i issue such statments w/o opening a connection?
like SELECT NOW() ..
whenever I first run mysql_query() it tries to connect w/ default connection
settings.
--
$mysql_installed = function_exists('mysql_query');
as for the version, you can then do:
$r = mysql_query("SELECT VERSION()");
$r = mysql_fetch_array($r);
$ver = $r[0];
"Chris" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is there a way to detect, using PHP,
I'm afraid there is no way to do so!
"Impex Holidays Maldives / Hasan" <[EMAIL PROTECTED]> wrote in message
0beb01c15bcb$f0becf50$c6c801ca@hasan">news:0beb01c15bcb$f0becf50$c6c801ca@hasan...
> Hi everyone,
>
> I can use javascripts onunload to run PHP file with a new window.
> Is there anyway i
Hey guys,
where can i find a linux news group? I thought one, (comp.os.linux.setup)
but my reader seems to think it's not a valid news server... (is it?)
Rehuel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
Does anyone know a way to share an object with all sessions ?
The idea is to access the same database connection poll.
Thanks,
Victor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
T
sharedMemory on *nix
--
Andrey Hristov
Web Developer
Icygen Corporation
BUILDING SOLUTIONS
http://www.icygen.com
On Wednesday 24 October 2001 09:35 am, you wrote:
> Does anyone know a way to share an object with all sessions ?
> The idea is to access the same database connection poll
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says...
> > > datCurrent, intCurrentMonthDays and intWorkDays are local
>
> > This didn't totaly help. This line I can't figure out:
> > intCurrentMonthDays= Day[DateAdd["d",-1, DateAdd["m",1, datCurrent]]];
> >
> > Basically it gets the number of
Is there an easy way to save an object in this section ?
The object will have something like an open file or a database connection...
Thanks,
Victor
-Original Message-
From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
Sent: quarta-feira, 24 de outubro de 2001 16:43
To: [EMAIL PROTECTED]
Su
My name is Nicolás Llamosas, I`m from Río Cuarto, Argentina and sorry for my
poor english. I need informacion about how configure Personal Web Server
under W98 to use with PHP 3.0 I downloaded the BIN code of PHP version
3.0.17 for W32 and I followed the instructions on the manual “PHP
Manual”
On Wednesday 24 October 2001 08:19, you wrote:
> Well, php runs the same as apache, so whatever apache can access,
> php can access.
> So any files with the db passwords that need to be accessed by php,
> can be seen by all users who can upload php scripts to your server.
That's not completely tru
On Tuesday 23 October 2001 21:17, Vinicius Tavares wrote:
> What I have to do to make the PHP4 run the DOM XML???
Download the libxml library (the development packages too, if you
download the packaged distrib).
And compile php with it (--with-dom switch for configure).
http://www.xmlsoft.org
I have several scripts that when you complete a form it executes a PHP
script.
At the end of each script I have a simple statement saying it's done and
then a place to hyperlink back to a given page:
PRINT "Process complete. Click here to continue";
But what I really wanna do is just have the s
On Wednesday 24 October 2001 11:38, php wrote:
> Firstly,
>
I use php 4.0.5 and libxml 2.3.9 on several machines without any
problem.
Older php and libxml combinations however caused many segmentation
faults, especially with not well-formatted xmls.
Are you sure that you warning message is rel
This can be done...but what if the user closes the whole browser?
the frame won't work cause it will also be closed i guess!
The popup window will assure that in all cases it will be poped up.
"Kodrik" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > >You cou
1)Install PHP w/ the installer or manually
2)In PWS add a new virtual directory and give it Script+Execute rights.
3)Create a simple script there (where the virtual directory points) and
write just to see if everything is fine.
you may want to try to ask in php.install group too.
"Nicolas Llamo
just print the following at the point where you decide you want to redirect:
a better alternative is to send a redirection header with the response, but
this depends on you not sending any HTML output to the browser before
processing i
On Wed, 24 Oct 2001 12:37:16 +0200
"Alberto" wrote:
> Warning: Could not find/open font in
> /sdr/httpd/Prisa/DATA/private/libs/graficos/intradia.php on line 57
>
> Line 57: ImageTTFText ($O_imagen, 11, 0, 10, 20, $O_colorValor,
> "arial.ttf",$s_Valor);
>
> arial.ttf is into the same d
Hi,
I am developing a portal that will allow users to perform various
calculations on their data sets. These calculations (handled by C /
Fortran programs) will be run as external processes (and may take up to
a few hours to complete). I am wondering if there is something that I
can use (either i
Assuming you don't output anything else to a web page:
header ("Location: index.html");
should do the trick if you put it at the end of the program. Be warned,
though, that if you output anything to the browser at all, the header
function will not work.
Good luck!
At 06:39 AM 10/24/2001, R
"Lee" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am developing a portal that will allow users to perform various
> calculations on their data sets. These calculations (handled by C /
> Fortran programs) will be run as external processes (and may take up
On Wednesday 24 October 2001 00:30, you wrote:
> What we
> really need is an expert here to give us the low-down on the best way to
> accomplish the best security given regular tools.
There isn't a way to solve it within the constraints you've mentioned (shared
server at a hosting provider, apac
Hi all.
With php version 4.0.1, I made a database class. I use a function called
connect() to open database connection to mysql, and the link resource is
stored in $GLOBALS["CONNETION_ID"] global variable. All of code work
perfectly, with no any problems..
But when I upgraded
Hello-
I'm trying to write a php script that creates a directory and then copies
uploaded files to that directory. That isn't hard but what is hard is the
fact that the script tells me that i do not have permission to do any of
these actions. I'm running red hat 7.1 and I have heard things abou
Hi
Its me again (for those who know me ;-)). ive been
working with php and mysql for a while and am curious
about xml. what do i have to do to get started?
thanks in advance
Srinivasan Ranganathan
Do You Yahoo!?
Send a newsletter, sha
> poor english. I need informacion about how configure Personal
Web Server
> under W98 to use with PHP 3.0 I downloaded the BIN code of
PHP version
> 3.0.17 for W32 and I followed the instructions on the manual
“PHP
> Manual” (I downloaded it in php.net page, and I
configured the PHP.ini
Start your document with
Sorry, couldn't resist it :-)
http://www.w3.org/XML/ isn't a bad place to find out about it, but if you
find them a bit dry or you're in need of a nice tutorial then you'd better
get yourself over to http://hotwired.lycos.com/webmonkey/authoring/xml/ and
have a look at
Getting PHP to work with Apache is pretty simple. The documentation is
easy to read.
I would agree with trying Apache on your Win98 box; but be warned that the
current Apache release is only supposed to be stable on NT
platforms. Since I have win2k it's not an issue for me, but it might now
Well, this is a problem.. with perl, you can use suidperl, but not with
php.. the most easyest way is to give write permission to apache user to the
directory you want to upload the files...
Rafael Steil
On Wednesday 24 October 2001 11:43, you wrote:
> Hello-
>
> I'm trying to write a
try to use webzip, or teleport, or such kind of software
Salu2,
V
-Mensaje original-
De: DL Neil [mailto:[EMAIL PROTECTED]]
Enviado el: sábado 20 de octubre de 2001 17:08
Para: [EMAIL PROTECTED]; Yasuo Ohgaki
Asunto: Re: [PHP] Re: Annotated PHP Manual
> Khalid Hazmi wrote:
> >
I use Apache on Win ME (don't ask!), and it works fine. Never tried it on 98
though.
--
Dana Holt / [EMAIL PROTECTED]
Xenos Online
http://www.xenosonline.com/
---
This is my sig. There are many like it, but this
one is mine. I must master my sig as I must master
my life.
"Ozgur Demirtas" <[EMAIL PROTECTED]> wrote in message
001a01c15c57$ce6fad20$ea0d198a@Jackhammer">news:001a01c15c57$ce6fad20$ea0d198a@Jackhammer...
> Hi all,
>
> I have a PHP script and at one point of the script I am trying to redirect
> my browser to a certaion page. I can't seem to find an easy
At 24.10.01 12:37, you wrote:
>Warning: Could not find/open font in
>/sdr/httpd/Prisa/DATA/private/libs/graficos/intradia.php on line 57
>
>Line 57: ImageTTFText ($O_imagen, 11, 0, 10, 20, $O_colorValor,
>"arial.ttf",$s_Valor);
>
>arial.ttf is into the same dir.
>
>Any ideas?
I had the sa
Hi
Oh yes, run apache+php on win 98. works like a wonder.
try the php-win32 site for win98 specific distro.
regards
Srinivasan Ranganathan
*NEW* Yahoo! Messenger for SMS *NEW*
Now on your ORANGE phone
Visit http://in
Franco Breciano wrote:
> a
for($i=0;$i<13;$i++){echo chr(97+($i?3:0));}
drw
--
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 PROTECT
hi all!!
i'm writing functions like -
---
function top () {
echo "blah blah blah";}
---
what i want to do is make it so that i can do -
---
function top($image) {
echo "blah blah $image blah"; }
---
but also make the $image parameter in the top() as optional. so if
its not t
On Wednesday 24 October 2001 16:42, Kurt Lieber wrote:
> On Wednesday 24 October 2001 00:30, you wrote:
> > What we
> > really need is an expert here to give us the low-down on the best
> > way to accomplish the best security given regular tools.
>
> There isn't a way to solve it within the constr
function top ($image) {
if ($image) echo "blah blah blah";
else echo "blah blah $image blah";
}
There's probably a more efficient way to do it.
At 09:57 AM 10/24/2001, sunny AT wde wrote:
>hi all!!
>
>i'm writing functions like -
>---
>function top () {
> echo "blah blah
I'm trying to access an object as a Singleton. Here is the source code I'm
using.
The problem is that the member objFile from the $test variable is set to an
open file in the class constructor. It works fine, but when I recover it
from the memory, the file handler gets lost in starts being consid
On Wednesday 24 October 2001 19:14, Richard S. Crawford wrote:
The default value for $image parameter was missing:
> function top ($image="defaultvalue") {
> if ($image=="defaultvalue") echo "blah blah blah";
> else echo "blah blah $image blah";
> }
>
Arpi
--
PHP Gene
Turned out there was enough interest. Details at
http://www.php.net/~rasmus/toronto.txt
Will be another one in Ottawa on Thursday Nov.1, but I don't have details
on that one yet. Watch the PHP calendar at www.php.net for it.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To uns
Hm, is the default attribute necessary? I've used this sort of approach
without the default attribute just fine in the past. Though I admit that
the default attribute would make me feel more secure.
At 10:30 AM 10/24/2001, Arpad Tamas wrote:
>On Wednesday 24 October 2001 19:14, Richard S. Cr
On Wednesday 24 October 2001 19:26, Richard S. Crawford wrote:
> Hm, is the default attribute necessary? I've used this sort of
> approach without the default attribute just fine in the past.
> Though I admit that the default attribute would make me feel more
> secure.
Not really necessary, but
Check out the manual section on default parameters...
But the basics are:
function top($image = "null") {
if ($image)
...
else
...
}
Or maybe:
That will set image to be null, so that you can call top either as:
top();
or
top($so
Ahh, good point. Thanks for the tip. :)
At 10:45 AM 10/24/2001, Tamas Arpad wrote:
>Not really necessary, but I like to make code without any warning
>message (it also makes the code more cleaner as you said), and you'll
>get a warning message if there's no parameter given at the function
>cal
> On Wednesday 24 October 2001 19:14, Richard S. Crawford wrote:
>
> The default value for $image parameter was missing:
>
> > function top ($image="defaultvalue") {
> > if ($image=="defaultvalue") echo "blah blah blah";
> > else echo "blah blah $image blah";
> > }
If the defa
use imap_append. That is what that function is for...
it is also how to handle drafts...
check out www.tijuana.com, it is a commercial web based mail service I
wrote entirely in php with IMAP support. It also handles multiple
attachments, multiple attachment forwarding, and sign up 'on-the-fly' i
It could be, but then you would have two spaces in between the 2nd and 3rd
"blah", instead of just the one space. But, depending on your actual
application, this may work out.
-Original Message-
From: DL Neil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 10:41 AM
To: Arpad
Someone asked me to benchmark PHPLib also.
Here is the revised benchmarks, with some minor speedups for
PEAR DB and Metabase.
Benchmark was to select 82 rows from the products table 200 times.
The tests were repeated 5 times. Connection times were excluded
from the benchmark. Lower values are bet
To print:
Click here or Select File
and then Print from your browser's menu.
Is there an equivelant bit of code to do this printer shortcut with php?
--
Chip Wiegand
Computer Services
www.simradusa.com
[EMAIL PROTECTED]
Simrad, Inc
Lynnwood, WA
425-712-1138
"There is no reason anyone would wan
On Wed, 24 Oct 2001 [EMAIL PROTECTED] wrote:
> To print:
> Click here or Select File
> and then Print from your browser's menu.
>
> Is there an equivelant bit of code to do this printer shortcut with
> php?
PHP - _server_ side
Javascript - _client_ side
PHP cannot affect your client like Javas
Hello,
Could someone please show me an example of code using system or
exec. Would be great if the string was a unix command.
Cheers
John
_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--
PHP
Unfortunately, since PHP lives on the server and JavaScript lives on the
browser, there really is no way to get PHP to do what you want.
Stick with JavaScript. There's really no reason not to when you're doing
client-side programming.
At 11:14 AM 10/24/2001, [EMAIL PROTECTED] wrote:
>To prin
On Wed, 24 Oct 2001 18:19:19 +, John Gurley wrote:
>Hello,
>Could someone please show me an example of code using system
>or
>exec. Would be great if the string was a unix command.
>Cheers
>John
I like backticks the best because they're easiest to deal with.
--
PHP General Mailing List
I am having trouble with the is_int() and is_double() functions. The relevant
parts of the function I'm using are:
---
function lookupProduct( $partNum, $serial )
{
print( "lookupProduct( $partNum, $serial )\n" );
Use the header() function in conjunction with the Location HTTP header:
header("Location: http://host.domain.tld/path/to/file.php";);
This MUST be sent to the browser before ANY other output. You can execute
as many commands as you like but this must come before any output (and
before the tag
Hi,
How can be possible to call other functions (that have a html pages) from a
first function that also have a html with a form and pass all html variables
without losing them?
I've a problem that from a html form I'm losing all html variables and this
is happening because this form is located
Javascript can be embedded in PHP files anyway. I do a lot of database
management interfaces in PHP and one thing I want to do is protect items
from being accidentally deleted. I use Javascript to verify that they
intended to click on the link to delete the information.
Remember, PHP files are
On Wed, Oct 24, 2001 at 10:43:53AM +0100, L Melville wrote:
> Is it possible to sort a class array using array multisort, I have two items
> in each class that I wish to sort by, one is a text and the other is the
> first item in an array within within each class. i.e.;-
>
> $class[$index]->text
How do I reference URL variables..?
--
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]
Don't forget: if a function has multiple arguments the optional ones must be
to the RIGHT of the required ones:
function testing123($one, $two="2", $three="3")// Good
function testing123($one="1", $two, $three="3")// Bad
function testing123($one="1", $two="2", $three)// Ba
Try this:
<<< BEGIN:PHP-CODE >>>
$result = mysql_query ("SELECT DISTINCT date FROM linktracker WHERE name
LIKE '$PHP_AUTH_USER' GROUP BY date ORDER BY date");
if (mysql_num_rows($result))
{
for($i=0;$i array($i => $row["date"]),
"end" => array($i => $row["date"])
How can I remove an Array Element from my Array?
For example:
$myArray =
array('100'=>'jibberjabber','200'=>'morejibberjabber','0'=>'');
if(isset($myArray[0]))
// here is where I want to purge Key[0] from the Array all together
;
I check for the presence of Key[0], which may not be
Hi. I'm trying to figure out how to subtract 1 variable from another, but
I'm not having any luck.
It works on this page:
";
}
$num = @mysql_num_rows($result);
?>
But not on this page:
---BEGIN LONG PHP STUFF --
This page must be called from the pro
Hi,
I have a system of programs that use mcyrpt routines. The first few times
I run through the routine containing mcrypt_create_iv it returns quite
quickly, but afterwards, this function can take from 5 to 15 seconds to
return.
The function wrapping the encryption routines is as follows:
$
one problem on the second script you are trying to use variables that are in
an array.
if this is where you are talking about
you need to specify the array[key]
> while ($myrow=DB_fetch_array($result)){
>
>
> $difference = ($budget - $actual);
$difference = ($myrow[budget] - $myrow[actual]);
>
ah, sorry about the confusion. The url I provided is just an example of a
url containing a question mark for which I'm trying to find a pattern match
in my content text.
-Original Message-
From: Neil Freeman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 4:16 AM
Cc: [EMAI
If you are going to use the javascript solution, be sure to add a
container for browsers that do not support javascript or have it disabled:
Of course, pure PHP is far superior... :-)
Chuck
James Fairbairn wrote:
> just print the
There's a really long method of doing it that would work, but would
involve server-side browser detection, and a database containing a list
of browsers that support print shortcuts.
Stick with the JS.
Mike
[EMAIL PROTECTED] wrote:
>To print:
>Click here or Select File
>and then Print from y
"Chris Bailey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Check out the manual section on default parameters...
>
> But the basics are:
>
> function top($image = "null") {
> if ($image)
Shouldn't that be:
function top($image=null)
if (
Keep getting this error, anyone know why ..
Using dreamweaver and Phakt plugin for PHP and everytime I connect inside
dreamweaver it works fine, but once posted to the web I get an error.
Warning: Access denied for user: '[EMAIL PROTECTED]' (Using password:
YES) in /home/sites/site2/web/atki
Another way to accomplish this, preferred in my mind, is:
while ($myrow = db_fetch_array($result)) :
while (list($key,$val) = each($myrow)) :
$$key = $val;
endwhile;
$difference = $budget - $actual;
. . .
endwhile;
Chuck
At 1:34 PM -0700 10/24/01, Jim Lucas wrote:
>one problem on t
Yes, it definitely should :) Heh, I think I originally had "", but then new
that'd result with the double space problem, so changed it. My bad.
-Original Message-
From: John A. Grant [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 1:28 PM
To: [EMAIL PROTECTED]
Subject: Re:
>Basically, I just want to know if the Key is set, and if so -- remove it...
unset();...
--
Julio Nobrega
A hora está chegando:
http://toca.sourceforge.net
"Jason Caldwell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How can I remove an Array Element fro
I've installed PostgreSQL into /usr/local/pgsql, then I tried
to include into my PHP support for PostgreSQL and made next:
(I had pre-compiled support for mySQL before that)
make clean
./configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning
--enable-track-v
That won't work, as that will only unset the *value* not the *element*.
I think I have to do the following as there isn't a prebuilt PHP array
function that does what I need -- the following should work fine:
$myArray =
array('100'=>'jibberjabber','200'=>'morejibberjabber','0'=>'');
if(isse
Thanks for all the reponses. I know that php is server-side only, and that
certain things
like mouse-overs, are client-side, wasn't sure about the printer function
though. I could
have assumed it was, but I try not to assume anything, but always ask to
make sure.
Regards,
Chip
Mike Eheler <[
1 - 100 of 128 matches
Mail list logo