Is there such a thing as an array_search wildcard? Say I want to find anything
beginning with RE and having zero or more characters following it, how would I do that?
On Friday 21 March 2003 15:55, Dan Rossi wrote:
You have started a new thread by taking an existing posting and replying to
it while you changed the subject.
That is bad, because it breaks threading. Whenever you reply to a message,
your mail client generates a "References:" header that tells all
At 04:43 21.03.2003, Philip J. Newman said:
[snip]
>MY ERROR:
>
>Warning: mkdir(/home/newmanpj/public_html/galleries/philip/20030320223553)
>[function.mkdir]: Permission denied in
>/home/crushme/public_html/siteadmin/upload_set_step3.php on line 72
>
>MY PR
You probably have other fields in the same table that
the client can use to select these people. find out
exactly what he wants. It may be something like "I
want to be able to send to a specific state or
profession" so build a form that allows him to select
the approriate filter.
You might also s
I would use foreach instead of for, your function does not guarantie
checking all elements and also checks elements that might not have been set.
pei_world wrote:
I want to use the following function the test the array elements,
if all element is number return true, otherwise false;
but the comm
Hello,
Is there a way to get the last modification date of a
remote file?
fstat() seems not to work on remote files. Also filemtime() not
work.
Thanks for help.
--
christian rosentreter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Am using dreamweaver and hv an entry form on a page, which works fine,
unfortunately upon page
refresh the data gets entered another time and another time again on
refresh.
Any solutions on this?
Thanks,
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://w
hi,
I include a file called bottom.php which goes at the bottom of all my pages
and looks like this:
I use this to make sure that I haven't left a connection open accidentally,
however I sometimes get an error message even though I am using the @
symbol:
Warning: mysql_close(): n
If it is a http, you can use HEAD request and check Last-Modified
header, if it is ftp, use ftp functions, namely ftp_mdtm()
Christian Rosentreter wrote:
Hello,
Is there a way to get the last modification date of a
remote file?
fstat() seems not to work on remote files. Also filemtime() not
w
use redirect - after inserting the data into the database redirect the
user to another page
WMB wrote:
Am using dreamweaver and hv an entry form on a page, which works fine,
unfortunately upon page
refresh the data gets entered another time and another time again on
refresh.
Any solutions on thi
apologies , sometimes i get lazy :D
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 7:32 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] RE: templating question
On Friday 21 March 2003 15:55, Dan Rossi wrote:
You have started a new thread by taking
$found=array();
foreach($array as $key => $value) {
if(ereg('RE.+',$value)) { // optionaly use eregi for case
insensitiveness
$found[$key]=$value;
}
}
Liam Gibbs wrote:
Is there such a thing as an array_search wildcard? Say I want to find anything beginning with RE and having zero o
Hi,
Instead of the usual flow chart of form.php -> process.php, where
process.php displays a "thankyou" message afterwards, change it to:
from.php <-> process.php -> thanks.php
process.php doesn't echo anything out to the browser at all... it validates
your form data, and depending on what happe
Hello,
It seems that you are not very well informed about the support for PHP in
Dreamweaver MX.
Actually, starting with the "MX" version, the PHP support is included in the
DWMX core (only for MySQL connectivity, though), but you can visually create
websites with ease. That means that you can vi
Hi,
>>If I turn register_global on and print $QUERY_STRING it works,
>> but it wont if I print $_SERVER['QUERY_STRING'].
>> I'm on XP/PHP 4.0.6.
the super globals arrays are availables from PHP 4.1.0 i think, no ?
before this version your should use $HTTP_SERVER_VARS['QUERY_STRING']
upgrade your
Hi Mike,
Try my web site www.phpscriptsearch.com there are a couple of Banner
Management utilities under the Ad Management Category.
HTH
Ade
-Original Message-
From: MIKE YRABEDRA [mailto:[EMAIL PROTECTED]
Sent: 20 March 2003 17:00
To: PHP List
Subject: [PHP] Banner ad solution?
Can
$GLOBALS
Daevid Vincent wrote:
Is there some global array or something that contains all the variable names
(not even values per se) that are used in my script.
Here's the scenario. Like most of you, I do a lot of mySQL db work. So I
tend to use this:
if (mysql_num_rows($result) > 0) {
$row = m
I've been told (in this newsgroup as well :) that PHP automatically closes
the MySQL connections on closing the file or session..
probably when you ended your last '?>' PHP closed the MySQL connection
a way to solve it is to insert the closing-command right after you finished
using the connection
Hi Tim,
I did something similar recently but I had a bit more info stored than
just an e-mail address, so I set-up a search system for the client
whereby he could e-mail all of the people in the search result set.
Just a thought that might give you some ideas for your situation.
HTH
Ade
www.phps
hi there in my form i have a function to output a number of upload form
boxes , this function will post the ammount
function number_upload_boxes($num_boxes){
echo 'url("action",
"action=addphotos").'">'."\n";
echo 'Number of Photos To Upload:'."\n";
echo
Hi all,
I am a sort of newbie on php but my ISP has the opendir restrictions
activated and i would like to have a script to be able to upload files using
an online form.
How can I upload(copy) a file if the opendir is activated on my ISPs server?
Thanks
Brandon
[EMAIL PROTECTED]
--
PHP Gene
Fellow PHP'ers,
Does anyone know how can I send an digitally signed e-mail using PHP? I need
to get a Verisign or Thawte e-mail certificate and use it to sign the
messages I send from PHP. I am not quite sure but I think those certificates
are x509. PGP or GPG aren't options and I need the certifi
By this way, you always reopne a new connection at the end of all of your
page
You just have to use somthing like this...
if($connection)
@mysql_close($connection);
But as it was said, you are not *obliged* to close the connection, PHP will
close it himself.
But you can also close your
Hi,
I have a page that has an include at the top of the page and an include at the bottom
of the page.
in the top include file I have added the command:
ob_start("ob_gzhandler");
in the bottom include I have added:
ob_end_flush(); <-- i thought this was supposed to be run to clean up at the
On Fri, 21 Mar 2003 22:49:05 +0100, you wrote:
>I am currently trying to understand how to place content on a different site
>without giving away my code. SOAP seems to be the solution. I am absolutly
First off, I have to say this is a social problem, not a technical one.
If you're worried about
Hello,
You will find our open source Krysalis platform interesting for PHP web
services.
http://www.interakt.ro/products/Krysalis/
You can also read my chapter for the Wrox (it's bancrupcy is a major
losss..) "Professional PHP Web Services" at
ftp://www.interakt.ro/pub/Krysalis/Professional%20we
I think PHP should have a built in ability tp encode source code, so if someone wish
to protect their source code they should be able to.
I hear lot of people worried about other people nicking their codes.
But i also think this could kill the idea of open source.
What do you guys think?
-awlad
Hi all,
I'm making a bulk send mail program script.
In this script I use an array:
now this works fine: $send_vars = array(
'recipients' => array('[EMAIL
PROTECTED]','[EMAIL PROTECTED]','[EMAIL PROTECTED]')
There are programs out there that do this for you. Buy/use them if you feel
you need to. I don't.
---John Holmes...
- Original Message -
From: "Awlad Hussain" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 21, 2003 8:58 AM
Subject: [PHP] Built in source encode function..
Hi all!
I currently have PHP Version 4.3.1 and GD Version 2.0.11 up and runing.
When I'm rtying to ImageCreateFromJPEG and creatre a PNG thumbnail of that
image I get result in 256 colors (I guess) - it looks ugly.
When I roll back to GD Version 1.8.4 everything works fine - thumbnails are
TrueCol
Use Zend Encoder/Engine, thats how zend makes money
Piero
-Mensagem original-
De: Awlad Hussain [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 21 de março de 2003 10:59
Para: [EMAIL PROTECTED]
Assunto: [PHP] Built in source encode function..
I think PHP should have a built in abili
Hello,
I have some web application which is on some rented server. I have not
root privilege just FTP access to application web folder. OS is Linux,
web server Apache/1.3.27 and PHP version is 4.3.1
I need to define Linux task which will, in defined time, execute some PHP
scrip
> $found=array();
> foreach($array as $key => $value) {
> if(ereg('RE.+',$value)) { // optionaly use eregi for case
> insensitiveness
>$found[$key]=$value;
> }
> }
Thanks, Marek. With some minor adjustments, this worked out fine!
--
PHP General Mailing List (http://www.php.net
"David Otton" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Fri, 21 Mar 2003 22:49:05 +0100, you wrote:
>
> >I am currently trying to understand how to place content on a different
site
> >without giving away my code. SOAP seems to be the solution. I am
absolutly
>
> First off, I
I seem to remember reading somewhere about compiling PHP pages to
'bytecode' thus removing the need to distribute the source PHP pages.
I'm going to have the need down the road to distribute a PHP based app
to others and am curious about the same "hiding code" issues. I'm not
all that worried about
look up cron
"Nenad Djordjevic" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I have some web application which is on some rented server. I have
not
> root privilege just FTP access to application web folder. OS is
Linux,
> web server Apache/1.3.27 and PHP ve
I think I might have had this problem a long time ago, but it wasn't resolved, because
here it is again. My carriage returns (\r\n) aren't getting e-mailed.
I have some text:
The quick brown fox\r\n\r\n
jumped over the whateverwhateverwhatever\r\n\r\n
yadda yadda yadda.
I want to create double-s
What about cookies - someone said if you put no time limit on a cookie it
dies when you leave the site - I'm not sure about this, but any help is
appreciated.
- Original Message -
From: "Justin French" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>; "PHP General"
<[EMAIL PROT
Hey all.
I'm having a difficult time adjusting my php.ini file to display detailed
error messages in my local testing environment.
For example, when a query returns an error, I do not get the line # where
the error occurred or really any info other than:
"Query not executed. Unknown column 'Arra
I think it's defined as "when the browser is closed", not "when the browser
is no longer in your domain" -- but you'd have to ask an expert or read the
specs to be sure.
Justin
on 22/03/03 2:27 AM, Beauford.2002 ([EMAIL PROTECTED]) wrote:
> What about cookies - someone said if you put no time l
There are several, probably the most talked about is Zend Encoder
(http://www.zend.com). Zend also has a pretty attractive small business
program.
The APC (Alternative PHP Cache) also has a script that will enable you
to write out bytecode PHP scripts that can be run on any PHP server with
APC in
You want to look into fxphp. Its shareware or freeware plug-in, I
forget. I've downloaded it and read the instructions, but haven't
played with it. It hasn't been tested with FM v4.1, which I am still
using. Accessing FileMaker is kind of convoluted because of all the
layers you have to go thro
*guess* you're including the footer twice, or are calling ob_end_flush()
more than once.
not anywhere near sure though!!
Justin
21/03/03 11:33 PM, Mr Percival ([EMAIL PROTECTED]) wrote:
> Hi,
>
> I have a page that has an include at the top of the page and an include at the
> bottom of th
Managing user login
Whats the best option to use.. cookie?? or session??
Currently i am using cookies and sometime user complain they can't login,
what would you suggest?
-awlad
> -Original Message-
> From: Justin French [mailto:[EMAIL PROTECTED]
> Sent: 21 March 2003 15:59
>
> on 22/03/03 2:27 AM, Beauford.2002 ([EMAIL PROTECTED]) wrote:
>
> > What about cookies - someone said if you put no time limit
> on a cookie it
> > dies when you leave the site - I'm not
I use the set_error_handler and have a local function that dumps that
stuff. I then redirect all of that to a log file on disk so the user
doesn't have to see it.
Check http://www.php.net/manual/en/function.set-error-handler.php
There's a whole section in the manual that deals with error handling
It's a "session" cookie, the browser clears it when it's closed. IIRC
you set the time to 0 to turn the cookie into a session one. Not sure
how it'll work with sessions though.
> -Original Message-
> From: Justin French [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 21, 2003 9:59 AM
> T
You can always roll your own, it's not that hard at all. Here is an
example:
ob_start();
include("templateFile");
$tpl_file = ob_get_contents();
ob_end_clean();
The contents of your template file are now in the variable $tpl_file
and you can you str_replace to input the data. Remember that
str_
I am having to edit a php script that one of our previous employees had
written and I am having a problem understanding the preg_match_all function.
preg_match_all("||U", $read, $result2);
here is what I THINK I know: The | at the beginning signifies the start of
the text to search for, then th
It really depends on what you want to do.
Cookies are client-side information and thus you can run into issues where
clients don't allow cookies, have cookie-blocking apps or have outdated
software that doesn't support them (though the latter continues to become
less of an option as time passes).
It's in the manual:
/U/ (PCRE_UNGREEDY)
This modifier inverts the "greediness" of the quantifiers so that
they are not greedy by default, but become greedy if followed by
"?". It is not compatible with Perl. It can also be set by a (?U)
modifier setting within the pattern.
Jay Fitzg
Thanks Mike,
I think using session will solve the problem of some user having
difficulties in loign.
- Original Message -
From: "Mike Brum" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 21, 2003 4:12 PM
Subject: RE: [PHP] Cookie or Session??
> It really depends on what
I will be out of the office starting 21/03/2003 and will not return until
14/04/2003.
I will respond to your message when I return.
For the latest data on the economy and society
consult National Statistics at http://www.statistics.gov.uk
*
Greetings all,
Can someone tell me where is the limitation on the number/size of cookies
that could be used ?
Assuming we have :
This is what php return :
Array
(
[DX_A] => Array
(
[4] => e
[5] => e
[6] => e
[7] => e
[8] =>
I'm wrapping up an MVC implementation for PHP. Everything is working
splendidly except that redirects seem to be loosing session data. Here is
the basic logic
1) on a form, user enters data hits submit
2) data validates OK, data is saved and $_SESSION['MVC_message'] is set to
'Save was success
On Saturday 22 March 2003 00:18, Awlad Hussain wrote:
> I think using session will solve the problem of some user having
> difficulties in loign.
Sessions still require that the browser accept a session cookie (temporary
cookie that is not (or should not be) stored on disk). Some browsers allow
If your session id is not stored in a cookie (if url rewriting is on),
then the $url page may not be getting your session id, and thus is
starting a new, empty one?
Tony Bibbs wrote:
I'm wrapping up an MVC implementation for PHP. Everything is working
splendidly except that redirects seem to b
Thanks Darren.
I'll look into it, when I get a spare moment,
--Noah
"Darren Young" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I use the set_error_handler and have a local function that dumps that
> stuff. I then redirect all of that to a log file on disk so the user
> doesn't
I need a lot of help trying to get HTML 2pdf to work. If anyone here has
done it before, please drop me a line and help me out. I have some
questions about capability and I simply can't seem to get it working.
Thanks.
- Anthony
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
Hi,
Just a thought about sessions, they still rely on cookies working, unless
you pass the session id with every link on the page. If you set your
php.ini file to automatically put the session id in ever link on your page,
that's great, but what if you don't have access to the php.ini file whic
Are you using something like $_SERVER['HTTP_HOST'] or $_SERVER['PHP_SELF']
to get the base URL for the app when doing the redirect? If you have the
whole URL typed in and switch from something like www.mydomain.com to
mydomain.com, the browser may think it's a different site and loose the
cookie wi
Look up the specs on the limitation of cookies and you will then know the
limitation of php when it comes to cookies.
Jim
- Original Message -
From: "Hatem Ben" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 21, 2003 9:10 AM
Subject: [PHP] where is cookie limitation on php
Hey all.
I'm looking for guidance from any PHP Gurus, or gurus in the making re:
whether to use a function based design or a switch statement based design
for a multi-sport data driven sport report.
Alright, here's the deal:
Last year I developed a data driven hockey report for a friend -- the s
I´m a newbie on this class. But i´m getting this error.
if I define a constant using define('',''); I get template as just if doesnt
has parsed anithing. all constants name´s are showed without changing the
name per values. So, when i define the constant as a variable $x = ''; it
works fine.
anyo
Hi, I'm Frank
I have problem when I use conection odbc, give me a error:
PHP Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found
and no default driver specified, SQL state IM002 in SQLConnect in
c:\php\includes\adodb\drivers\adodb-odbc.inc.php on line 166
the DSN yes
Is isset() better than $ != ""?
Often, I may have a 0 as values. While $ != "" doesn't recognize 0s (as in, that if
would be false), isset() seems to work. Should I change all my $ != "" to isset()s, or
are there other factors I should check?
Dose any one have any tips on making a very simple search engine, that
only searches in two fields of a mysql table.
I just need some pointers to know where to begin.
Thanks, David
Responding to myself:
<>
Conversely, what about empty(). Is that a better test for if a value could
be 0 or 1 or 2 or ABC?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It depends on what you're trying to test.
If you want to find out if a variable is explicitly set to an empty
string, then isset() is not your answer. If you want find out if a
variable exists or is set to a non-null value, isset() will work.
However, it is not always going to give you the results
Hello!
I am working on a site that I thought was working just fine - I tested it
in Netscape 7 and IE. However, several people trying to access it using
Netscape 4.7 have been having problems. Specifically, there is a search
that returns linked results. The link transfers the result's id to the
Hi,
I'm not sure if this is a PHP or a JavaScript question but I have found the
following code to enable me to select all of the checkboxes on my form.