Tijnema wrote:
On 7/31/07, John Pillion <[EMAIL PROTECTED]> wrote:
Not exactly a php question. but I'm doing the project in php, so does that
count? ;-)
A client of mine wants a simple audio recorder for users to record a short
clip/message for other users. anyone recommend any simple audio r
Edward Kay wrote:
-Original Message-
From: Hulf [mailto:[EMAIL PROTECTED]
Sent: 31 July 2007 12:11
To: php-general@lists.php.net
Subject: [PHP] if inside an echo.
I am outputting a selectbox and want to do the follwoing. How can
I add the
IF statement inside the the echo?
for ($v
KVIGOR wrote:
Never Mind I figured it out.
""KVIGOR"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
If magic quotes is on and I dont have access to the php.ini.
Is there any way I can strip quotes from the form field with out using
AJAX?
I have no idea how you would do it _W
Michelle Konzack wrote:
Sorry for the late fdrop in...
Am 2007-07-28 21:31:01, schrieb Børge Holen:
On Thursday 14 June 2007 00:41, Philip Thompson wrote:
On Jun 13, 2007, at 1:15 PM, Richard Lynch wrote:
On Wed, June 13, 2007 12:21 am, Crayon Shin Chan wrote:
Do students and interns still
Tijnema wrote:
On 8/2/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote:
Dan Shirah wrote:
Greetins all,
In my form I have an area where the user enters in the payment amount:
This is all fine and dandy and works as generically as it can. BUT, the
problem is that I need to make sure the user didn
Al wrote:
nicolas figaro wrote:
Hi,
I'd like to convert a string generated by a mail client like the
following one : "test nf =?ISO-8859-15?Q?=E9_123456789012?="
back to the original one
"test nf é 123456789012".
Is there a (simple) way to do this ?
thanks
N F
Yes, with a regex expre
Ryan A wrote:
--- Chris <[EMAIL PROTECTED]> wrote:
Ryan A wrote:
Hi,
in phpmyadmin, in the SQL part where you can write
a
query if I have a double update such as this:
it works without a problem as I am ending each sql
statement with a simicolon, but in my scripts when
I
try to ru
although not specifically mentioned anywhere, make sure that your
libmysql.dll file is *also* in the PATH of windows. If PHP misses that
lib, it will bail out with the error below aswell.
- tul
Bagus Nugroho wrote:
if windows, you may add php directory to the PATH of Windows [Environment
Var
Nadim Attari wrote:
Hello,
I have some text in a table... the text contains hyperlinks (but not
html coded, i.e. plain "Some text...http://www.something.com";)
When i retrieve these texts from the table, i want the hyperlinks to
become clickable, i.e.
"Some text...href="http://www.somethin
I'm not quite sure, but consider the following:
Considering the fact that most JPEG images are stored with some form of
compression usually ~75% that would mean the original image, in actual
size, is about 1.33x bigger than it appears in filesize. When you make a
thumbnail, you limit the amoun
Mathijs wrote:
Mathijs wrote:
Hello there,
I Have a question about cURL and sending POST data.
I have an array with values which are needed for an POST.
There is one value which starts with an @.
This gives me a error: ErrorNo.: 26, ErrorMsg: 'failed creating
formpost data'.
This is becous
Dave M G wrote:
PHP list.
This is another regular expression type of question.
The very handy PHP function trim() takes excess white space off the
beginning and end of a string.
I'd like to be able to do the same thing, except instead of white
spaces, trim excess slashes: /
S
Dave Goodchild wrote:
Hi all, this may seem like a silly question, but I am creating a library of
html form element generation function, for example a textarea fucntion that
takes rows and cols as parameters, a function that generates a day, month
and year select box, etc. My question is - is it
André Medeiros wrote:
Hello everyone.
This may seem as a silly question, but I went through the
documentation and it wasn't explicit on this issue, at least for me.
Let's say that I'm on an 128kb/s upload. I need to upload an 100mb
file through a POST. PHP has, by default, 90 seconds execution
Micky Hulse wrote:
Hi,
I am slowly learning how to use classes properly... quick question:
# Create the object:
$doSplash = new RandomSplash(); // Create the object.
Shouldn't I be able to call that object like below, throughout my page:
...HTML...
randomize('css'); ?>
...HTML...
randomize('x
Mathijs van Veluw wrote:
Hello there,
I need to have a selectbox filled with the available timezones of PHP.
We are using v5.1.x, and it supports the date_default_timezone_set() etc..
As value you can give a string to what timezone.
I want all these strings within an array or something so i can
Pawel Miroslawski wrote:
On 9/20/06, Kae Verens <[EMAIL PROTECTED]> wrote:
James Tu wrote:
> Hi:
>
> I'm trying to setup a dev environment using Apache, MySQL and PHP...to
> develop an application that will go to production.
> What is the most stable versions of the AMP components should I can
Barry wrote:
Jabez wrote:
I want to use PHP to show the contents of the DAT from back to front.
HOw do
I do that?
Thanks!
Put it into an array and sort it backwards with krsort()
Greets
Barry
why use such an cpu-intensive function? using array_reverse is a lot
faster...
- tul
Jabez Gan wrote:
Sorry im new but, how do we read from a file to an array? I've studied C but
not with PHP and it's not working for me... Suggestions?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 9:58 PM
To: [EMAIL PROTECTED];
List Manager wrote:
jonathan wrote:
I'd like to return the first key value in the following array such
that England would return 1 rather than 3 which is the second key
value. Any help would be greatly appreciated.
$c[1][]="Vietnam";
$c[1][]="China";
$c[1][]="Thailand";
$c[1][]="England";
Barry wrote:
Evert wrote:
Hi all!
Recently I am getting the following error on some of my PHP-enabled
websites. I think it started when I went from PHP4 -> PHP5.
Here is an example (from http://wos.poboxes.info/) :
Fatal error: Call to undefined function preg_match() in
/var/www/wos.pobo
Anthony Ettinger wrote:
On 3/28/06, Joe Henry <[EMAIL PROTECTED]> wrote:
On Tuesday 28 March 2006 1:12 pm, Jochem Maas wrote:
{$k})) {
return $this->{$k};
}
throw new Exception("non existing property!");
}
function __set($k, $v)
cybermalandro cybermalandro wrote:
So, I have an array that looks like this
rray(3) {
[0]=>
array(8) {
["line"]=>
string(1) "1"
["ponbr"]=>
string(5) "34474"
["emt"]=>
string(3) "yes"
["qty"]=>
string(1) "5"
["price"]=>
string(2) "19"
["shipdate"
o "human-readable" format. If you want to
adjust it to your time, simply add your GMT offset to it, making:
gmdate('d-m-Y', time()+(10*60*60));
This adds 10 hours (10 hours x 60 min x 60 seconds) to your "base" GMT
timestamp, and then formats it. Not sure how big t
Actually, you can even use less "code" to do exactly the same thing
(since you can EITHER make an excutable file with the shebang, which you
start doing, but never actually do, OR call php to just read the file
and execute the code inside it, which you in the end do).
Basically, either:
#!/usr
Mohsen Pahlevanzadeh wrote:
Dear all,
I remember that i use a func that it return an array what it consist of
result of my sql query.
Please name me that.
Yours,Mohsen
it's called "RTFM"
glad to be of help,
- tul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:
Jochem Maas wrote:
Paul Barry wrote:
..
Then I have another class:
this is wrong. you can define the property in the class
with a constant or scalar value (i.e. literal string,
numeric value or an array) but not a return value of a
function or a 'new' object.
just to nag, an array is not
Jochem Maas wrote:
Todd Cary wrote:
If I use
if ($send)
header("location: mypage.php?message=" . $message);
the data ($message) is passed in the URL. Is there a way to pass the
data as though it was a POST method i.e. not in the URL?
probably, but I don't know how off the top of m
Jesper Forsberg wrote:
Hello,
I've seen the usage of both TRUE, true, FALSE and false all over the
php.net site. Yet, there does not seem to be a clear distinction
between the uppercase and lowercase variants.
Will it make any difference if i use lowercase or uppercase?
I would be thankful if s
Nic wrote:
Hi Rabin
"Rabin Vincent" <[EMAIL PROTECTED]> writes:
On 5/5/06, Nic <[EMAIL PROTECTED]> wrote:
But /mydir/some.php doing:
header("HTTP/1.1 404 Rubbish!!!")
_never_ causes the error document to be picked up.
That's right. Apache's not going to take action based
on the heade
thank god PHP doesn't have qq// and q//, it's one of the few things I
can't stand in Perl (along with the 100 different ways of calling the
same variable (@var, $var, %var, etc.). Just use a standard delimiter
with standard, normal, quotes. It's really not that hard.
Anthony Ettinger wrote:
Kaushal Shriyan wrote:
I have put the below in test.php
I am getting the below information which is not formatted
[snip] ...[/snip]
Actually If I run my test.cgi file I get well formatted one and also
If you can see from the output
HTTP_USERNAME
nick="amit",Master="0",acct_no_hash="1B2M2
Well, by looking into my cristal ball I think your problem lies at line
12 of file x.php for sure!! It's probably the
I_have_not_seen_any_code_at_all("so I can't tell you anything about it")
function there.
goodluck!
- tul
Martin Marques wrote:
I've been using PHP for a while with a daemon I
Mark Kelly wrote:
Hi
I'm writing a set of db abstraction functions for an internal app which will
give us a set of simple function calls for dealing with the db, like
$result = db_AddEmployee($EmployeeData);
$EmployeeData = db_GetEmployee($EmployeeID);
etc.
There will be quite a few funct
Dave M G wrote:
PHP List,
In the code below, I want to take the text within $content, and change
every instance of [h3] into , and every instance of [/h3] into
. And then do the same for [em], [/em], [strong], and so on.
However, this code does absolutely nothing to the text stored in
What part of "This is a PHP list" and "This is not a mysql list" do you
not understand?
*TRY A MYSQL MAILINGLIST, or RTFM (mysql manual in this case)*
Mark Sargent wrote:
Hi All,
I get this,
Column 'movie_type_id' in order clause is ambiguous
for this code,
$query = "SELECT movie.movie_name
Are you sure you're not including the BOM? (byte-order-mark)
If you are, PHP doesn't understand it, and thus just outputs it. Thus
creating output, thus creating problems with headers for you. (so don't
use BOM)
- tul
Jonas Rosling wrote:
While I'm using UTF-8 as char set in my documents Ja
Peter Kuma wrote:
Hi
Is there any reason why SSL support for pgsql module is disabled by
default in binary distribution for Windows (PHP 5.1.4 zip package)?
I thing it'd be very useful if this feauture were compiled in.
I sent this question to php-windows a few days ago with no response.
Regard
Dave M G wrote:
PHP List,
Very frequently I use mysql_fetch_row in a while statement to
while($variable = mysql_fetch_row($mysqlResult)){
echo $variable[text1];
echo $variable[text2];
}
Pretty standard.
But what do I do when I want to do the same kind of while loop not with
a MySQL result
tedd wrote:
At 1:44 PM +1000 6/24/06, chris smith wrote:
This link:
http://www.photography-on-the.net/ee/beta/cs_xmp_to_exif.php
was on this page:
http://www.php.net/manual/en/function.exif-read-data.php
The manual usually has something useful.
I continue to be amazed by the amount of info
or do the same but with strtr()
Will Fitch wrote:
If your goal is to eventually convert Hebrew chars to something else, you could
just use str_replace or stri_replace and have each Hebrew char as an array
element, replaced by another array element as a match.
Example in English:
str_replace(
David Robley wrote:
Aviation Coding wrote:
Hi all,
I am having problems with a connection to a mysql database.
I am using
function con()
{
mysql_connect("localhost","user","pass") or die(mysql_error());
mysql_select_db("tava") or die(mysql_error());
}
Now, when I call the _functio
Matt Graham wrote:
Hello, list. A few days ago, a security scan said that our machines
that were running PHP had potential vulnerability CVE-2008-2829 , a
buffer overflow in rfc822_write_address(). Discussions about this
are relatively easy to find with Google, but check out
http://bugs.php.n
Matt Graham wrote:
From: "M. Sokolewicz" <[EMAIL PROTECTED]>
Matt Graham wrote:
PHP had potential vulnerability CVE-2008-2829
http://bugs.php.net/bug.php?id=42862 for a reasonable discussion and
an (unofficial) patch.
I'm just curious as to what other PHP users are do
Shawn McKenzie wrote:
Daniel Brown wrote:
On Thu, Jul 10, 2008 at 2:32 PM, Richard Heyes <[EMAIL PROTECTED]>
wrote:
1. Use the query string. Eg
header('Location: http://www.xxx.com?name=value&name2=value2');
That's GET, not POST, as the subject requests. ;-P
2. Use sessions
Christian A. Reiter wrote:
As you maybe know, the program "kdevelop" under Linux has a built in
documentation browser which uses the online php documentation which was on
the homepage of the Minnesota university.
Since this homepage isn't available any more the documentation is broken.
I tried
I personally abandoned using any com object a few months ago as
maintaining and identifying similar problems took mmore time that
writing effective code to make the system steady...
C C wrote:
Hi,
I am running PHP 4.3.4 on Windows 2000 server with
Apache 2.0.48. I am using COM objects in some o
I have installed Apache 2.0.43 (win32) on my XP machine, together with
PHP 4.2.3. I have configured the server to recognise PHP, local directories
etc.
Apache starts - no errors, and will accept PHP documents from my
browser. But when I run my PHP pages, php is not parsed. I've put syntax
erro
Think this is what u want
Imran Asghar wrote:
Hi,
Is not working, is it correct way
File1.php
$v
{
?>
File2.php
echo $colors[1];
echo $colors[2];
echo $colors[4];
?>
imee
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
Im trying to scan a file and lift the image name from the
ie
where there could be ' or "
I messed around but am 2 embarassed to post code cos it dont work ;-(
thanks in advance
pete
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Getting completely confused how this stuff works !!!
Anyone recommend a book for a regex newbie ?
pete
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Which EntireX
pete
onrad Strydom wrote:
Hi there guys,
We have a PHP application on a remote linux machine that needs to
interoperate with a COM based interface on a windows machine.
If both where on the same win32 machine things would have been easy ,
but unfortunately they aren't.
What are
Wicked - that's the best tip I've seen for a long time... TA
Gareth Williams wrote:
Well if you are a unix/linux/os x user, drop to the command line, go to
the directory with all the php files, and type in:
grep php
or if your php files are scattered around a load of sub-directories,
then go
Does this mean the end of the script termination does NOT need to be
sent back to the browser ?
This smacks of something I needed recentyle with sending reports
The way I got around it was to
Create a flatfile database table with the job entries in it
Create a crontab that executed and cheked
Am trying to do a strange thing with php..
Extract the urls from the Internet Explorer index.dat history files
(dont ask why!)
Here is a snippet
ð:2002020720020208:[EMAIL PROTECTED]://www.lyricsworld.com/cgi-bin/search.cgi?q=Bruce
+Springsteen&m=phrase&ps=20&o=0&wm=wrd&ul=
Brian Dunning wrote:
This inserts nothing into the database, but returns no error that I can
see. How come? What's wrong with it?
$dbname = "my_database";
$dbconnection = mysql_connect("mysql05.powweb.com","my_user","my_pass");
mysql_select_db($dbname, $dbconnection);
$query = "INSERT INTO invoi
I'm trying to group matches..
the string is (all one line)
:2002020720020208: [EMAIL PROTECTED]://www.azlyrics.com __ continued...
/s/springsteen.html?dsd=sadsa&etc=tec
here the first bit I'm trying to match
:2002020720020208:
preg_match("(:[0-9]{16}:)", $contents, $match);
and then the default@ w
THis does the same
http://0x00.org/php/phpApplication/
pete
Patrik Fomin wrote:
Hi,,
is there anyway to get the number of people connected to the site?
in asp you just use Application and session_terminate to accomplish this
is there anyway to do this in PHP ?
regards
patrick
--
PHP General Ma
Brent Clark wrote:
Hi
Does anyone know of how to execute a php shell script in a php file.
Kind Regards
Brent Clark
assuming *nix
php myscript.php
or stick at the beginning of the file
#!/bin/php
and then run ./myscript.php
hope it helps
pete
--
PHP General Mailing List (http://www.php.net
You need people like me so you can point your fingers and say "hey theres the bad
guy!" So what does that make you? Good guys? Don't kid yourselves. You're no better
than me. You just know how to hide -- and how to lie. Me I don't have that problem..Me
I always tell the truth--even when I lie.
Francisco M. Marzoa Alonso wrote:
Hi,
Is it possible to convert an array in an object instance?
I can convert an object in an array as follows:
$Test = new MyClass ();
$TestArray = (array) $Test;
Then I've an array with all members of the object $Test, but it seems
that I cannot simp
split() uses the POSIX regular expressions engine, and thus also uses
regular expressions. The loading of this engine is a massive overhead
when dealing with simple splitting of a string. To do basic things like
this it's a lot faster to use explode().
- Tul
Francisco M. Marzoa Alonso
Phpu wrote:
Hi,
How can i do a php script with a html extensionsuch as
http://www.blinds-wise.com/shop/p/blind/bid/1/venetian_blinds.html
Thanks
when using eg. apache, you can add a .htaccess file with the following line:
AddType application/x-httpd-php .html
That will overwrite the "normal" w
> How can i do a php script with a html extensionsuch as
> http://www.blinds-wise.com/shop/p/blind/bid/1/venetian_blinds.html
>
apache could do this a couple ways
http://httpd.apache.org/docs/mod/mod_mime.html#addhandler
http://httpd.apache.org/docs-2.0/mod/core.html#setinputfilter
http://h
> I have a webform which my users are expecting to act like a Windows program,
> they only need to check the box and it is automatically written to the
> database.
you could try this
http://developer.apple.com/internet/webcontent/iframe.html
or this
http://jibbering.com/2002/4/httprequest.html
*cough*quotes*cough*
Patrick E Phillips wrote:
I have php installed on my PC as well as an apache webserver and mysql. I am
using cox.net as my cable internet provider. They block port 25 but I do not
know if that affects what I am trying to do... which is:
use the mail() function to send email for
> I'm trying to pass XML file from Site A to Site B for Site B to parse.
> Site B is maintained by other company, so I only need to worry about sending
> over the XML file. I've been hinted that fsockopen() can do the job.
if you have to do this I would suggest giving pear a try, no need to
reinv
Greg Beaver wrote:
Mike wrote:
I am playing with PEAR_Info on my server. It was working fine, then I
upgraded some classes, now it is not.
I think it is because PHP is holding on to the old code from some
require_once functions.
I may be totally wrong but that is all I can think of what would cause
Jacob Friis wrote:
I have created a function that will measure the width of a text string
in pixels. It works ok.
If you have optimizations, please let me know.
Thanks,
Jacob
function txt_width ($txt) {
$width = 0;
$txt_len = strlen($txt);
for ($n = 1; $n <= $txt_len; $n++) {
> Hi all im new to PHP and im trying to let a process (*.exe file) to run in
> background(localhost) and let php continue processing the script. But PHP
> always stops and wait for the (*.exe) stops/close!
>
> Anyone here can help me by giving me an simply example to let PHP run the
> exe file and
> I've got some text that contains carriage returns, which are not .
> what tag do I need to use to display the text with the carriage returns?
> Can't even remember whether it's html or php.
html,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
-[ input.html ]--
one
two
three
-[]--
-[ input.php ]--
-[]--
-[ output ]--
Array
(
[select] => Array
(
[0] => 1
[1] => 2
)
[
Brian T. Allen wrote:
Chris Shiflett wrote:
--- "Brian T. Allen" <[EMAIL PROTECTED]> wrote:
Well, in fairness, it's one of the worst ideas you've ever heard
because you know of this limitation.
Of course. That wasn't a dig at you or anything - just a comment. You're
free to heed or ignore it
> Can PHP work with Excel files as database ?
> If not, how can I conver it to MySQL format and
> reconvert it to Excel 'coz I need it to report it
> in Excel format,
if you are on windows you could use a com object.
if you have access to perl, you could use
http://search.cpan.org/~kwitknr/Sprea
Per Jessen wrote:
Per Jessen wrote:
I need functions to parse an email and I've been using mailparse sofar. Works
pretty well, except it has a couple of shortcomings - will only retrieve last
of the Received:-headers, does not decode quoted-printable body-parts, does
not decode RFC2047-encoded fi
well ofcourse it "keeps the get variables" as you put it. PHP_SELF is
the path and arguments that php was called with. use phpinfo(); to find
out which variables hold the real path, make sure to add some random
"get variables" when calling that script so you see the difference
Jack Van Zanen wr
Merlin wrote:
Hi there,
I am creating pdf files inside my application and do save them to the
server file system. Now I have sent some of the emails by the system via
email and found that the mine type is not set. So the pdf file apears in
the attachement, but one has to select the application f
Aaron Gould wrote:
Could any of you privide some leads in regard to highlighting syntax of
an odd language? I have a large amount of snippits of legacy code from
our company's primary application. The code used is "BBx" (a variant of
Basic).
I'm attempting to show this code on a web page, but
Aaron Gould wrote:
Bruno B B Magalhães wrote:
$code = 'function what() { do oddname; %oddsyntax }';
function highlight_code($code)
{
$oddsyntax = array('oddsyntax','oddsyntax2','oddsyntax3');
for($i = 0; $i <= count($oddsyntax)-1; $i++)
{
$highlighted_code = eregi_replace($o
Bruno b b magalhães wrote:
Hi People,
well, I am building a very sophisticated(?) CMS, and I am thinking to
implement a keyword automatically generation function... I thought on
the following structure:
==
$submited_text = 'Lorem ipsum dolor sit amet, consectetuer adipiscing
eli
Stuart Felenstein wrote:
I'm reading PHP security paper by Chris Shiflett.
Trying to figure out what is meant by first
initializing a variable.
Now, just for the record, I'm not completely dumb.
I know you can start with a
$var = 2
What I want to know is if the variable assignment is
unknown,
it] => 0
> [present] => 0
> [lupttum] => 0
> [zzril] => 1
> [delenit] => 1
> [ugue] => 1
> [duis] => 1
> [te] => 4
> [fcilisi] => 0
> )
>
> Which is the word and it total occurren
Stuart Felenstein wrote:
First I'm a bit unsure , because in the manual it
states that you must use mysql_real_escape_string on
binary data. So first question, what constitutues
binary data, a file or just an integer?
any data that might contain a null-byte (\0) is usually seen as the
definition
Jaskirat Singh wrote:
Thanks Robby Russell, Jason Wong , Greg Donald, raditha dissanayak and
every one else who answered part 1 of my email concerning image
uploads.
It was about where to store images uploaded by website users and
question was database vs filesystem and dedicated vs shared hosting
Well, since I'm using the latest version of the PHP plugin, it can't be that I'm using
the $_FILES variable ($HTTP_POST_FILES is for older versions of php as far as I know).
Nevertheless, I tried it.. and it didn't work.
To clarify my problem.. I'm using a form to get a file name and some other
Anders Thoresson wrote:
This code seems to work. Have I got it right?
No. I have not. Sometimes the images are viewed from the cache, just to
get downloaded from the server again next time, just a minute later,
when I try again.
My local development server is running IIS, my production serve
Christian Ista wrote:
echo '';
print_r($_POST);
echo '';
I have something like that :
Array
(
[5980915] => on
[ToDo5980915] => N
[5941846] => on
[ToDo5941846] => N
[5916500] => on
[ToDo5916500] => N
[5907115] => on
[ToDo5907115] => N
[5900019] => on
[ToDo590
count() is prefered over mysql_num_rows, because the later requires a
full resultset to be tranfered, while the first doesn't.
(so, the 2nd is more resource intensive if you don't require the resultset)
[EMAIL PROTECTED] wrote:
Yeah definitely use COUNT(*) or mysql_num_rows() function.
Nate
-
hi,
it's a limitation, and not allowed in PHP. There was a whole line of
posts about it in internals.
- Tul
Jake Press wrote:
Hello All,
I am having an interesting syntax problem. :(
I have been battling this little bugger for the last week and a half, I
have exhausted google and numerous php ch
or the next month if I want to add 4 days to 2004-11-29, so the result would be 2004-12-03, not 2004-11-33. It would need the same functionality in moving the year to 2005-01-02 when I add 3 days to 2004-12-30.
I hope that I've explained my objective clearly. I have tried getting the date
I'd rather suggest using strpos(), seen as it's quite a bit faster than
using a regular expression engine (especially when you don't need one)
Greg Donald wrote:
On Sat, 6 Nov 2004 21:58:49 -0600, Dustin Wish with INDCO Networks
<[EMAIL PROTECTED]> wrote:
I am opening a file and then have to look
[EMAIL PROTECTED] wrote:
function recursePathLookup($CatID, $Path = array()) {
//Get the catid for this subcat
$sql = "SELECT SubCategoryID, Name FROM categories WHERE CategoryID =
'".$CatID."'";
$query = mysql_query($sql);
if(mysql_num_rows($query) == 1) {
$data
Exile wrote:
Thanks in advise,
Exile
is what like perldoc?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Stuart Felenstein wrote:
This array_walk() looks like a good function
Would this be a legitimate call:
array_walk($myarray, 'mysql_real_escape_string');
?
Thank you,
Stuart
array_map() is faster :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you can have apache SU to a user with enough permissions to do what you
are trying :)
(passthru('SU ...'))
Scott Fletcher wrote:
Hi, I'm using the AIX or UNIX system... When I tried the ...
--snip--
passthru('chmod -R a+rw ../WebHelp/* 2>&1');
--snip--
I get an error message, "Operation Is Not P
Unsetting class objects does take time and is really of no benefit
unless there are memory problems
as for freeing resuslts - the same applies
pete
Jordi Canals wrote:
Hi all,
I was working now in a new site developed with PHP 5.0.2 and a wonder
came to me:
Is usefull and recommended to unset a c
$_SERVER['REQUEST_URI'];
Matthew Weier O'Phinney wrote:
* Jason Paschal <[EMAIL PROTECTED]>:
Trying to get the current viewed page's URL (query string intact).
this works, but infrequently:
$url = $_SERVER['URI'];
and this ignores the query string:
$url = $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SEL
Stuart Felenstein wrote:
Ok, hopefully I can explain this clearly, even though
I think I might be an idiot since Ive been going on
about this for a few days.
I have a table that holds values and labels
i.e. 1 = New York
2 = Boston
3 = Kansas City
4 = Amsterdam
I want to put this ta
hi,
currently I'm experimenting with PDO a bit. I run a local mysql server,
version 4.1.4, so I tried connecting to that.
Here is my code at this point:
try {
$link = new PDO('mysql:dbname=mydb;host=localhost', 'me',
'pw', array(PDO_ATTR_AUTOCOMMIT => 0, PDO_ATTR_PERSISTENT=>
Matthew Weier O'Phinney wrote:
* Scott McWhite <[EMAIL PROTECTED]>:
I'm using an HTML search form that passes the "searchterm" to a php
file.
In my case the "searchterm" can have 1000s of records in my database,
so I implemented a limit which displays 20 records per page. The
pagination function
701 - 800 of 2845 matches
Mail list logo