On Nov 9, 2007 1:18 AM, Colin Guthrie [EMAIL PROTECTED] wrote:
Lasitha Alawatta wrote:
There is a tool call idera (SQL diagnostic manager). Basically it is
a performance monitoring and diagnostics tool.
It has a feature;
Identifying of worst-performing codes –
Identifies
On Nov 9, 2007 8:02 AM, Skip Evans [EMAIL PROTECTED] wrote:
Hey,
Anyone want to recommend a wiki package they use
to document PHP code projects, libraries, etc,
they are happy with?
I quite like Doku (http://wiki.splitbrain.org/wiki:dokuwiki).
--
Postgresql php tutorials
On Nov 12, 2007 7:38 PM, Ronald Wiplinger [EMAIL PROTECTED] wrote:
Chris wrote:
Ronald Wiplinger wrote:
My php program is working with Firefox, but not with Internet Explorer.
Nothing to do with php, your problem is javascript.
Is there a tool to find the problem?
For IE, try
On Nov 13, 2007 7:10 PM, Jon Westcot [EMAIL PROTECTED] wrote:
Hi Chris:
Exactly as you have there.
print_r($_POST);
will show you everything.
Here's a section of what comes back when I do this:
[mls] = 1234567
[property_address] = Main St
[city_arr] = Array
On Dec 1, 2007 3:53 PM, Crayon Shin Chan [EMAIL PROTECTED] wrote:
On Saturday 01 December 2007, tedd wrote:
At 10:21 AM +0800 11/30/07, Crayon Shin Chan wrote:
On Friday 30 November 2007, tedd wrote:
I'm trying to understand joins,
Ask on a database related list.
Really?
Really.
Once it settles down, it will run every Friday at 4:00p to
summarize the week. For bragging rights, to keep track of how much
time you've spent doing community service or whatever else.
Why? Does anybody really care how many emails they send to the list?
While I don't doubt your good
On Jan 5, 2008 9:14 PM, Yang Yang [EMAIL PROTECTED] wrote:
hi,everyone,i am a newbuy for php world
and i have a problem when i study php
i want to make a script,it works for:
a mysql table,like
title authorcontentdate
a1a2 a3 a4
b1b2 b3
On Jan 5, 2008 10:23 PM, Alain Roger [EMAIL PROTECTED] wrote:
Hi,
Serveral web sites have a menu and when you pass your mouse over a link, the
browser statusbar only shows the folder where is located the file link, not
the complete address including the file link.
i mean if you take web
On Jan 5, 2008 10:36 PM, Alain Roger [EMAIL PROTECTED] wrote:
ok, maybe i did not write my question well.
i already used it because i setup the DirectoryIndex to index.php,
index.html
my concern for now, how to have the same behavior on my local computer
(development computer) ?
my computer
On 6/2/07, Richard Lynch [EMAIL PROTECTED] wrote:
On Fri, June 1, 2007 3:16 am, blueboy wrote:
May be a stupid question but can I link to images with doscument root
$img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif';
echo img src=\$img_url\ width=\250\ height=\163\/;
I am certain
On 7/11/07, clive [EMAIL PROTECTED] wrote:
Hi Chris,
I recreated a new connection in faq.php and it's working now.
I had the impression that 1 connection could last during a user session,
but apparently a user session may need many connections.
Thanks again, Cor
Have a read on
On 9/1/07, Rodrigo Poblanno Balp [EMAIL PROTECTED] wrote:
I have a question that might be too silly for those of you who are PHP
gurus.
Here it comes:
I had a mail (specifically in the headers) function call like this:
$header = ;
$header .= 'From: [EMAIL PROTECTED];
$header .=
On 7/19/06, Renne Rocha [EMAIL PROTECTED] wrote:
Hello,
I am using the ADODB class to connect to a MySQL server. I am trying
to generate an ID with the method GenID(), but when I tried this:
$id = $db-GenID('table');
The value of $id is equal to zero. I know that MySQL doesn't use
On 7/31/06, Robin Getz [EMAIL PROTECTED] wrote:
I am trying to debug a php script that I downloaded, which has a memory
leak in it.
I was looking for a way to find what variables were in php's memory, and
what size, they were, but I couldn't find anything?
The script is a off-line wiki
foreach($_POST['reporton_company'] as $cmp_ind =$arrayd_cmp_id) {
foreach($_POST['report_period'] as $rep_ind =$arrayd_per_id) {
foreach($_POST['questions_groups'] as $group_ind =
$arrayd_group_no) {
mysql_select_db($database_name, $dname);
Why
On 8/5/06, Mace Eliason [EMAIL PROTECTED] wrote:
Hi,
I am having problems with uploading files to a windows server using
php. I have used the same script on other server with no problems.
From what I can tell this new server is running windows with IIS. I
think the problem is with the path.
On 8/15/06, Tom Chubb [EMAIL PROTECTED] wrote:
I know this will be really simple, but I'm struggling to get my head round
the use of imagedestroy()
I have some code which uploads an image, resizes to create a smaller image
and thumbnail then deletes the source image.
My question is which images
On 8/15/06, chris smith [EMAIL PROTECTED] wrote:
On 8/15/06, Tom Chubb [EMAIL PROTECTED] wrote:
I know this will be really simple, but I'm struggling to get my head round
the use of imagedestroy()
I have some code which uploads an image, resizes to create a smaller image
and thumbnail
On 8/17/06, Alain Roger [EMAIL PROTECTED] wrote:
Hi,
I'm new to PHP, so sorry if my question looks like stupid.
I have a web application which use authorization and authentication process
to log-in.
I would like to know if it exists a way to synchronize the authentication
with our Active
On 8/20/06, Bigmark [EMAIL PROTECTED] wrote:
Can anyone tell me why this works on my localhost but gets an error on my
server:
?php
$sql = SELECT COUNT(*) FROM leaderboard WHERE points =( SELECT points FROM
leaderboard WHERE username= '$username' );
$result = mysql_query( $sql ) or die (
On 10/20/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote:
On Fri, 20 Oct 2006 15:49:14 +1000, Chris wrote:
Andy Hultgren wrote:
To whoever was asking this (sorry didn't see the original email):
Is it possible to have a PHP script execute as the user of the domain
instead of the webserver?
On 10/21/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote:
On Fri, 20 Oct 2006 23:24:14 +1000, chris smith wrote:
On 10/20/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote:
On Fri, 20 Oct 2006 15:49:14 +1000, Chris wrote:
Andy Hultgren wrote:
To whoever was asking this (sorry didn't see
On 10/21/06, Jochem Maas [EMAIL PROTECTED] wrote:
chris smith wrote:
On 10/21/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote:
On Fri, 20 Oct 2006 23:24:14 +1000, chris smith wrote:
On 10/20/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote:
To my experience, apache (with PHP running
I don't appreciate being scolded.
Spend some time on the list and see how many times this question (or
type of question) gets asked and how many people actually do *some*
sort of work for themselves and you'll appreciate why people ask this
straight away.
If you had said I found product X Y
On 12/22/06, Steven Macintyre [EMAIL PROTECTED] wrote:
Ok ... previous problem sorted ... now onto the next ...
The client wants the following;
A scroll bar with 3 random thumbs from each subdirectory in the /images/
folder
I was thinking ...
Going into each folder, getting files, pushing
On 12/23/06, Shanon Swafford [EMAIL PROTECTED] wrote:
Hi Guys,
I just cut my website over to Apache2 and PHP5 on FC5.
So now I'm clean up all the PHP Notices.
Does anybody know the config directives I can put in my /etc/php.ini or
etc/httpd/conf.d/php.conf or /etc/httpd/conf/httpd.conf so
On Sat, Oct 18, 2008 at 3:22 AM, Frank Stanovcak
[EMAIL PROTECTED] wrote:
I'm using the following code to try and do a simple insert query. However
it won't insert the data into the table, and I get no error messages. What
have I done wrong this time?
You will be getting an error.
echo
On Mon, Dec 29, 2008 at 6:28 PM, Michelle Konzack
linux4miche...@tamay-dogan.net wrote:
Hello,
In my PHP5 documetation I have installed on my system PDO is mentioned,
but the files are missing...
While surfing php.net I have not found the PDO part which I need Off-
Line since I am on GSM
So, PostgreSQL catch the array by name
pg_fetch_array($db_query, null, PGSQL_ASSOC)
and MySQL use the position
mysql_fetch_array($db_query, MYSQL_NUM)
Why?
http://www.php.net/mysql_fetch_array
Use MYSQL_ASSOC as the 2nd param, or leave it out and by default it uses BOTH.
--
But from PHP, it only works beautifully if I specify complete pathnames for
convert
/usr/local/imagemagick/ is not in apache's $PATH, so you need to
specify the full location.
As soon as I try to convert a PDF
image, it fails:
?php
$command_line = /usr/local/imagemagick/bin/convert
And as a side note (some of you already know): for my wife and I
closing out the year, we heard the heartbeat of our first child for
the first time today in the ultrasound. Nothing else will ever again
matter as much to me as what I am about to embark upon. I don't think
any song or
It may be worth mentioning that, IIRC, CHAR is faster due to the fixed
length. If you can make your table use a fixed length row size (ie no
variable length columns), it'll be faster.
I'd be interested in seeing tests about this.. I doubt there's any difference.
Also I could be missing
I have thought of using comma-separated ID's in special field in the lists
table of the users who have joined that specific list, but I have also
thought of doing the same at the users table, then I had another solution
which is to create new table:
create table `relations` (
`listid`
2009/2/11 João Cândido de Souza Neto j...@consultorweb.cnt.br:
Hello everybody.
I´d just like to know if there´s any way of defining a thousand separator to
a currency value using sprintf.
Use number_format instead of sprintf, it's designed to do what you want.
--
Postgresql php tutorials
Ask the open-source project for help. They will be able to answer your
questions better than we can.
On 2/25/06, ganu ullu [EMAIL PROTECTED] wrote:
Hi all,
I installed a opensource php project, and now is working fine for me.
Now that project has some 40-50 MySQL tables..
now I want to
On 2/25/06, Mark [EMAIL PROTECTED] wrote:
Does anyone know if its possible or how difficult it would be to have a user
send an email from outlook express to a websites mysql database and update
records.
You could write a script to parse the email and do the update. It
would come in on 'stdin'.
I have some images in a database -- I mean, the actual data. There are no
files.
I want to read Exif data for these images, but the read_exif_data()
function wants a file. I suppose I could write the images to temp files,
but that's a bit wasteful. And where would I write them? Is
On 2/26/06, Chris Lott [EMAIL PROTECTED] wrote:
I'm making the switch from Windows to Linux for mydesktop and
development environment and would greatly appreciate suggestions for
development tools on this platform. Ubuntu seems to be getting all the
press, but suggestions about Linux
Answering myself: I solved this with tempnam(). I'm not completely sure
about the portability, and of course it's a waste to write a file at all.
And it could pose a security problem as well. Ho hum.
You only need to do it once - then store it back in the database. That
info isn't
On 2/26/06, Schalk [EMAIL PROTECTED] wrote:
Greetings All,
I am pretty new to PHP and are tasked to move a clients site from:
www.domain.com/somedirectory/home.php to www.home.php
If you're moving a clients site wouldn't your work be a better place
to ask? They will have processes etc to
On 2/26/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I'm having kind of a weird problem I want $MailSubject to contain a the value
prayer unless I tell it other wise.
// on a form processor.
$MailSubject = Praise;
include_once(mailit.php);
// then in mailit.php
include form2mail.php;
On 2/26/06, Bogdan Ribic [EMAIL PROTECTED] wrote:
Hi all,
I need to synchronize two postgresql servers, but synchronization is
one-directional (ie, data from one computer needs to be copied to
another). Basically, I want the target computer to drop the schema
public and then re-create it
On 2/26/06, Paul Reinheimer [EMAIL PROTECTED] wrote:
Hi, I'm trying to compile PHP 5.1.2.
My ./configure is:
'./configure' '--with-mysql=/usr/local/mysql'
'--with-apxs=/etc/httpd/bin/apxs' '--with-gd' '--with-png'
'--with-zlib-dir=/root/zlib-1.2.2' '--enable-gd-native-ttf'
'--with-ttf'
Where is Open_basedir set? In a global php setting or can it be done
site by site? And if so, what is the most logical place to put the file
that controls this?
It's set by apache and unless you have root access you don't have any
control over it.
Re-read the error message, php tells you all
On 2/26/06, Atif Khan [EMAIL PROTECTED] wrote:
Hello there, I am having an issue with HTML_QuickForm.
When I try to send the form to another page, it does not
seem to validate the form.
Any suggestions.
// Load the main class
require_once 'HTML/QuickForm.php';
// Instantiate the
Goal was to get postgre to execute/import an sql dump file, ie not to
write import-export functionality myself. In the end, I used piping,
something like this:
system(type $filename | \C:\Program
Files\PostgreSQL\8.1\bin\psql.exe\ -h localhost -p 5432 X6tmp
\postgres\);
But thanx
Most sites today seems to be based on this style:
include(top);
include(current_page);
include(bottom);
If one wants to set cookies from current_page, how should that be handled
with as clean source as possible?
From the php manual:
Like other headers, cookies must be sent before any
On 2/26/06, Bogdan Ribic [EMAIL PROTECTED] wrote:
Hmmm, come to think of it, it would only work if short_open_tags ini
directive is turned OFF, which in most cases it won't be :(
You can turn it off with a htaccess file.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On 3/4/06, Daevid Vincent [EMAIL PROTECTED] wrote:
I'm building a fairly large project. I've been trying to follow best
practices, but I'm a bit worried about performance. Using PHP 5.1 and mySQL
5.0.
I have product and company classes.
So when a user does a search of the database, is it
On 3/4/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
[snip] I vaguely recall you couldn't do an anonymous bind to an active
directory system - you had to properly authenticate before you could do
a search.
You didn't include the bind stuff so I can't tell if that's the problem
:)
[/snip]
On 3/5/06, Paul Jinks [EMAIL PROTECTED] wrote:
Hi everyone
I'm thinking of getting an iBook for reasons not really to do with
webbing but really need to do occasional php/mysql stuff to justify the
expense. I believe that they all come with an Apache testing server
installed and wondered if
MySQL returns Column 'auction_house' cannot be null.
Here're some parts of my code:
--- code ---
$update = $this-sql-stmt_init();
$update-prepare(UPDATE auctions SET name=?, auction_house=?, link=?,
prize=?, runtime=?, bids=?, picture=? WHERE link=?);
$update-bind_param(sisdsiss,
On 3/5/06, Mark [EMAIL PROTECTED] wrote:
Can anyone tell me why i am getting this message when trying to login to the
admin section, i am running the script off my local machine.
Warning: session_register() [function.session-register]: Cannot send session
cookie - headers already sent by
On 3/6/06, tedd [EMAIL PROTECTED] wrote:
R O B said:
That Rod guy, he's such a card! I'd add something, but Jay has already
covered my list in a more recent email than this one to which I'm
responding :)
jblanchard (who I think is Rod) said:
A SQL question on a PHP mailing list usually
On 3/6/06, Weber Sites LTD [EMAIL PROTECTED] wrote:
The only way I could work around this was to put empty ?? at the
Beginning of the text and now highlight_string() highlights only what
Is inside ? ?
You can see an example of the problematic text in the example
Area of this page :
On 3/8/06, steff [EMAIL PROTECTED] wrote:
Hello,
I want to define my own environemnt variable APPLICATION_ROOT and be
able to retrieve his value from php. As apache module, cgi, cron and
command line.
Now i'm just be able to get it from command line. In other
(module,cgi,cron) when I print
.']%%',
$content);
}
... other processing here.
foreach($placeholders as $i = $text) {
$content = str_replace('%%PLACEHOLDER['.$i.']%%',
highlight_string($text), $content);
}
-Original Message-
From: chris smith [mailto:[EMAIL PROTECTED]
Sent: Monday, March 06, 2006 11:59 AM
On 3/15/06, Mark [EMAIL PROTECTED] wrote:
Can anyone help to make this form dynamic, at hte moment a user picks a
round number from 1-22 but if that round is closed then sends them back to
this page. Anyway of making the form show the current round (as in sports
round fixtures) without adding
On 3/16/06, Karel Kozlik [EMAIL PROTECTED] wrote:
What version of imap do you have on both servers?
Maybe one is older and has some bugs that have been fixed.
Hi,
phpinfo on both servers reporting:
IMAP c-Client Version: 2001
The strange think is that imap_mail_compose were
On 3/16/06, Bikram Suri [EMAIL PROTECTED] wrote:
Hi,
I do phpinfo(); and I see the include path set to c:\php5\Pear. I have wamp
installed on my machine but before wamp I had done a standalone installation
of PHP 5 in c:\PHP5 diretory. I have since uninstalled it and deleted the
c:\PHP5
Is there a drawback to running php5 as CGI?
Anthony,
I really don't know, because computers are much faster, so
there may not be the time lags there were 10 years ago.
As I understand CGI, the web server sees that the page is of
type .php, starts up PHP, PHP processes
On 3/18/06, Nicolas Verhaeghe [EMAIL PROTECTED] wrote:
Curt Zirzow wrote:
On Thu, Mar 16, 2006 at 08:46:07PM -0700, Nicolas Verhaeghe wrote:
One of my clients has an os commerce install which requires
register_globals to be set to on, for some reason.
It is set up to off in php.ini,
On 3/18/06, Jay Blanchard [EMAIL PROTECTED] wrote:
Apache2
PHP 4.4.n
Suse Linux 10
PHP_AUTH_USER is not getting set in the $_SERVER array. Thoughts?
It only gets set once you get to a page behind a htpasswd'ed area -
it's not in there by default.
--
Postgresql php tutorials
On 3/21/06, T.Lensselink [EMAIL PROTECTED] wrote:
I'm working on a small webservice. When started this project i used the
NuSOAP library. And it does the job perfectly. But last weekend i was
playing around with the PEAR::SOAP package. This seems to be a lot more
stable. And for sure a llot
On 3/21/06, Peter Lauri [EMAIL PROTECTED] wrote:
Hi,
I have installed the NuSoap and it works fine with small tests using HTTP.
My real application needs to connect via HTTPS, and it does not work. It
returns error that I need CURL or OpenSSL for it to work with HTTPS.
I am not an expert in
I Want to know if it is possible to execute PHP(5) as the owner/group of
the script it self.
At the moment saved files get owner and group nobody.
When i upload through ftp, it gets the normal owner and group nobody.
Is there a way that i can set both owner and group to
'myuser-groupname',
On 3/22/06, Mathijs [EMAIL PROTECTED] wrote:
chris smith wrote:
I Want to know if it is possible to execute PHP(5) as the owner/group of
the script it self.
At the moment saved files get owner and group nobody.
When i upload through ftp, it gets the normal owner and group nobody
On 3/22/06, Mathijs [EMAIL PROTECTED] wrote:
chris smith wrote:
I Want to know if it is possible to execute PHP(5) as the owner/group of
the script it self.
At the moment saved files get owner and group nobody.
When i upload through ftp, it gets the normal owner and group nobody
On 3/22/06, Mathijs [EMAIL PROTECTED] wrote:
chris smith wrote:
On 3/22/06, Mathijs [EMAIL PROTECTED] wrote:
chris smith wrote:
I Want to know if it is possible to execute PHP(5) as the owner/group of
the script it self.
At the moment saved files get owner and group nobody.
When i
On 3/22/06, Michael Hulse [EMAIL PROTECTED] wrote:
Hi,
I am just learning about classes.
My server is running PHP 4.3.11
Example code:
class testing {
var $what;
}
$linkGenClass = new testing();
$linkGenClass-what = 'hi';
echo $linkGenClass-what;
Why does the constructor
On 3/22/06, Michael Hulse [EMAIL PROTECTED] wrote:
Hi Chris! Thanks for all the great answers, I really appreciate all of
your help. I am browsing the link you gave me now.
I only have one question:
On Mar 22, 2006, at 4:09 AM, chris smith wrote:
You're calling a method (which
On 3/22/06, Simone O'Brien [EMAIL PROTECTED] wrote:
Hi, I have set up a message board and we cannot log out or do anything on the
page at all. We cannot use it at all.
http://myminiaturegoats.com/forum3/index.php?action=logout;sesc=331181faba9b2783a9506ad21068fb8b
Database Error
On 3/23/06, Peter Lauri [EMAIL PROTECTED] wrote:
Hi,
I have been trying to find a simple example of how to add attributes to the
requests, but after two days search I can not find an example. The $param is
easy to create if it does not contain any attributes. This is what I want to
create,
On 3/23/06, joseph [EMAIL PROTECTED] wrote:
bonjour,
why does my DB object always send INIT DB to mysql server?
the problem caused by calls like the following -- very simple code,
really may be caused by my PEAR/DB.php wrapper functions (see
below) . evidence is my mysql query log
On 3/27/06, Mark [EMAIL PROTECTED] wrote:
I havnt even tried this query but i know its wrong can anyone help!
***
?php
include(header.php);
include(connect.php);
$comp_id = $_SESSION['comp_id'];
$user_id = $_SESSION['user_id'];
// Grab variables and
On 3/28/06, Merlin [EMAIL PROTECTED] wrote:
Hi there,
I am wondering if there are already tools out there which do
create RSS feeds on the fly with the help of PHP.
My goal would be to create RSS dynamicly out of a LAMP App. to
syndicate the results.
Are there any tools you know about?
On 3/27/06, Dennis N. [EMAIL PROTECTED] wrote:
Hello,
I have some trouble with sending emails with an MS word attachment. I let
fill a word document from my php website. When it is finished with filling
the information, the document is saved on the webserver and the word
application will be
On 3/28/06, Merlin [EMAIL PROTECTED] wrote:
chris smith schrieb:
On 3/28/06, Merlin [EMAIL PROTECTED] wrote:
Hi there,
I am wondering if there are already tools out there which do
create RSS feeds on the fly with the help of PHP.
My goal would be to create RSS dynamicly out
On 3/30/06, Merlin [EMAIL PROTECTED] wrote:
chris smith schrieb:
On 3/28/06, Merlin [EMAIL PROTECTED] wrote:
Hi there,
I am wondering if there are already tools out there which do
create RSS feeds on the fly with the help of PHP.
My goal would be to create RSS dynamicly out
The folowing code do not execute:
td align=center
?=(!empty($info['Employee']['dob'])) ?
$datetime-time2str($info['Employee']['dob']) : ?
/td
What do you mean? It doesn't show anything? Then
$info['Employee']['dob'] is empty.
If not, explain what you see or what happens.
--
On 4/1/06, tedd [EMAIL PROTECTED] wrote:
At 10:30 PM +0200 3/31/06, Martin Zvarík wrote:
Hi,
I was wondering why is it necessary to use
mysql_close() at the end of your script.
If you don't do it, it works anyways, doesn't it?
MZ
MZ:
I always close the connection right after my
On 4/1/06, Ryan A [EMAIL PROTECTED] wrote:
Hey all,
Ok, spoke to the boss and he has agreed for me to give you the following
info;
Heres what the app does:
- Clients add their sites in their client control panel which we give them
at our site
- Client installs our script on his server,
On 4/1/06, Anthony Ettinger [EMAIL PROTECTED] wrote:
On 3/31/06, chris smith [EMAIL PROTECTED] wrote:
On 4/1/06, tedd [EMAIL PROTECTED] wrote:
At 10:30 PM +0200 3/31/06, Martin Zvarík wrote:
Hi,
I was wondering why is it necessary to use
mysql_close() at the end of your script
On 4/1/06, Jim Lucas [EMAIL PROTECTED] wrote:
Chris wrote:
Jasper Bryant-Greene wrote:
Chris wrote:
If they're accessing the same database you don't need to
disconnect/reconnect. Different db's - well, yeh you don't have a
choice.
Of course you do. mysql_select_db() or whatever
On 4/1/06, Pham Huu Le Quoc Phuc [EMAIL PROTECTED] wrote:
Hi everyone!
I use CakePHP. I found an error. Could you help me to deal this error.
Notice: Undefined variable: missing in
c:\Inetpub\wwwroot\Cake\app\views\errors\missing_controller.php on line 18
You're trying to use a variable that
Hi everybody!
I use cake, I have an error, but I can't find where the error occurs.
Have any tools for debug?
Set up an error log. Edit your php.ini file and set:
log_errors = On
error_log = /path/to/logfile.log
then errors will get put in the logfile and you'll be able to track them down.
On 4/1/06, Benjamin D Adams [EMAIL PROTECTED] wrote:
I'm trying to check a string for ../
?php
if(preg_match(/..//i, $string)){
echo string has ../;
}
?
Can't get it to work can anyone help?
Since / is your delimiter you need to escape it.
Also '.' means
On 4/2/06, tedd [EMAIL PROTECTED] wrote:
I always close the connection right after my
query -- force of habit. It's like leaving the
toilet seat up, it's only going to get you into
trouble.
So you close it after every query and then re-open it later for the
next
On 4/3/06, Alain Roger [EMAIL PROTECTED] wrote:
ok, but how to make a non-logged user executes some stored procedures or
Queries ?
MySQL will need some login and password for that.
so, that's why i've asked such question...how and where to store this
non-logged user's info (login, password)
On 4/3/06, tedd [EMAIL PROTECTED] wrote:
chris said:
Time. Opening a db connection is time consuming. There are many levels
involved (making the connection, authentication, etc).. Even worse if
the connection is over tcp/ip because that overhead comes in on top as
well.
I replied:
Have
On 4/3/06, Alain Roger [EMAIL PROTECTED] wrote:
I suppose that this config file should be included in all PHP file via
include command.
is it true ?
Yes.
I'd actually use 'require' not 'include' since you always want it to be there.
--
Postgresql php tutorials
http://www.designmagick.com/
On 4/8/06, Pablo L. de Miranda [EMAIL PROTECTED] wrote:
Hey Guys,
I have the code below:
$file = $_SERVER['HTTP_REFERER'].'util/ClassUtil.php';
echo $file.'br';
require_once($file);
$service = ClassUtil::loadClass('service.FormularioService');
And the output in browser:
On 4/8/06, Pablo L. de Miranda [EMAIL PROTECTED] wrote:
I has modified my code to this, notice wich all directories that I
refer is in the root of application:
// File Controller.php in directory controller:
$file = '../util/ClassUtil.php';
echo $file.'br';
include $file;
$service =
On 4/8/06, Ross [EMAIL PROTECTED] wrote:
Does anyone know know of a good php image gallery? I want to generate the
pages automatially from stored images.
Please don't reply with 'search google under php gallery' or some other
useless reply. I want someone to advise, who has used code
On 4/7/06, Michael Felt [EMAIL PROTECTED] wrote:
Slowly I am getting the output I want.
Trying to use dynamic arrays, does creat the array I want, but getting
the info is sometimes surprising.
I notice a difference between arrays used locally in a function, and
arrays used as a 'var' in a
On 4/9/06, David Doonan [EMAIL PROTECTED] wrote:
I'm having trouble getting the correct results on a list page.
The first query is pulling the name of active authors from the d/b
and linking to a list page that is supposed to return essay titles by
the requested author. The list page however
On 4/11/06, Merlin [EMAIL PROTECTED] wrote:
Hi there,
no much simpler. I do not need to assign the value from outside the class.
This
is just inside the class. I have the login data for a database saved in a file
and would like to use simply the variable $DB_login inside this class.
This
On 4/11/06, Merlin [EMAIL PROTECTED] wrote:
chris smith schrieb:
On 4/11/06, Merlin [EMAIL PROTECTED] wrote:
Hi there,
no much simpler. I do not need to assign the value from outside the class.
This
is just inside the class. I have the login data for a database saved in a
file
On 4/13/06, Merlin [EMAIL PROTECTED] wrote:
Hi there,
I am searching for a command on how to format 0.5 to 0.50
number_format('0.5', 2);
--
Postgresql php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I have 3 php scripts that run fine on my localhost server, but when I upload
the 3 files to my Internet Server (Hosting Account), I get the 500 Internal
Server Error. I am able to access them fine on my machine here (Running
Apache Web Server)... But on my internet server, it just keeps giving
1 - 100 of 219 matches
Mail list logo