Robert Cummings wrote:
On Mon, 2006-10-23 at 10:13 +0200, Ivo F.A.C. Fokkema wrote:
On Fri, 20 Oct 2006 12:06:26 -0400, Robert Cummings wrote:
On Fri, 2006-10-20 at 17:22 +0200, Ivo F.A.C. Fokkema wrote:
On Fri, 20 Oct 2006 17:04:35 +0200, Fourat Zouari wrote:
I have PHP/PostgreSQL applicat
John Messam wrote:
Hello, I am trying to find out the country and possibly the city where the
visitors to my site are coming from. I can capture the IP address but how
do I translate that to a specific locale. Is there a way to do it or do I
have to ask them and map the info myself. Thank yo
one from scratch...
Regards
--
Chris Blake
Cell: 082 775 1492
Work: +27 11 880 2825
Fax : +27 11 782 0841
Mail: [EMAIL PROTECTED]
You are here: *** *** * *** * *** * But you're not all
there.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Russell Jones wrote:
Does anyone know if any of the PHP Site-Search tools have implemented the
new #privacy search standard (http://www.poundprivacy.org). Looking to
install a new site-search and I would really like to install something that
is compliant...
Don't know of any off hand but that s
Richard Lynch wrote:
On Fri, October 20, 2006 10:04 am, Fourat Zouari wrote:
I have PHP/PostgreSQL application were i got a search page with some
items
to search, am building the search query on server side.
I need to display a paginated search and for this i need to get the
total
count of line
Mark wrote:
I am using the following code for pagination with php5 and mysql 4.1.x
The pages advance by clicking on the "Next" or "Last" link
However the url does not advance past this in the url field
http://localhost/page.php?pagenum=2
Also the page count does not increase past
"--Page 1 of 5
Brad Chow wrote:
Dear all:
Is there a function can decrypt md5 ??
I don't have any bad ideas.
I just want to know whether md5 can be decrypted or not.
It can't be decrypted (you can't get the original value back) but it can
have collisions in which two items will have the same md5 sum.
http
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2006-10-23 16:34:16 +0100:
It appears that it could be because the user that runs the scripts is
not allowed to. When I run them on the commandline, I run them as the
root user.
that's very simple to check (man su)
yes I know of CRONtabs but w
Ricardo Ríos wrote:
Hi wizards, I 'm trying to use mail function in PHP, but this function
don't
send the email , I have a server with postfix. Does somebody know how to
send an email with php and postfix. Thanks in advance.
Create a phpinfo page and make sure the 'sendmail_path' is set.
If t
Ron Piggott (PHP) wrote:
I have used the strtotime command to calculate a week ago (among other
things) with syntax like this:
$one_week_ago = strtotime("-7 days");
$one_week_ago = date('Y-m-d', $one_week_ago);
How would you use this command to figure out the last day of the month
in two months
Marco Sottana wrote:
i find jscalendar element for HTML_QuickForm
http://www.netsols.de/pear/jscalendar/
Ask on the pear-general list, you'll get more responses.
http://pear.php.net/support/lists.php
and please don't cross-post.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
WILLEMS Wim (BMB) wrote:
Dear all,
I am trying to pass variables from one php-file to another but that
doesn't seem to work. Anyone an idea what I am doing wrong?
The first file shows a dropdown with all the databases on the server
(only 1 for me). You have to select a database and put an S
Hamish Lawson wrote:
I have a web application (not written in PHP) that can return data in
various formats, including JSON and PHP's serialization format. At the
moment my URL scheme looks like this:
staff/engineering?format=json
but I'd like to switch to using a file extension to denote
Hamish Lawson wrote:
Hello Chris
Thanks for responding.
> But what file extension should I use for PHP's serialization format?
> Obviously it can't be .php - aside from being inaccurate (it's not PHP
> code), using this extension would probably trigger the web serve
Tom Ray [Lists] wrote:
I have to get a temporary server in place under a tight time frame and
am using a pre-existing server that wasn't configured really for hosting
websites. I've upgraded all the services on it like going from Apache
1.3.x to Apache 2.0.59 and PHP from it's old version to 4.
Kevin Waterson wrote:
This one time, at band camp, Larry Garfield <[EMAIL PROTECTED]> wrote:
> My company is looking for a few good PHP programmers.
8<--- snip -
As a follow-up, since several people have asked:
---8< --- snip -
How much??
My guess - $2
CK wrote:
Hi,
A client has requested a cart with the following features, any leads on
such a package, preferably open-source?
Have you done any research at all? We're not going to do your work for you..
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (
Børge Holen wrote:
Ok.
Would you suggest to use a extra field to hold the table name as default?
Why do you need to know which table it's in? What are you going to use
it for in the next step? I see you're passing it in:
echo "page";
but what are you going to do with it?
I think if you ex
Eric wrote:
How would I go about listing all newsgroups via the IMAP functions?
Maybe http://www.php.net/manual/en/function.imap-list.php ?
It mentions "mailboxes" but the imap functions work for news & imap
accounts.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General
Tom Atkinson wrote:
http://gtk.php.net/
Integz wrote:
http://www.evilbitz.com/2006/10/27/local-php-standalone-binaries-2/
Another interesting one is http://winbinder.org/ but it's windows only.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http:/
martin wrote:
hello,
New to oop i'm really strugling to find a way to read a specified MYSQL
database and tabel in order to determine the number of records, the number
of fields in each record and convert the data into their labels and values.
I suggest you search for "php mysql tutorial" in
Wang Chen wrote:
I would like to add two buttons on a page form infomation confirmation,
however, the html code in php nest can not be known by browser if I put
into there.
Besically, there is a mail form to enter iterm infomaiton, if it exist
before, prompt its iterm id., if it is new, query
Beauford wrote:
I am working on a website for a friend that is being hosted by a third party
(which uses Linux) and I don't have access to the php.ini or any other
system files.
The problem I am having is this. When an email is sent from the website and
the user receives it, it says it is from [
Beauford wrote:
Can you be more specific. I only see 4 parameters and none of them apply.
Oops sent you to the wrong page.
http://www.php.net/manual/en/function.mail.php
There are 5 parameters:
bool mail ( string to, string subject, string message [, string
additional_headers [, string add
Beauford wrote:
That doesn't work.
Here is what I have.
mail($email,$subject,$body,$from);
Which is (senders address, the subject, the body of the message, and the
from address)
The from address is taken from this, and I added the -f in front of it.
define("regaddress", "[EMAIL PROTECTED]")
bruce wrote:
yo rich (or others)...
does php provide the ability to store objects in a session var
You just need to make sure you load the class before the session:
include('user_class.php');
...
session_start();
otherwise you get "incomplete class" errors.
--
Postgresql & php tutorial
I have a php script which takes maybe 15-20 seconds to run, however until it
completes a blank web page is displayed to the user. Is there a way/method
which would enable me to give some feedback to the user while the script is
running so the blank page is not displayed?
Best,
Chris
--
PHP
I have a php script which takes maybe 15-20 seconds to run, however until it
completes a blank web page is displayed to the user. Is there a way/method
which would enable me to give some feedback to the user while the script is
running so the blank page is not displayed?
Best,
Chris
--
PHP
jekillen wrote:
Hello all;
I am scratching my head over the following:
I have written code that is supposed to format text
sent from a form in a textarea form element.
This text does not have new lines added if
the text is allowed to automatically wrap to the
next line. I want to automatically ad
John.H wrote:
My php program whose owner is root:
and the folder 'test' 's owner is 'nobody'?
why?should the folder belong to 'root' too?
By the way,the safe mode is turned on.
If you're running this through your webserver, then the webserver is
actually executing the script, not the "owne
comments inline
Choy, Wai Yew wrote:
this if statement is false, because $a == 1
if ($a == 0) {
$b = 1;
$id = "a";
}
this if statement is true, becaus
Henrik Hudson wrote:
Thanks for the input everyone. It seems it Apache itself can't do lookups
either (ie: Hostnamelookups On ..doesn't actually do anything..so, going to
hunt down the issues inside Apache...)
funny thing is I've got a test server with the same exact port versions and
almost
Dotan Cohen wrote:
I need to replace text enclosed in brackets with links. How can I get
that text, though? I've tried numerous variations of the following,
with no success:
$articleText=preg_replace('/\[[a-z]]/i' , makeLink($1), $articleText);
I cannot get the text between the brackets send to
Dotan Cohen wrote:
On 12/11/06, Chris <[EMAIL PROTECTED]> wrote:
Dotan Cohen wrote:
> I need to replace text enclosed in brackets with links. How can I get
> that text, though? I've tried numerous variations of the following,
> with no success:
> $articleText=pr
Dotan Cohen wrote:
On 13/11/06, Chris <[EMAIL PROTECTED]> wrote:
Dotan Cohen wrote:
> On 12/11/06, Chris <[EMAIL PROTECTED]> wrote:
>> Dotan Cohen wrote:
>> > I need to replace text enclosed in brackets with links. How can I
get
>> > that text, though
Dotan Cohen wrote:
If I have to perform 30 LIKE searches for different keywords in a
varchar field, which strategy would be recommended:
1) 30 searches, one for each keyword
No. Horribly inefficient.
2) To select the varchar field from all the rows, and search through
them with php's array fu
David Tulloh wrote:
Dotan Cohen wrote:
If I have to perform 30 LIKE searches for different keywords in a
varchar field, which strategy would be recommended:
1) 30 searches, one for each keyword
2) To select the varchar field from all the rows, and search through
them with php's array functions?
H. Dan Phillips wrote:
Let me begin by saying I'm a newbie to PHP and open source. I setup a
windows 2003 server with IIS6, PHP 5x and MYSQL5x for one of our
developers to start building a new web based application. The developer
will be using PHP myadmin for his purposes. The settings that wer
Norbert Ehart wrote:
hello,
i have some problem with horde, after my isp have upgraded php on my
vps! i only get some error massages.
Notice: Only variable references should be returned by reference in
/usr/share/horde3/lib/Horde/Perms.php on line 343
Notice: Only variable references shou
p.net/manual/en/ref.pdo.php#AEN149844 (Example 12. Displaying an
image from a database)
Any suggestions? It seems to be that it *should* be doing what I want, but it
isn't.
Thanks,
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Tom Ray [Lists] wrote:
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2006-11-14 20:17:16 +0200:
On 11/14/06, James Tu <[EMAIL PROTECTED]> wrote:
I'm running a php script from the command line (I'm on OS X) and I'm
getting ...
Warning: mysql_connect(): Can't connect to local MySQL serve
Tom Ray [Lists] wrote:
Chris wrote:
Tom Ray [Lists] wrote:
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2006-11-14 20:17:16 +0200:
On 11/14/06, James Tu <[EMAIL PROTECTED]> wrote:
I'm running a php script from the command line (I'm on OS X) and I'm
bruce wrote:
hi chris...
for the initial post, it does/did matter for register_globals to be on/off.
in your reply, you use a $_GET[..] for the $path var. in the initial post
that i saw, (which i replied to), the $path var was simply used, without the
$_GET[..]. it's my understa
Børge Holen wrote:
Oh this was good.
I added a while loop to insert extra strings "0" in front of the number to add
if the string is less than 5 chars short.
sprintf is your friend here, no need to use a loop.
sprintf('%05d', '1234');
--
Postgresql & php tutorials
http://www.designmagick.com
Robert Cummings wrote:
On Thu, 2006-11-16 at 10:47 +1100, Chris wrote:
Børge Holen wrote:
Oh this was good.
I added a while loop to insert extra strings "0" in front of the number to add
if the string is less than 5 chars short.
sprintf is your friend here, no need to use a loop
It's your Those generate coordinatesd, so the
numbers specify where on the image you clicked to submit the form.
Chris
Benny Pfitzner wrote:
Hallo,
I know that this is a little bit of topic but I don't know any better place to
post my Problem.
I want to automatically POST val
like others to
test it (on different platforms) before I submit it as a bug.
Chris
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Whoops,
I'm using PHP 5.2.0 on Mac OS X 10.4.8.
I'll do as you suggest (and learn more about PHP memory usage) to try
to see what's going on.
Chris
[EMAIL PROTECTED]
On Nov 26, 2006, at 12:34 PM, Richard Lynch wrote:
What version of PHP and what OS?
I *think* tha
Okay, I modified the script as follows to allow for collecting data
and graphed it. The graph is at http://dented-planet.net/graph.png
(sorry, I'm not versed in created perfect charts).
echo $i . ' ' . memory_get_usage() . ' ' . memory_get_usage
(true) .
Brian Dunning wrote:
I've got a new OS X box and for some reason doesn't work like
it does on all my other OS X boxes - anyone know a quick reason why not?
Check your php.ini for short_open_tags.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://w
Chris wrote:
Whoops,
I'm using PHP 5.2.0 on Mac OS X 10.4.8.
Memory usage in php5.2.0 has been changed:
http://www.php.net/UPDATE_5_2.txt
Under "Improved memory manager and increased default memory limit"
Not sure why you'd be getting negative values but I'm guessi
Dotan Cohen wrote:
On 27/11/06, Brian Dunning <[EMAIL PROTECTED]> wrote:
I've got a new OS X box and for some reason doesn't work
like it does on all my other OS X boxes - anyone know a quick reason
why not?
Exactly for that reason I don't recommend that you use it. Just use
as it's portabl
Dotan Cohen wrote:
On 27/11/06, Chris <[EMAIL PROTECTED]> wrote:
Dotan Cohen wrote:
> On 27/11/06, Brian Dunning <[EMAIL PROTECTED]> wrote:
>> I've got a new OS X box and for some reason doesn't work
>> like it does on all my other OS X boxes -
Back Ports wrote:
Hi all,
Does anyone know if GSSAPI support based on patches mentioned in bug
report: 30819 (http://bugs.php.net/bug.php?id=30819) are still in CVS
(or part of php-5.2.0)?
If not, could someone kindly point me to the patch (if it's still out
there).
You will have to ask for
James Tu wrote:
Thanks Brad:
I'm just surprised that when people mention mysqldump, most of the time
they don't talk about locking the tables at all.
I'm curious why this is the case.
Because you don't need to. More of a mysql-mailing list question to be
honest.
--
Postgresql & php tutori
Chantal Rosmuller wrote:
Hi Manuel,
1) I can't get the From header right, when I receive the test mail the
sender is apache
There is From: and From . From is not a real header. It is just set by
some MTA to the return path address and is also used as separator in
mailbox files with multiple me
Carsten Gehling wrote:
Hi,
I am using PHP's LDAP to read and write information fron user-objects
in Active Directory (Windows Server 2003).
The AD has been extended with 2 attributes (call them "xx" and "yy")
with the field type BOOLEAN
How do i write to these fields?
If I use ldap_mod_replac
Le Phuoc Canh wrote:
Of course I know edit my php.ini, but the problem here that when I test use
sybase_connect() function and run by command line, a message "This
application has failed to start because libct.dll was not found".
..so it's not that php doesn't support it, it's that php can't
Andrew Warner wrote:
This login script works when I use Snoopy (php http class), but here
with php curl the response is the redirected page. The script is
following a 302 redirect and I don't want it to because I need some
header info from the 302 page. The curl_setopt($ch, CURLOPT_MAXREDIRS,
Andrew Warner wrote:
Actually, the problem is that the site isn't recognizing my cookies. Is
there anything wrong with the below code? Same thing in Snoopy works
perfectly. Going to stick with Snoopy.
$the_headers = array(
"Language: en",
"Accept: */*",
"User-Agent: Mozilla/5.0 (Macin
Johannes Lindenbaum wrote:
Evening,
I am new to this list, so please if this email is "offensive" to anyone
I didn't know any better. Not here to start a war or similar.
I have a couple questions about magic_quotes and it's deletion in PHP 6.
I've been lazily following php.internals and read
Chantal Rosmuller wrote:
On Wednesday 29 November 2006 00:45, Chris wrote:
you will most likely change what
I forgot to mention that I can't set the return-path either.
That can *only* be an email address - you can't include a "name" in the
return-path. Also it can'
Le Phuoc Canh wrote:
Thanks Chris, I understand my problem, but can you show me where to find
the libct.dll or where I can get libct.dll
Search for it.
"libct.dll sybase" returns a few results.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mail
Jan Schröter wrote:
Hi all! I'm having trouble with my server(s) for some weeks now and did
not find
any solution for now. My System is Opensuse 10.1 (32 bit) with Apache
2.2.3 and
PHP 4.4.5-dev as apache module (latest stable CVS, but wasn't the
solution).
Im having abrupt segmentation fault
[EMAIL PROTECTED] wrote:
hi,
I had to move my osComerce store to new hosting company. new server runs
on php5/mysql5.
got this error:
FATAL ERROR: register_globals is disabled in php.ini, please enable it!
since evenon old server globals was Off I was adding
php_value register_globals 1
Now,
Jochem Maas wrote:
[EMAIL PROTECTED] wrote:
You'd assume those ENV variables are secure.. or secure "enough". I know
there's no such thing as perfect security, but I still wonder if there's a better way.
Although at this point, if there was a way to read other process/subprocess ENV
variable
Tony Marston wrote:
""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
On Sun, December 3, 2006 5:22 am, Tony Marston wrote:
""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
On Sat, December 2, 2006 5:31 am, Tony Marston wrote:
I think it
I'm having terrible response times for connecting to the news server,
getting new headers and downloading messages.
Can take minutes to do one task or times out.
I'm using Outlook Express 6.
"Al" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Anyone having problems connecting t
Beauford wrote:
Hi,
I am trying to install vBulletin and keep getting this error: Fatal error:
Call to undefined function: gzinflate().
The only thing I can find on this is that zlib needs to be configured with
PHP at compile time. So I reinstalled PHP using the following:
./configure --with-
Beauford wrote:
I have zlib-1.2.1.1-i486-1. Whether that is zlib-devel or zlib-dev I have no
idea, and not sure how to find out.
Zlib is different to zlib-dev/zlib-devel.
The zlib package only contains the binaries and man pages.
The zlib-devel package contains the header files (zlib.h for ex
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2006-12-07 13:41:00 +0100:
I wrote a recursive function, but when running the function appache stalls,
the error log says:
module mod_php4.c is already running, skipping
That has nothing to do with the function call.
Is this a bug, or am I
Beauford wrote:
I'm thinking though that this isn't really the problem. When I install
Slackware, I install everything (except for games). On my older PC I
installed version 8.1 and had no problems, but now with version 10 I have
problems. I'm pretty sure that zlib-dev or zlib-devel has never bee
mike xu wrote:
Hi, I have problem of open named pipe file in linux.
Here is my sample code:
$fifo_file = "/dev/pmsg";
@ $fp = fopen($fifo_file, 'w+b');
It's wb+ not w+b
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
Jim Lucas wrote:
Jochem Maas wrote:
Richard Lynch wrote:
On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
Is it possible to allow user pick several images and upload them all
at
once? (I need to pass the images to a function for the resize). Or do
I need
to give several browse b
Brad Fuller wrote:
-Original Message-
Hi
Sorry if this is considered off topic, but do you know of any code
examples/libs with a flash/php file uploader with progress bar?
I've googled for a while but the scripts I find won't work. I'm using
Firefox 2 and Flash player 9 on an intel Mac
William Stokes wrote:
Hello,
Can someone tell me what wrong or to how to manage this?
//default
$limitorig = 10;
echo "";
echo "$limitorig";
echo "10";
echo "20";
echo "30";
echo ";
Something like this would be better:
$limitorig = 10;
$options = array('10', '20', '30');
if (isset($_POST['
William Stokes wrote:
Hello,
I have a page that uses session cookies for deciding what content to show to
a visitor. User also has 2 form objecks to apply filters to the content SQL
queries. So at the beginning of the script I set 2 cookies based on user
selections(or defaults) and after that
Fernando M. M. wrote:
Hello,
I have a script called redir.php that is used only for redirecting
using the following code:
header('Location: ', $_GET['url']);
But
now i need to redirect post varibles too. Example:
If someone access
redir.php?url=my_page.php and post:
&a=1&b=2
I need to
send
[EMAIL PROTECTED] wrote:
I'm experiencing a strange problem and difficult to diagnose because
it's random. I have built an application that sends out an email with a
nice amount of text (don't have exact char count, but could get it).
On the html email, a random whitespace appears in the conte
Matthew North wrote:
Hello All,
I have an odd situation that I wonder if someone might have some
insight on. The scenario is this:
- Two FreeBSD systems running Apache+mod_php+others. We use one for
development and the other for testing.
- Each system is running PHP 5.2.0 with identical php.
Richard Morris wrote:
Hello all,
I was experimenting with the imap_* library functions trying to see if I
could get a PHP script to access a folder on our IMAP server and I ran
into a problem.
I was trying to get a simple script to work which simply opened a
connection to the mail server an
[EMAIL PROTECTED] wrote:
i am moving my webserver from a windows box to a linux box with php ver
5.2.0 and noticed i am having a problem with a php file(code below). i
thought it was a module i was missing but looking at the php config
file all the same modules are loaded. allow_url_fopen is enab
David Duong wrote:
Hi everyone,
Let me know if there is a better place to post this.
I am playing with the idea of creating a true (KISS) abstraction layer
that makes full use of PHP5's OOP support. So logically it would make
sense to make use PDO wherever possible, however, one of PDO's desi
Fahad Pervaiz wrote:
ECHO is a language construct but still is there any work around to override
it or change its functionality???
Nope. You're stuck with how it works now.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
clr wrote:
Please can someone advise me on heredoc and its shortcommings,
I am designing a complex site and elected to use DIV's as opposed to
frames.
Heredoc seems to be ideal in that I can do all processing first and then
layout with relative ease.
I was wondering if it was acceptable to u
I have one server in USA and one server in Thailand. The server in USA is
the one containing the updated information. The Thai server will be a copy
of the USA server.
I want to write a PHP script that does this for me:
1. Once a day copies the files on the USA server to the Thai server and put
When I tried to run this, PHP treated the word -include- as a control
structure rather than an index name. Understandable. So, I put it in single
quotes ('include') to see what would happen and it works fine. But I don't
understand why!
What is the difference between $content_row [include] a
Hasn't anyone else done this before (recently)?
Did everyone just write their own code every time?
Anyone have some easy to use code that allows for:
Add, delete, update/rename, select, show tree, bread crumb display, etc.
I use PHP 5.0.5 and mySQL 5.0.18, so ideally it would take advantage of a
pine oil wrote:
I've used the following counter for some time, but I don't seem to
have it work now after I have moved the directory of the files.
They used to be in /var/www/html, but moved to /home/webroot/test.
Do you think the relocation of the files has something to do with my problem?
I
pine oil wrote:
On 2/22/06, Chris <[EMAIL PROTECTED]> wrote:
pine oil wrote:
I've used the following counter for some time, but I don't seem to
have it work now after I have moved the directory of the files.
They used to be in /var/www/html, but moved to /home/webroot/tes
IG wrote:
Is it possible to alter a subject line (or
body for that matter) of an email in a pop3 mailbox?
If it's already in the mailbox, then I highly doubt you can do this.
You need to do this on the way in before it gets to the account.
Consider the ramifications if you could:
Anyone coul
Roy Souther wrote:
How can I make PHP use the symlink and stop trying to resolve the
original files?
Can you try:
$mydir = dirname(__FILE__);
include($mydir . '/../config.php');
?
or
$mydir = dirname(__FILE__);
include(dirname($mydir) . '/config.php');
--
Postgresql & php tutorials
http:/
Here is the function:
function highlight_text($text, $highlight) {
return eregi_replace($highlight, "" . $highlight .
"", $text);
}
In this case, if the text to highglight is:
MacOS X Super Gizmo
And a client searches for the string "macos", the result will be:
macos X Super Gizmo
You'
Nicolas Verhaeghe wrote:
That's not where the issue is.
Eregi_replace conducts a case insensitive SEARCH but how the REPLACE
operates has nothing to do with it.
If you use ereg_replace, then it is most obviously not going to replace
"MacOS" with "macos" or even "MacOS", because the string searc
Dan Rossi wrote:
Ive just discovered a strange issue where parse_url is not splitting up
the url properly. in the host key its returning like //www.php.net where
the url is http://www.php.net. any ideas ?
If the behaviour changed between versions without it being documented or
noted somewh
11:37 +1100, Chris wrote:
Roy Souther wrote:
How can I make PHP use the symlink and stop trying to resolve the
original files?
Can you try:
$mydir = dirname(__FILE__);
include($mydir . '/../config.php');
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General
a system that I developed and I tested in my PC and it runs to the
perfection, when I upload this to the hosting server it has many problems. I
think that is because the session variables don't work in the server. It is
possible? How can I solve this???
What problems?
You can check if session
[EMAIL PROTECTED] wrote:
Hi,
This might be "too simple" or not...
I'm trying to send emails from my PHP page, and while both mail() and PEAR Mail
work, I'm having a hard time finding out whether a message was actually sent or
not.
The short answer is 'not really'.
The long answer..
If the m
Yes I'm aware of the mail queue. I guess what I'm after is way to get a
more detailed status message. I notice that in the mail queue, each
message is given a unique ID, which I suspect could be used for my
purpose, i.e. has the message been processed yet, is there a temporary
or permanent deliver
Adrian Cid Almaguer wrote:
Can I give visibility to a class constant.
something like this
class foo
{
private const = "aaa";
protected const = "bbb";
public const = "ccc";
}
I dont want the user of my class can access to the constant.
and I cant use public static fields because I dont wa
1101 - 1200 of 6641 matches
Mail list logo