Hi,
I have an file that contains PHP code..variables, db, etc. Is it
possible to include the evaluted contents of that file into a variable
in another, the calling PHP script?
Essentailly I am looking to do something like
include("myCode.php") -> HTML Output -> $myVariable.
I know could do thi
Chris W. Parker wrote:
[ snipped ]
I'm running Apache/2.0.40, MySQL 3.23.54, and PHP 4.2.2.
You need to upgrade to the latest PHP version, which is 4.3.10 and while
you are at it, consider upgrading MySQL to 4.0.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www
Jacques wrote:
Can I format an e-mail message with html tags inside the mail() function?
If not, how can I go about it? I would like to format the layout of the
e-mail message using tables, colors and perhaps images.
Please, FFS RTFM > http://www.php.net/manual/en/function.mail.php
--
PHP General
or if you aren't into regex (which I find confusing and still am trying
to learn):
if ((strlen(trim($string)) <=6) && ctype_alpha(trim($string)))
{ echo 'good'; }
else
{ echo 'bad'; }
John Holmes wrote:
Ashley M. Kirchner wrote:
How can I check that a string is no more than 6 characters long
Hi All,
Does unset() create a copy of the array and then overwrite the
original
somehow
destroying the reference?
In the example below, no item has it's value set to 'foo', however if
the
$stuff array is
accessed directly (see commented line) rather than by reference it
works
fine. In
addit
Can I format an e-mail message with html tags inside the mail() function?
If not, how can I go about it? I would like to format the layout of the
e-mail message using tables, colors and perhaps images.
Regards - Jacques
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Ashley M. Kirchner wrote:
How can I check that a string is no more than 6 characters long and
only contains alpha characters (no numbers, spaces, periods, hyphens, or
anything else, just letters.)
if(preg_match('/^[a-zA-Z]{0,6}$/',$string))
{ echo 'good'; }
else
{ echo 'bad'; }
Change to {1,6
How can I check that a string is no more than 6 characters long and
only contains alpha characters (no numbers, spaces, periods, hyphens, or
anything else, just letters.)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
David,
> I have an install of PHP 5 on Windows 2003 Server with Apache 2 and when I
> reference mysqli in my php code, I get an error that the mysqli class is not
> found.
I've wrestled with Windows 2000 Server with Apache 2 configuration,
and hopefully this will apply for 2003 as well.
> I lo
Sebastian wrote:
> i have some php forms which uploads files/images and i would like to know if
> its possible to upload them to a remote server instead, if so, how?
>
> cheers
Yes it is possible. This is a bit of reading, but it is exactly what
you need to read:
http://php.net/manual/en/featur
i have some php forms which uploads files/images and i would like to know if
its possible to upload them to a remote server instead, if so, how?
cheers
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
how about a WHERE clause.
Maybe something like:
$query = "SELECT WEEK(date) as week, count(*) as hits, listingID as
lidcount FROM invotestotal WHERE WEEK(date) = 8 ORDER BY hits DESC";
Ryan Schefke wrote:
I am trying to echo the ranking of votes (highest to lowest) that a product
received in a gi
Hello,
I'm having a mysterious problem with phpMyAdmin 2.6.1. I've already
consulted the phpMyAdmin forum on sourceforge but so far I've not had
any answers come my way.
All of a sudden this morning I found that the program stops dead in its
track's during a call to "ob_start('gz_handler');". The
How to use this list best:
Search the archives at lists.php.net for [NEWBIE GUIDE] It was written
by Jay Blanchard earlier this year I believe. Read it.
Then read this: http://www.catb.org/~esr/faqs/smart-questions.html
Then try learning PHP from the PHP manual. If you come across a
problem, the
Bret Hughes wrote:
On Tue, 2005-02-22 at 05:27, Dhanasekar T wrote:
hi all,
i m new to this group ...now i want to learn php.
right now? not in five minutes.
i want all u r guidence to utilise this group...
thanks in advance
dhanas
Dhanas,
do you have php installed ?
can you access http://php.ne
Bret Hughes wrote:
On Tue, 2005-02-22 at 09:59, OOzy Pal wrote:
Dears
I am trying replace anything between '{!' and '!}' i.e {!A!} and {!B!}
and {!ABC!} with XYZ. I tried the following but no help. Can anyone
help?
$this->template=str_replace("{!*!}","XYZ",$this->template);
Thank you
IIRC str_
Hi :)
I am looking for a competent coder to help me with a shipping module
for an e-commerce project I am working on. Essentially I need a script
that can check a Canadian postal code and/or US zip code (from the
cart) against a flat-file or db table, find it's zone in a series of
ranges of cod
This is the issue: every insert I perform is generating 3 rows instead
of 1.
I'm using DataObjects with manually created classes, I can't use the
generator do to permission issues.
This is my class:
class DO_test extends DB_DataObject {
var $__table = 'test';
var $test
Hello,
I need to select around 200 files at random out of a file pool of
10k-15k files from a directory and then transfer them to another
directory on my linux server which runs Apache 2.0.52, PHP 5.0.3 and
Mysql. I will also be requiring to add the paths of all those files
into a database. If some
Bret, Richard, Jason,
Thank you all for your comments and suggestions.
What I had been doing -- using GD to create the image with db data in one
file, then calling this file from in another page, seems to have been the culprit in
regards to the latency issue. Of note is that this is an intrane
I am trying to echo the ranking of votes (highest to lowest) that a product
received in a given week. See example of desired output.
In the query below, It's working great and outputs ID, votes, and week;
however, I can't figure out how to get the ranking for a given week. In the
example below
Richard Lynch wrote:
... Good stuff ...
> All that said:
> If you only have a handful of color coded flags, and you are using GD to
> re-draw an image every time, that's kinda silly...
>
> Perhaps I'm missing something here, but:
>
> Just use your query to decide which flag to *USE* instead of dr
> When a session object is created - where is it store?
Assuming you mean session data, it is stored on the server, in /tmp by
default.
> To destroy the session object (widht all session vairables inside the
> particluar session object) can I use session_destroy();
http://www.php.net/session_des
2005. feb 22. 05.17 dátummal Marek Kilimajer wrote:
> You need to set enviroment variables $TMPDIR and $TMP. I'm not sure
> which one of these are used by those functions, but you can safely
> change both.
Thanks for your kind help.
--
With regards: Ifj. Péntek Imre
E-mail: [EMAIL PROTECTED]
--
P
Richard Lynch wrote:
Dave O wrote:
Hi all. I'm been trying the following code for the past day or so and I
can't seem to get around it. I'm issuing a query to pgsql and
iterating through the results twice in order to facilitate the
separation of shipment history.
Below is the simplest example I
Bruno Santos wrote:
> I'm using 2 cookies to control some user environmente.
> every time the user logs in, the cookie is set, but when i try to change
> the value of that cookie,
> deleting it firts and then setting a new one with another value, when i
> print the value of that cookie
> the value
Dave O wrote:
> Hi all. I'm been trying the following code for the past day or so and I
> can't seem to get around it. I'm issuing a query to pgsql and
> iterating through the results twice in order to facilitate the
> separation of shipment history.
>
> Below is the simplest example I can com
2005. február 21. 21.24 dátummal dan ezt írta:
> I'm not sure if PHP works this way, but did you completely shut down
> Apache and then restart it after making these changes?
Yes I did.
--
Üdvözlettel: Ifj. Péntek Imre
E-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To
> Because of some latency issues in the display of dynamically created PNG
> images, I've been trying to separate the image-creation process from the
> image-display process. Essentially, I'm trying to run a cron job that
> writes a PNG image to file every 5 seconds. The php file pulls data from a
On Tue, 2005-02-22 at 10:14, [EMAIL PROTECTED] wrote:
> Howdy,
>
> Because of some latency issues in the display of dynamically created PNG
> images, I've been trying to separate the image-creation process from the
> image-display process. Essentially, I'm trying to run a cron job that
> writes
On Tue, 2005-02-22 at 09:59, OOzy Pal wrote:
> Dears
>
> I am trying replace anything between '{!' and '!}' i.e {!A!} and {!B!}
> and {!ABC!} with XYZ. I tried the following but no help. Can anyone
> help?
>
> $this->template=str_replace("{!*!}","XYZ",$this->template);
>
> Thank you
>
>
Howdy,
Because of some latency issues in the display of dynamically created PNG
images, I've been trying to separate the image-creation process from the
image-display process. Essentially, I'm trying to run a cron job that
writes a PNG image to file every 5 seconds. The php file pulls data from
Hi all. I'm been trying the following code for the past day or so and I
can't seem to get around it. I'm issuing a query to pgsql and
iterating through the results twice in order to facilitate the
separation of shipment history.
Below is the simplest example I can come up with. The results
Dears
I am trying replace anything between '{!' and '!}' i.e {!A!} and {!B!}
and {!ABC!} with XYZ. I tried the following but no help. Can anyone
help?
$this->template=str_replace("{!*!}","XYZ",$this->template);
Thank you
Regards,
OOzy
What is the purpose of life?
Regards,
OOzy
What
Bruno Santos wrote:
> Hello.
>
> I'm using 2 cookies to control some user environmente.
> every time the user logs in, the cookie is set, but when i try to change
> the value of that cookie,
> deleting it firts and then setting a new one with another value, when i
> print the value of that cookie
On Tue, 2005-02-22 at 07:32, Bryan Dina wrote:
> I am having problems making proper insert queries against a MS SQL box
> when using a Linux server. A little background info, I have had this
> working "correctly" for many months. I am running Fedora Core 1, have
> compiled php 5.0.3 using the Fre
On Tue, 2005-02-22 at 05:27, Dhanasekar T wrote:
> hi all,
> i m new to this group ...now i want to learn php.
> i want all u r guidence to utilise this group...
> thanks in advance
> dhanas
I would start by looking at and dare I say reading the manual at
php.net. Then surf around for a beginn
On Tue, 22 Feb 2005 15:02:38 +0200
Sergio Gorelyshev <[EMAIL PROTECTED]> wrote:
It's work!!! :-) Thanks.
Here is a valid code:
appendChild(($root = $dom->createElement("test1")));
I am having problems making proper insert queries against a MS SQL box
when using a Linux server. A little background info, I have had this
working "correctly" for many months. I am running Fedora Core 1, have
compiled php 5.0.3 using the FreeTDS v.0.7 driver to access the MS SQL
2000 DBMS, and l
On Tue, 22 Feb 2005 06:58:12 -0500
Yann Larrivee <[EMAIL PROTECTED]> wrote:
> Hi Sergio maybe you should have a look at importNode
> http://ca3.php.net/manual/en/function.dom-domdocument-importnode.php
I've been tried to use this function. There are no results. This function (as
well as appendC
Sorry. There is a mistake.
Hi to all. I have a problem. I need to "glue" 2 or more DomDocument? objects to
one. After hours of hard coding I've came to the conclusion that there is no
possibility to use >>PHP 5.0.3<< to realize it. Is there anybody who could
break this conclusion and give me
Hi Sergio maybe you should have a look at importNode
http://ca3.php.net/manual/en/function.dom-domdocument-importnode.php
I beleive this is what you need along with Normalize.
Good luck.
Yann
On Tuesday 22 February 2005 06:54, Sergio Gorelyshev wrote:
> Hi to all. I have a problem. I need to "g
Hi to all. I have a problem. I need to "glue" 2 or more DomDocument? objects to
one. After hours of hard coding I've came to the conclusion that there is no
possibility to use PHP 5.3.0 to realize it. Is there anybody who could break
this conclusion and give me an appropriate solution?
P.S. I
hi all,
i m new to this group ...now i want to learn php.
i want all u r guidence to utilise this group...
thanks in advance
dhanas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Brett Patterson wrote:
Well, if you look in your phpinfo() file, you will see a SESSION_TIMEOUT or
SESSION_LENGTH value that is something like 18... different for each
server.
If you hold all your session values in the array, then you can use
session_destory(); as long as session_start() is pre
Hi all,
In the PHP file, I have written:
helloworld("hello, world")
where helloworld is in an extension. Now, I use
zend_parse_parameters() to parse input as follows:
char* hstr = NULL, *wstr = NULL;
argc = ZEND_NUM_ARGS();
if (zend_parse_parameters(argc TSRMLS_CC, "ss", &hstr, &wstr
N Deepak wrote:
On Mon, Feb 21, 2005 at 02:08:28PM -0800, Richard Lynch wrote:
You have to "make install" your new .so file to get copied over into your
PHP extensions directory, which from the messages seems to be
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ on your system...
I'm betti
OK, I have no desire to re-invent the wheel , if a script exist that is
available I'll jump at it, otherwise I'll write the code myself. Failing
to find one, I've started on the latter approach. I've written code that
places initial data fields into a MySQL database. The next step is to
identif
Hello.
I'm using 2 cookies to control some user environmente.
every time the user logs in, the cookie is set, but when i try to change
the value of that cookie,
deleting it firts and then setting a new one with another value, when i
print the value of that cookie
the value is never the new one, b
Emil a écrit :
I'm creating a webmail interface for a pop3-server
Why not use one of the many webmail apps?
Ex written in PHP/Perl, with no particular order:
Neomail
http://neocodesolutions.com/software/neomail/
Openwebmail
http://openwebmail.org/
IMP (horde)
http://horde.org/imp/
IlohaMail
http://
Hi
I'm creating a webmail interface for a pop3-server (I know weird to do
webmail with pop3, but it's for a running server which I can't control.
So pop3 it is and caching the mails in a mysql database). I've
implemented the pop3-support myself since the one in www.php.net/imap
lacks a lot of b
51 matches
Mail list logo