iration.
=dn
> may be
>
> $argv
> Array of arguments passed to the script. When the script is run on the
> command line, this gives C-style access to the command line parameters. When
> called via the GET method, this will contain the query string.
>
> $argc
>
> Con
> Hello guys
>
> function replace_text_smiley(){
>
> global $comment;
> // To add a relation between a text smiley a an image smiley do this:
> // $faces["text smiley here"] = "img tag to image smile here";
>
> $faces[":)"] = "";
> $faces[":P"] = "";
> $faces[":D"] = "";
> $faces[":("] = "";
> $fa
> I am writing a script using php's command line ability and I am lost on
> how to work with a file when I don't kow what the file's name is.
>
> Example:
> script.php -f
>
> In my script, how do I reference the file when I have no idea what it's
> name is going to be?
>
> The scrip will get
John,
Netscape! Differences between servers AND differences between browsers AND differences
between in-browser and
command-line operations!
Isn't life fun?
Like you I'm messing around with some of these differences as part of a bid to
'convert' an existing set of
scripts from browser i/f to c
> Jokes aside, I still don't get it.
=the word "it" is part of the difficulty everyone faces in thinking about whether they
could help or not - what
"it" is, is not apparent
1 there is a problem with a mysql_pconnect() call, and
2 there is a problem with a mysql_query() call.
Which one is "it"?
Imar,
The global array is being defined in the mainline, but not populated. What happens if
you set element 0 to some
value (to take up some storage space first) and then try the switched function calls?
When you say "Alas, this also emptied the array each time I went from one function to
anothe
In an on-again-off-again desultory style, I keep trying to find the time to study
template systems - and quite
separately see if I can find a practical use for XML.
The idea of a template system is that the HTML code/presentation of the final view to
the user/browser, can be
devised/maintained
Is there someone 'up' on the way Apache works who can offer some comment please?
Th "how do I display 'please wait' " question was asked by someone (else) last week.
The standard answer is
"no" - server-side PHP assembles an HTML page, and when it is completed the whole page
is transmitted from
> > I teach law at a university .. I also run the website here ...
>
> Thankfully Tasmania is not considered part of Australia. :)
>
> *troll bait away*
=but are you trolling for bad lawyer jokes to wind up brendan, or inviting the rest to
take on the Aussies?
=Tasmania advertises itself as
> I have following code, sorry it's pretty big for posting, i want to
> split the output into 2 colomns, been trying almost all still can't
> get it working
Harik,
First off, have you checked the manual
(http://uk.php.net/manual/en/function.mysql-result.php) and the
recommendations against th
Or do you really want: First array:
1
3
5
Second array
2
4
6
Corresponding to the two columns across the screen, and controlled by the same
iteration index?
=dn
- Original Message -
From: "Daniel Harik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 01 November 2001 07:25
Subject:
Wow, there are some long and curly ways to use RegExp-s aren't there? I'm not very
good at them (and I hear that
they can be expensively inefficient) so I tend to look elsewhere.
Check out pathinfo -- Returns information about a file path
array pathinfo (string path)
pathinfo() returns an associ
Mike,
> We have PHP installed as an ISAP module on our W2K IIS5 server and
> its operational with no problems - phpinfo() runs just fine.
>
> But - When I uncomment the php_mssql.dll extension in php.ini I get an error
> when PHP starts up saying it cannot find the .dll file.
>
> The extension di
> I am trying to ad extra headers to email's I am sending through php. I
> want to ad Reply-To: and Bounse-To: addresses. But when add them useing
> the forth feild of the mail() funtion.
> mail($recipient,$msubject,$message,"Reply-To: $sender");
> but for some reason when I send this e-mail i
Somewhere on my travels around the many PHP/script sites, I'm sure that at one time I
noticed a date-display
utility. I cannot find it again. Please would someone point the way...
What I'm looking for:
displays a form with a variety of date/time fields, user enters a date/time into
various fiel
Would the annotated manual LXV. "PHP options & information" be of any use?
=dn
- Original Message -
From: "jennyw" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 03 November 2001 03:18
Subject: [PHP] Re: Questions about php.ini
> This is a dedicated server, and I have several sites
> Maybe I should be posting this on the Procmail list but someone here
> might have a non-Procmail solution. I'm trying to get a PHP script to
> process incoming email. The script will lookup a database and do
> something depending on the mail headers. I'm running on a FreeBSD
> virtual server acc
Hi Sundog,
Can help you with dates (but no, if you want that kind you'll definitely not be
wanting my advice...)
- Original Message -
> I am trying to determine if todays date ($today) is within a week
> ($startcheck) of a given date ($dob). This is what I have so far.
>
> $todaydate = (
Probably not your problem but shouldn't your php line be as follows:
ie without the space between Hi all,
>
> I've just finish upgrading my apache server to apache 1.3.22,
> I have also compiled my php-4.0.6 with it.
>
> When I try to test it using
>
> saved as php, the browser tries to downlo
> > Is is advisable that I mail lots of users from a database via one call to
> > mail() ?
>
> why not make a loop and send to one email at a time. if you have over
> 1000 I would use something else than mail(), ex direct to smtp with sockets.
Henrik,
It is my opinion (too?) that mail() is di
Hi Sjoerd,
> When i send a dynamic HTML newletter, which contains newsitems in the
> database I now send the e-mail with a link to the image on the webserver.
> What i would like to do is instead of linking the image, send the image as a
> sort of attachment. So an internetconnection is not requ
Third db question today: do folk know there is a (lightly loaded) '[PHP-DB] list' with
some v.competent members?
Hi Alexander,
- Original Message -
> Let me start by laying out some facts:
>
> SELECT e.NAME AS customer, g.NAME AS driver_lastname, g.FIRSTNAME AS
> driver_firstname, $Com
Rudolph,
Mail() is v.finicky!
Windows machines need more than the \n - what are you running?
Have you tried putting some string of characters into the (text) msg body?
Can you send us a copy of the actual email msg showing the headers etc (output as
received at the POP/IMAP
server) - after clippi
BTW, the official explanation is wrong.
"local part this variable is destroyed and declared again"
is incorrect. The global variable is not destroyed. The local namespace
pushes the variable name onto the stack and gives it a value for the
duration of the function. Every time you try and access
Chris,
Apologies for the belated response/absence.
I find myself constantly referring to Welling and Thomson ("PHP and MySQL Web
Development", 0-672-31784-2) and
happily recommend it to you. Apart from referring to the user as "she" which (both men
and women say) interrupts
the smooth flow of t
Have a look at:
http://www.faqts.com/knowledge_base/view.phtml/aid/863/fid/129
May be of some use.
Neil
Derek Mailer wrote:
> I have a problem with a form on my website.
>
> it's part of a shopping cart application, whereby the form consists of a list of
>products and th
How about MySQL Front (www.mysqlfront.de). Couple of 'features' here and
there but overall pretty good.
Neil
Hai Nguyen wrote:
> Hi,
>
> I am a newbie at this. I was just wondering if there is a Graphical
> User Interface for MySQL?
>
> Cheers,
>
> Hai Nguyen
I'm using gd png in 4.0.6 with no problems (Windows). What problems are you
having?
Robert Covell wrote:
> A question about different release versions of PHP.
>
> Why do things like png from gd 1.8 work in 4.0.4p1 and stops working in
> 4.0.6? We had to go back to 4.0.4p1. I have seen similar
the file was ? like .jpg , .png etc.
Any help appreciatted , i am really stuck on this ;0)
Thanks
Neil M
--
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]
What warnings are you receiving? Many can be avoided by doing various
checks:
e.g.
if (!isset($some_variable))
...some error code
else
...all is well
others which may be useful:
function_exists()
file_exists()
HTH
Neil
Yoel Benitez Fonseca wrote:
> Hi!
>
> There is in
r rather than strong relationships with child
nodes.
Your choice.
Hope that helps,
Neil
-Original Message-
From: E K L [mailto:[EMAIL PROTECTED]]
Sent: 23 March 2001 08:29
To: [EMAIL PROTECTED]
Subject: [PHP] Creating tree using table?
Hi all,
Currently, i'm trying to write a pr
The OCIFetchStatement() function returns a resultset to PHP that is actually
a multi-dimensional array. You can randomly access this array however you
like.
-Original Message-
From: Thies C. Arntzen [mailto:[EMAIL PROTECTED]]
Sent: 19 March 2001 10:43
To: Andrew Halliday
Cc: [EMAIL PROTEC
Yep, you're right. But this actually makes sense. Parse errors mean that
your code is just plain wrong and cannot/will not run with any level of
error-reporting.
>From a technical stand-point it also makes a lot of sense. Imagine if the
parser fails 1/2 way through parsing code before it gets to
You need another level of indirection. Try:
$constant_value = $$constant_name ;
-Original Message-
From: Geoff Caplan [mailto:[EMAIL PROTECTED]]
Sent: 27 March 2001 14:19
To: PHP General List
Subject: [PHP] Dynamic constant names
Hi folks
I am trying to create a constant name dynamic
No.
You could pass the constant __LINE__ to your function, but I assume that you
want this feature to be generically available within all functions. If you
really want to be able to track your call-stack then you'd be better off
using a development environment like the Zend IDE and debugger.
Alter
Pass by reference itself is not deprecated, just call-time
pass-by-reference.
I believe this means your calling line of code being prevented from
specifying that it should be invoked as pass-by-reference.
So,
function NormalPassByRefence(&$prmValue)
{
$prmValue ++;
}
$n
s by
reference makes script execution a little slower under PHP4.
--
Yasuo Ohgaki
""Neil Kimber"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Pass by reference itself is not deprecated, just call-time
> pass-by-refer
You need a 2 step approach.
1. extract the keys from your array into another array using array_keys()
2. check the result using in_array() to see if you key exists.
-Original Message-
From: Knut H. Hassel Nielsen [mailto:[EMAIL PROTECTED]]
Sent: 30 March 2001 10:56
To: [EM
SOAP stands for Simple Object Access Protocol.
It's the XML version of RPC/RMI. It's actually a specification that
describes how interfaces from different systems can communicate with each
other. It's called an IDL (Interface Definition Language).
This is going to be big because it is a very larg
From: David VanHorn [mailto:[EMAIL PROTECTED]]
Sent: 03 April 2001 17:59
To: Neil Kimber; Paulson, Joseph V. "Jay"; 'Stewart Taylor'; 'Brandon
Orther'; [EMAIL PROTECTED]
Subject: RE: [PHP] New buzz SOAP?
>
>This is going to be big because it is a very large
Heard whispers that it could be next week. Testing isn't over. They're on
the 6th release candidate.
-Original Message-
From: Dominique Paquin [mailto:[EMAIL PROTECTED]]
Sent: 05 April 2001 19:54
To: [EMAIL PROTECTED]
Subject: [PHP] Release of PHP 4.05
Greetings!
Anyone knows when PHP
Dump to file as comma separated and then load into Excel. Excel reads comma
separated files. In the file open dialog you can select file type to be .txt
(csv).
If you want to be really sick then you can set up an ODBC connection to a
comma separated file and then use MSQuery inside Excel.
Anothe
We've built a framework that gets around this, without using HIDDEN form
fields. It's quite complex so I'll give a high level description, it should
give you some ideas. Our framework works on the basis that every page
consists of a single form that submits to itself (same URL). All page/form
elem
jects are passed by value to
functions. Many functions do not actually change the contents of the object
and just use the values inside it. Reference counting improves performance
by saving resources involved in the creation of a new copy of an object.
Hope this helps.
Neil
-Original Message-
Not sure about your code, but what you describe is perfectly faesible in
PHP.
If you are setting values in one part of your code and cannot see these
values in another part of your code then I would suggest that you have
reference problem somewhere. The code you provided looks fine, maybe the
prob
Not sure I fully understand you. I'm assuming that you mean that you prefix
each member method with a particular string that relates to the class.
By doing this you lose a key strength of OOP. Namely the ability to write
polymorphic code.
In effect, you would not be able to do the following:
cla
$i < $number)
{
$text = mysql_result($result, $i, "name");
print "$text";
$i++;
}
}
mysql_free_result($result);
mysql_close();
?>
--
Thanks, Neil
-
utputs the value to screen why should this cause a problem if it is removed?
Or could it be some other problem?
Neil
PS: Here is my updated code:
--
Menus test
0)
{
echo "\n";
echo "text = new Array(";
while ($i < $number)
{
$text
Thanks for the clarification Sheridan - I think it must have been end of day
madness on my part :) I see what's going on now with the 'print' line.
Cheers,
Neil
Sheridan Saint-Michel wrote:
> ***
> This mess
Yeah thanks Tim. 5:30 in the afternoon does bad things to my logical thinking.
Not the best time to try and learn PHP :)
Neil
Tim Ward wrote:
> I'm not sure if this is the problem but it is an important point. print
> "\"$text\""; does not output anything to
d php sections are displayed. Do I
need to somehow configure Apache to run php scripts from other locations
or am I doing something stupid?
Hope you can help,
Neil
Email: [EMAIL PROTECTED]
[EMAIL PROTECTED]
--
PHP Gener
ter:
http://localhost/ife/index.htm
to get to this .htm file. How can I setup Apache to automatically 'pick
up' a set .htm file (ie, http://localhost equals "P:/My
Projects/Storyboard/ife/index.htm").
Any help would be greatly appreciated.
Neil
You appear to have a typo in your httpd.conf:
Action application/x-httpd-php /Php/php.exe
should be as follows: (note the ")
Action application/x-httpd-php "/Php/php.exe
Hope that helps,
Neil
[EMAIL PROTECTED] wrote:
> **
print "A";
}
class B extends A{
function foo(){
A::foo();
print "B";
}
class C extends B{
function foo(){
B::foo();
print "C";
}
$ba
parameterized macros will be implemented
in future PHP releases?
Thanks,
Neil
--
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]
add the
slashes in the first place? (I'm using PHP 4.0.4pl1
and don't know if this is just a bug or whether
it was meant to be this way).
Thanks,
Neil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PRO
that I can achieve the magic_quotes_gpc effect without
modifying the php.ini file? I guess I can do a
set_magic_quotes_runtime(0); I am not sure if
this is what I need in my situation.
Thanks, and thanks for PHP!!!
Neil
On Sun, 9 Sep 2001, Rasmus Lerdorf wrote:
> > I would like to know why PHP
while I run Apache at
school I am foreced to use IIS at work. Is there an equivalent of
the .htaccess file for IIS? I wish everyone were using PHP with
the Apache web server!
Thanks!
Neil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
ne to?
extension_dir = ./
Any help would be greatly appreciated.
Neil
Email: [EMAIL PROTECTED]
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
The specified
procedure could not be found"
Any ideas?
Neil
Girish Nath wrote:
> hi
>
> copy the php_gd.dll into the extentions sub-directory where you installed
> php (you should already have a load of other .dlls in there too)
>
> change the extension_dir in php.ini
d let you know.
Neil
Girish Nath wrote:
> Hi
>
> I've never seen an install that has only those two directories :) Anyway,
> try doing a search on your machine for files that match php_*.dll .It might
> help you track down where all the extensions have been installe
Private variables will be included in Zend 2.0 (99% likely)
>From what I've seen private functions will not be included.
Protected (ala Java/C#) variables and functions aren't being considered yet.
> -Original Message-
> From: Jason Stechschulte [mailto:[EMAIL PROTECTED]]
> Sent: 19 Sept
number;
$$str_category = $genre_desc;
$current_field_number++;
}
###
Any help would be greatly appreciated.
Neil
Email: [EMAIL PROTECTED]
[EMAIL PROTECTED]
ts.CompID=competitor.ID
AND productcategory.ID=\"$cat\"
AND competitorproducts.CatID=productcategory.ID"
);
Any help would be mostly appreciated.
Thanks.
Neil Silvester
Webmaster / Systems Administrator
Heat and Control Inc.
:
#
alert(\"submitted\");";
}
else
{
echo "alert(\"not submitted\");";
}
?>
#
Neil
Email: [EMAIL PROTECTED]
[EMAIL PROTECTED]
OK cheers, that method seems to work ok.
Thanks, Neil
Michael van Bracht wrote:
> - Original Message -
> From: "Neil Freeman" <[EMAIL PROTECTED]>
> To: "PHP General" <[EMAIL PROTECTED]>
> Sent: Friday, September 21, 2001 3:30 PM
> Subjec
;;
}
else
{
echo "alert(\"not submitted\");";
}
?>
#
Neil
Email: [EMAIL PROTECTED]
[EMAIL PROTECTED]
hand to show up over the image. change the tag to
>
>
>
> --
>
> Chris Lee
> [EMAIL PROTECTED]
>
> "Neil Freeman" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi,
> >
> > I have a
= "C:/PHP/ext/"
extension=php_mysql.dll
Remember to copy 'libmysql.dll' to your Windows System directory (e.g.
C:\Windows\System32\). If I remember correctly I also had to remove PHP
4's 'php4ts.dll' from the System directory - maybe this was just getting
e of the module before attempting to change any of it's
values:
php_value auto_prepend_file "groove.php"
Neil
This communication is confidential to the intended recipient(s). If you are not
that person you are not permitted to make use of the information and you are r
Just a quick question. What is the purpose of the underscore character
within the following echo statement? I had a quick look in the manual
and archives but couldn't find any reference to it.
Thanks,
Neil
This communication is confidential to the intended recipient(s). If you are not
Marek Kilimajer wrote:
***
This Email Has Been Virus Swept
***
Neil Freeman wrote:
Just a quick question. What is the purpose of the underscore character
within the following echo statement? I had a quick look
ones for PHP.
Please advise
Thanks
Neil
contains a value name_domain that apparently is appended to the
alias in tnsnames.ora but accounting for this still doesn't let me connect
to oracle . It's as if tnsnames.ora cannot be found. I've changed the
permissions to 777 for the whole directory structure and I can successfully
use tnsnames.ora with sqlplus or tnsping.
Does anybody have any ideas what is going wrong? Is this a bug?
thanks,
neil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Why not just use a switch?...
switch ($x) {
case $a:
case $b:
case $c:
case $d:
//do whatever you need
break;
default:
//catch any other values here
break;
}
Neil
BOOT wrote
20060613
Zend Extension 220060519
Production Config:
PHP Version 5.2.1
Build Date Apr 25 2007 18:04:12
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Am I missing something obvious here? Any help gratefully receive
d
the issue. Thanks again for your help.
Cheers,
Neil.
On Nov 6, 2007 12:01 PM, Robin Vickery <[EMAIL PROTECTED]> wrote:
>
> On 06/11/2007, Neil Saunders <[EMAIL PROTECTED]> wrote:
> > Hi All,
> >
> > I'm experiencing some differences in in the return values
Or another way...
for ($value = 0; $value <= 2000; $value += 100)
{
echo sprintf("%s", $value,
(($min_rent==$value) ? " selected=\"selected\"" : NULL), $value);
}
Hulf wrote:
> **
> This Email Has Been Virus Swept
> **
> I am outputting a s
You're missing a right bracket within the if statement.
Paul Furman wrote:
***
This Email Has Been Virus Swept
***
I don't see what's wrong with this if statement:
while ... and ... {
if (($pic_num + 1) <= $
If I remember correctly the second parameter of move_uploaded_file()
needs to be the full filename, ie path plus required filename.
so...
if(!move_uploaded_file($_FILES['myfile']['tmp_name'],
("/var/www/html/upload/" . $_FILES['myfile
How about this - untested by the way:
$order = "ASC";
if (isset($_GET["ORDER"]))
{
$value = $_GET["ORDER"];
if (($value == "ASC") || ($value == "DESC"))
{
$order = $value;
}
else if ($value == "RAND")
{
$order = "RAND
Take a look at explode()
www.php.net/explode
Neil
Jeff Oien wrote:
***
This Email Has Been Virus Swept
***
If I have a list like this:
Firstname1 LastName1
Firstname2 Lastname2
etc.
I can split the names by
Is there anything in PHP which would allow me to check the requested range
of bytes by an client?
Basically one of the download scripts I made some time ago got hit by a load
of requests for a file, but the server was giving back "416 Requested Range
Not Satisfiable". I assume that the user is
Marek Kilimajer wrote:
Try http://pear.php.net/package/HTTP_Download
Cheers for that, I think I just found a reasonable method to do a short
term fix, though I might totally redesign my download application to support
resumable download agents. I looked on the HTTP 1.1 protocol and found th
ction (c=0x2831d8, csd=0x283100) at
connection.c:176
#29 0x000e1574 in child_main (child_num_arg=0) at prefork.c:610
#30 0x000e16c0 in make_child (s=0x1b80b0, slot=0) at prefork.c:650
#31 0x000e1878 in startup_children (number_to_start=5) at prefork.c:722
#32 0x000e1f8c in ap_mpm_run (_pconf=0x16cda8, p
r handling, you can
take this and extend it into quite a useful system for tracking bugs. You
could add system flags for turning debug on and off, alter levels of
debugging etc...
regards,
Neil
p.s. assert() is cool too.
-Original Message-
From: Richard Lynch [mailto:[EMAIL PRO
installed on the machine.
My path doesn't point anywhere that seems problematic.
The IDE files appear to have installed correctly.
Does anyone have any ideas that I can try before I start pulling my hair
out?
Thanks,
Neil
--
PHP General Mailing List (http://w
I've got the Zend IDE and debugger up and running. But, the debugger isn't
picking up my 'Local Value' for the include path. It only seems to have the
'Master Value'.
Has anyone else experienced this? And more importantly, how do I get around
this problem.
--
PHP General Mailing List (http://w
Greetings,
I'm hoping to visit the Stuttgart area* for one week ~ ten days
commencing c.Friday 19 August, to visit my brother-in-law and take a
short vacation.
If there are any PHP-related gatherings or activities I would be
interested to meet up (last time I tried, I missed out by one week.
401 - 489 of 489 matches
Mail list logo