I now there are function to calc file size but I want function to get string size in
bytes
I'm working on a photo site and most of it is working. The intent is to
store original high-resolution photos that will only be accessed when
purchased, and then a variety of thumbnails that will be accessed when
viewing. Because they're high-resolution, I need maximal image
compression but I c
Hi,
I also have an installation guide on PHP4/5, Apache2, Windows XP but it
is written in Vietnamese (
http://www.opensourcevn.org/javavietnam/php/caiphp.htm ). Could you give
me some details on your installation process ?
Regards,
Dinh
Marlene Thoms wrote:
I am running Windows XP and have inst
Hi,
Yes, namespaces has been removed from CVS for PHP5 but Object Model for
PHP5, based on Java, has been improved. I would like to say: plz forget
PHP4 and rush into PHP5.
Dinh
PHPVietnam
Chris Shiflett wrote:
--- Amanda Hemmerich <[EMAIL PROTECTED]> wrote:
what do you guys think are some li
I have an abstract class with quite a few 'children'. Essentially I want
to be able to interchange calls between children (Take a script, written
with ClassA and redefine the variable as ClassB etc.)
Though there is a large subset of methods all of these children declare,
there are a few which
did you set up the mime types in apache? did you restart apache?
- Original Message -
From: "Marlene Thoms" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 12, 2004 12:37 AM
Subject: [PHP] Installation Question
I am running Windows XP and have installed Apache2, MyODBC,
I am running Windows XP and have installed Apache2, MyODBC, mySQL and php on
my workstation. Apache and MySQL are running, however when I try to access
phpinfo.php from my browser, php is not being accessed. Instead I see the
source code. I have gone through the installation instructions several ti
I am running Windows XP and have installed Apache2, MyODBC, mySQL and php on
my workstation. Apache and MySQL are running, however when I try to access
phpinfo.php from my browser, php is not being accessed. Instead I see the
source code. I have gone through the installation instructions several ti
Hi Alicia.
Welcome to the list.
On Friday 11 June 2004 12:58 pm, Alicia Riggs wrote:
> Hi guys, I am new to this list, and signed up
> specifically for this problem. If any one has any
> ideas it would be greatly appreciated.
>
> I am writing a function to allow users from a
> specific intranet p
On Friday 11 June 2004 10:16 pm, Dustin Krysak wrote:
> Can anyone point me to an existing script or
> tutorial to learn this?
>
> Thanks in advance!
>
> d
There is a mysql utility that does this:
mysqldump -p mypassword -T mytargetdirectory
mydatabasename [mytablenames]
(The "-T" tells it t
Can anyone point me to an existing script or tutorial to learn this?
I'm fairly sure there's a tutorial at PHPBuilder.com or Zend.com. Or
you can check the PEAR modules for code (I know there are database to
Excel classes).
If all else fails, Google's always helpful.
Larry
--
PHP General Mailing
You could use javascript to determine whether or not to send it to the frame
and if so, the target attribute in the form tag can be used to direct the
form values to the frame for processing, if you're intending for the other
frame to process the form data.
If you're intending that the frame that
Can anyone point me to an existing script or tutorial to learn this?
Thanks in advance!
d
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is it possible to specify the target frame in a "Header" call?
I have a form that submits in one frame and I want it to redirect to
another frame in some cases.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 06/11/04 17:17 Curt Zirzow spoke:
* Thus wrote Bob Lockie ([EMAIL PROTECTED]):
I'm having a very hard time testing array_search.
$j = array_search( $i, $errList );
echo "j=" . $j;
if (($j != false) && ($j >= 0)) {
mixed array_search ( mixed needle, array haystack [, bool strict])
Searches hays
When you pasted that PHP code firefox did a google "I'm feeling lucky"
search on it. If you go to google and manually do the I'm feeling lucky
search you should end up at the same place.
Yet another reason firefox deserves the top of the heap.
--Rick
> -Original Message-
> From: John Ni
* Thus wrote Bob Lockie ([EMAIL PROTECTED]):
> I'm having a very hard time testing array_search.
>
> $j = array_search( $i, $errList );
> echo "j=" . $j;
> if (($j != false) && ($j >= 0)) {
mixed array_search ( mixed needle, array haystack [, bool strict])
Searches haystack for needle and retur
--- Steve Douville <[EMAIL PROTECTED]> wrote:
> I do like CF's ability to just name data sources on the server and
> reference them that way.
You won't be able to reproduce the "cfadmin" stuff with PHP, simply
because PHP isn't a persistent process, but I think great strides will be
made on the da
* Thus wrote Eric Boerner ([EMAIL PROTECTED]):
> I am having a problem with a nested if statement in php. Everything
> works fine, but it doesn't display the information that I am trying to
> retrieve using a second if statement.
>
> CODE:
>
> if (($fr == 'FR') && ($xe == 'XE') && ($co == 'CO'))
Easier to learn than Perl, comparable learning curves with CF imo, probably
a bit easier than ASP initially.
Cheaper to deploy than CF since it's free, same for ASP.
As for speed in building applications, I'd say that given someone has the
same ability in any of the 4 (PHP, ASP, CF, Perl) deploym
Chris Shiflett wrote:
--- Jough P <[EMAIL PROTECTED]> wrote:
My goal is to never have to use the addslashes() function. Any
suggestions?
There's probably nothing you can do about your Web host, but you can use
the fix_magic_quotes() function listed here:
http://phundamentals.nyphp.org/PH_storingr
Use javascript -- browser object
hth
/pS
On Friday, June 11, 2004, at 03:09 PM, Jason Barnett wrote:
Shaun wrote:
Hi,
Is it possible to use PHP to detect the type of browser accessing my
site.
For example if a PDA is using it I would prefer not to include large
graphics...
Many thanks for your he
try
http://magpierss.sourceforge.net/
--- Edward Peloke <[EMAIL PROTECTED]> wrote:
> Does anyone use patRSS for the rss feeds?
>
>
http://www.php-tools.net/site.php?&PHPSESSID=99dd0269b03bee4046c3395d5561162
> 1&file=/patMisc/rss.xml
>
> I don't see much online about it. It seems to work
> fine,
Shaun wrote:
Hi,
Is it possible to use PHP to detect the type of browser accessing my site.
For example if a PDA is using it I would prefer not to include large
graphics...
Many thanks for your help
Yes you can do this. ;)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
Richard Davey wrote:
Hi guys,
Does anyone know what the most common cause for the following error
from the XML parser built into PHP 4.3.6: "junk after document
element"
I am parsing data that has been returned to me via https, this is
stage 6 in a multi-step process and the first stages went okay
--- Jough P <[EMAIL PROTECTED]> wrote:
> My goal is to never have to use the addslashes() function. Any
> suggestions?
There's probably nothing you can do about your Web host, but you can use
the fix_magic_quotes() function listed here:
http://phundamentals.nyphp.org/PH_storingretrieving.php
Ho
--- Amanda Hemmerich <[EMAIL PROTECTED]> wrote:
> what do you guys think are some limitations of PHP?
It's not persistent like ColdFusion.
It doesn't have namespaces.
The object model in PHP 4 is poor.
I'm sure others can pitch in here. :-)
Chris
=
Chris Shiflett - http://shiflett.org/
PHP
Torsten Roehr wrote:
"Jough P" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Greetings all,
I'm doing all my PHP development on my iBook running OS X. I'm
currently working on a messaging tool for a website. When the messages
are posted on my iBook the single quotes are escaped prop
Manuel Lemos wrote:
Hello,
On 06/10/2004 07:05 PM, Oôv as&äönsson wrote:
I having a little problem with PHPs build in function mail().
The mailserver isnt located on the webserver, its on another machine.
I have tryed ini_set("SMTP", "ipaddress"); with no result.
The system I'm on runs on an Linux
call_user_func($func) and $func() are much better alternatives.
Daniel Clark wrote:
Can you use eval() ?
I want to pass a function as a parameter and execute it in another
function.
A callback. :-)
For example:
function a() {
echo "a";
}
function b( $func ) {
func();
echo "b";
}
The ou
What output do you get?
> I'm having a very hard time testing array_search.
>
> $j = array_search( $i, $errList );
> echo "j=" . $j;
> if (($j != false) && ($j >= 0)) {
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm having a very hard time testing array_search.
$j = array_search( $i, $errList );
echo "j=" . $j;
if (($j != false) && ($j >= 0)) {
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"Jough P" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Greetings all,
>
> I'm doing all my PHP development on my iBook running OS X. I'm
> currently working on a messaging tool for a website. When the messages
> are posted on my iBook the single quotes are escaped properly. When
hi,
i'm trying to use the array_rand() to return one of six images, culled
from a directory listing. however, i've noticed that over the past
five days, the log of images accessed is anything but a random
distribution:
20 /jnl/images/banner/banner_viola.jpg
32 /jnl/images/banner/bw_ban
"Eric Boerner" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am having a problem with a nested if statement in php. Everything
> works fine, but it doesn't display the information that I am trying to
> retrieve using a second if statement.
>
> CODE:
>
> if (($fr == 'FR') && ($xe =
Greetings all,
I'm doing all my PHP development on my iBook running OS X. I'm
currently working on a messaging tool for a website. When the messages
are posted on my iBook the single quotes are escaped properly. When I
upload the same *.php files to the server the single quotes are
preceded
Hello,
On 06/10/2004 07:05 PM, Oôv as&äönsson wrote:
I having a little problem with PHPs build in function mail().
The mailserver isnt located on the webserver, its on another machine.
I have tryed ini_set("SMTP", "ipaddress"); with no result.
The system I'm on runs on an Linux box.
That does not
I am having a problem with a nested if statement in php. Everything
works fine, but it doesn't display the information that I am trying to
retrieve using a second if statement.
CODE:
if (($fr == 'FR') && ($xe == 'XE') && ($co == 'CO')) { print
"Statement";
} elseif (($ag == 'AG') && ($rz
I have decided to take up your suggestion and customize it.
--snip--
date("Y-m-d H:m:s.").substr(microtime(),2,6);
--snip--
This is all I need to create a timestamp.
Thanks...
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote Scott Fletcher ([EMAIL PROTECT
Title: gethostbyaddr
Hi guys, I am new to this list, and signed up specifically for this problem. If any one has any ideas it would be greatly appreciated.
I am writing a function to allow users from a specific intranet permission to view a directory. I am getting very different results
* Thus wrote Scott Fletcher ([EMAIL PROTECTED]):
> I noticed that date() doesn't provide the option to give me the time in
> millisecond, so anyone know of a way to do that or anyone know of a script
> that can do something like this.
http://php.net/microtime
Curt
--
First, let me assure you th
I noticed that date() doesn't provide the option to give me the time in
millisecond, so anyone know of a way to do that or anyone know of a script
that can do something like this.
THanks,
Scott F.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.
I am trying to come up with a little speech to use when talking to
potential clients to make a case for using PHP over over languages, such
as perl, ColdFusion, ASP, etc. I have been looking on the web, but I
would also love to hear from you guys. How would you make a case for
using PHP? Also, c
Justin,
I think I will go for the ini_set() option, seems to be the best bet to not
affect anything else. Thanks.
- Phil.
> -Original Message-
> From: Justin Patrin [mailto:[EMAIL PROTECTED]
> Sent: 11 June 2004 15:42
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Changing the directory th
I am having a problem installing Imagick in PHP 4.3.6. In the install
instructions:
1) make sure the path to Magick-config (the ImageMagick configuration
script) is in your PATH environment variable
There is no Magick-config file. Anyone know what Magick-config¹ is exactly?
I figure this is
Can you use eval() ?
> I want to pass a function as a parameter and execute it in another
> function.
> A callback. :-)
>
> For example:
>
> function a() {
> echo "a";
> }
>
>
> function b( $func ) {
> func();
> echo "b";
> }
>
>
> The output of "b( a )" will be "ab".
--
PHP Gener
[snip]
$filename"/tmp/newfile");
$filehandle=fopen($filename,"w");
fclose($filehandle);
[/snip]
is this the exact code you are trying to use?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I am facing a strange problem..When I try to create a
file in /tmp directory (using php script) as follows:
$filename"/tmp/newfile");
$filehandle=fopen($filename,"w");
fclose($filehandle);
I get error something like fclose(): ~not a stream~.
All routines like fwrite(), readdir() give errors.
Take a look at call_user_func():
http://de3.php.net/manual/en/function.call-user-func.php
Thanks, I have it working.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Torsten Roehr wrote:
"Bob Lockie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I want to pass a function as a parameter and execute it in another
function.
A callback. :-)
For example:
function a() {
echo "a";
}
function b( $func ) {
func();
echo "b";
}
The output of "b(
Phil Ewington - 43 Plc wrote:
Hi All,
I have read the manual page for 'Using PHP from the command line' thoroughly
and cannot find the answer to my problem. I have a script that needs to be
accessed from both the command line and from web browsers. I tested the
script from the command line and all
I'am not sure what you wanna do, but if you want to send a parameter use
something like this one:
function a() {
return "a";
}
function b($val) {
echo $val."b";
}
b(a());
?>
or you can always use classes...
On Fri, 11 Jun 2004 10:25:54 -0400, Bob Lockie <[EMAIL PROTECTED]> wrote:
I want
"Bob Lockie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I want to pass a function as a parameter and execute it in another
function.
> A callback. :-)
>
> For example:
>
> function a() {
> echo "a";
> }
>
>
> function b( $func ) {
> func();
> echo "b";
> }
>
>
> Th
I want to pass a function as a parameter and execute it in another function.
A callback. :-)
For example:
function a() {
echo "a";
}
function b( $func ) {
func();
echo "b";
}
The output of "b( a )" will be "ab".
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
substr( xxx, 1, 100)
>>
>>Hi
>>
>>Anyone know how to clip the number of characters in a string? For instance,
>>I have a string carrying a long piece of text, say, of 200 characters, but I
>>want to reduce this to just the first 100 characters.
>>
>>
>>Thanks in advance.
>>
>>Russell
--
PHP Gene
Hi All,
I have read the manual page for 'Using PHP from the command line' thoroughly
and cannot find the answer to my problem. I have a script that needs to be
accessed from both the command line and from web browsers. I tested the
script from the command line and all worked well. As soon as I set
Ok, i have solved problem with copyright and registered by using
imagettftext...
But i still can't print correctly tm symbol :(
On Fri, 11 Jun 2004 11:56:14 +0200, News.Php.Net <[EMAIL PROTECTED]> wrote:
Hi to all,
I need to do parsing of html data from one site for find nick , guild,
and some
Does anyone use patRSS for the rss feeds?
http://www.php-tools.net/site.php?&PHPSESSID=99dd0269b03bee4046c3395d5561162
1&file=/patMisc/rss.xml
I don't see much online about it. It seems to work fine, but I now have to
cycle through another array to pull out and format everything.
Thanks,
Eddie
--- Knightking <[EMAIL PROTECTED]> wrote:
> On Thu, 10 Jun 2004 20:08:08 -0700, Justin Patrin
> <[EMAIL PROTECTED]> wrote:
>
> > Mark wrote:
> >
> >> [snip]
> >
> > I'm not sure what's wrong with the code you have, but for the
> 4-digit
> > one you have:
> >
> > $packed = 4-bit var with ABCD
Hi to all,
I need to do parsing of html data from one site for find nick , guild, and
some other infos...
The problem is that gd doesn't print correctly chars like trademark,
copyright, registered (which are contained in some nicks/guild names)...
Someone know a valid solution???
--
Using Ope
Wow, that was fast - many thanks.
Cheers
Russell
--
---
Russell Curtis
M +44 (0) 7796268780
www.russellcurtis.com
www.buildingdetails.co.uk
"Torsten Roehr" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Russell Curtis" <[EMAIL PROTECTED]> wrote in
"Russell Curtis" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
>
> Anyone know how to clip the number of characters in a string? For
instance,
> I have a string carrying a long piece of text, say, of 200 characters, but
I
> want to reduce this to just the first 100 characters.
h
Hi
Anyone know how to clip the number of characters in a string? For instance,
I have a string carrying a long piece of text, say, of 200 characters, but I
want to reduce this to just the first 100 characters.
Thanks in advance.
Russell
--
---
Russell Curtis
-
Hi
Anyone know how to clip the number of characters in a string? For instance,
I have a string carrying a long piece of text, say, of 200 characters, but I
want to reduce this to just the first 100 characters.
Thanks in advance.
Russell
--
---
Russell Curtis
64 matches
Mail list logo