-Original Message-
From: Al [mailto:n...@ridersite.org]
Sent: Thursday, May 10, 2012 11:44 AM
To: php-general@lists.php.net
Subject: [PHP] Best practice question regarding set_include_path()
For my applications, I've been using includes and other file addressing by
using the doc root
I am running Windows 2008 R2, IIS 7
I am running into an issue where no matter what I set the script time out
to be the server is
Giving me a 500 error after like 60 seconds when the process exceeds the
configured activity timeout.
Here is the example script
?
set_time_limit(120);
-Original Message-
From: Matijn Woudt [mailto:tijn...@gmail.com]
Sent: Saturday, May 12, 2012 3:54 PM
To: admin
Cc: php-general@lists.php.net
Subject: Re: [PHP] Time out issue
On Sat, May 12, 2012 at 9:42 PM, admin ad...@buskirkgraphics.com wrote:
I am running Windows 2008 R2, IIS 7
-Original Message-
From: Yuchen Wang [mailto:phob...@gmail.com]
Sent: Tuesday, May 22, 2012 10:19 PM
To: php-general Maillist
Subject: [PHP]How to handle E_ERROR,E_PARSE with a user defined function
Hi all,
How to handle E_ERROR,E_PARSE with a user defined function ?
--
*Yuchen Wang*
-Original Message-
From: Ashwani Kesharwani [mailto:ashwani.kesharw...@gmail.com]
Sent: Wednesday, May 23, 2012 12:13 AM
To: php-general@lists.php.net
Subject: [PHP] w.r.t. mail() function
Hi ,
I have a query w.r.t. mail() function in php.
I have hosted my site and i have created an
-Original Message-
From: LEOPARD Corporation [mailto:leopardonline@gmail.com]
Sent: Saturday, May 26, 2012 12:02 PM
To: php-general@lists.php.net
Subject: Re: [PHP] What is The best way/tool for debuging PHP?
Thanks for your reply.
Dev-PHP is an IDE, and I don't need such tool
-Original Message-
From: Paul M Foster [mailto:pa...@quillandmouse.com]
Sent: Wednesday, May 30, 2012 10:54 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Re: Function size
On Wed, May 30, 2012 at 04:31:12PM +0200, Sebastian Krebs wrote:
[snip]
If the functions were named
-Original Message-
From: Chris Purves [mailto:ch...@northfolk.ca]
Sent: Sunday, June 03, 2012 8:26 PM
To: php-general General
Subject: [PHP] help with preg_match
Hello,
I am trying to use preg_match to match something from an html file.
Within the html file is some text that looks
-Original Message-
From: Ron Piggott [mailto:ron.pigg...@actsministries.org]
Sent: Thursday, June 21, 2012 3:47 AM
To: php-general@lists.php.net
Subject: [PHP] Variable representation
I am trying to represent the variable:
$row['Bible_knowledge_phrase_solver_game_question_topics_1']
Read
http://php.net/manual/en/function.substr.php
-Original Message-
From: Kirk Bailey [mailto:kbai...@howlermonkey.net]
Sent: Wednesday, June 27, 2012 6:15 PM
To: php-general@lists.php.net
Subject: [PHP] slicing and dicing strings
ok, it slices and dices, but how?
in python, to print
-Original Message-
From: Geoff Shang [mailto:ge...@quitelikely.com]
Sent: Thursday, June 28, 2012 5:12 AM
To: php-general@lists.php.net
Subject: Re: [PHP] slicing and dicing strings
On Wed, 27 Jun 2012, tamouse mailing lists wrote:
RTFM with no hint of where to look is a problem. But
-Original Message-
From: Timmy Sjöstedt [mailto:m...@iostream.se]
Sent: Thursday, July 12, 2012 6:01 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Entry point of an MVC framework
On 07/12/2012 11:44 PM, Daevid Vincent wrote:
-Original Message-
From: Simon Dániel
-Original Message-
From: Tedd Sperling [mailto:t...@sperling.com]
Sent: Thursday, July 19, 2012 1:27 PM
To: php-general@lists.php.net General
Subject: [PHP] What do you call the end-user?
Hi gang:
I can't wait for tomorrow -- so here's my off-topic post today.
First question:
What
-Original Message-
From: Paul M Foster [mailto:pa...@quillandmouse.com]
Sent: Thursday, July 19, 2012 6:31 PM
To: php-general@lists.php.net
Subject: Re: [PHP] What do you call the end-user?
On Thu, Jul 19, 2012 at 01:26:50PM -0400, Tedd Sperling wrote:
Hi gang:
I can't wait for
Anyone using
Get_browser() notice that IE 9 is reporting as IE 7?
I am aware of compatibility mode in IE 9 but that should not change the
version information sent will it?
and
I've run 'test connection' in mysql workbench with what I think are the same
settings in the joomla without a problem, but the website just gives
Database connection error (2): Could not connect to MySQL. I can browse
the data in workbench, and changing user admin enables and disables
Hello everyone,
In my quest to build bigger and better dynamic content, I am
putting forth a concept to see what you all think.
Many times I come across customers who want drop down menus dynamically
built from database tables.
Old way Example:
Echo 'SELECT
-Original Message-
From: Matijn Woudt [mailto:tijn...@gmail.com]
Sent: Thursday, August 23, 2012 4:39 PM
To: admin
Cc: php-general@lists.php.net
Subject: Re: [PHP] Dynamic Content thoughts
On Thu, Aug 23, 2012 at 9:51 PM, admin ad...@buskirkgraphics.com wrote:
Hello everyone
I am exporting to a XLS file and the file does export, but when I open the
file Microsoft is giving a Excel Security Notice.
I am sure there is something in the header that is missing or causing this
problem.
header(Pragma: public);
header(Expires: 0);
header(Cache-Control: must-revalidate,
-Original Message-
From: Matijn Woudt [mailto:tijn...@gmail.com]
Sent: Tuesday, August 28, 2012 3:55 PM
To: admin
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP to XLS Security Alert issue
I believe that's normal, and that it does that with any document downloaded
from the web
Hello everyone,
I have a very long array. I want to pull all the data from the array
from a certain position to a certain position.
$myarray = array('0'='me', '1'='you','2'='her','3'='him','4'='them',
'5'='us');
Yes I know the array above it small it's an example, mine has over 150
Length was my problem the whole time.
Thank you very much.
Resolved
-Original Message-
From: Jim Lucas [mailto:li...@cmsws.com]
Sent: Tuesday, September 11, 2012 1:02 AM
To: admin
Cc: php-general@lists.php.net
Subject: Re: [PHP] another Array question
On 9/10/2012 9:41 PM, admin
It has been suggested:
That because php does not support PCNTL threading on Windows that
multiple services of php are an alternative.
I am interested in this theory, if anyone is currently working on a project
that (forks) processes off to another instance or service of PHP on windows
Today I seen a hack into php that has rocked me to my foundation.
I seen a picture uploaded onto a server using php and when php displayed the
image, phpinfo() was executed and displayed.
Does this problem exist in PHP 5.2.17 +?
How do you stop it?
Sorry, I have never known of this before today.
Jpgs can hold other data rather than image data
One thing to try is to run strip_tags($image) to remove any php code
http://stackoverflow.com/questions/3499173/my-php-site-was-hacked-by-codes-u
ploaded-as-image
http://josephkeeler.com/2009/04/php-upload-security-the-1x1-jpeg-hack/
Bastien
-Original Message-
Hi,
i'm going to join a mid-size company with a few PHP-driven projects written
in procedural PHP, million years old.
At the moment, they don't have a wiki or any documentation about their
projects. For me, the first challenge in probation period is to
Has anyone ever heard of a problem with the Moodle LMS when trying to edit
an activity (quiz, resource) in which there is a timeout after only a few
seconds and a message saying something to the effect of that the system is
sorry but there was a time out, please retry. When I look in the URL I
Hi everyone, I have been playing around with some code the list helped me
with a while back and I'm not grasping the concept between return and echo
and the PHP manual doesn't answer this, unless I'm missing something. There
is an example at the very bottom of PHP's return manual, but it's
function filename($prefix)
{
$array_to_return = array();
$matches = glob('images/property_pics/'.$prefix.'*');
foreach($matches as $filename){
$array_to_return[] = $filename;
}
return $array_to_return;
}
If this better explains it.
The first return will stop the process you need
-Original Message-
From: Chris Payne [mailto:oxygene...@gmail.com]
Sent: Friday, October 19, 2012 7:01 PM
To: php-general@lists.php.net
Subject: [PHP] Table help needed
Hi everyone,
So i'm stuck, and I admit it. I have to (QUICKLY) display information
from a database, easy.
-Original Message-
From: tamouse mailing lists [mailto:tamouse.li...@gmail.com]
Sent: Saturday, October 20, 2012 1:53 AM
To: admin
Cc: Chris Payne; php-general@lists.php.net
Subject: Re: [PHP] Table help needed
On Fri, Oct 19, 2012 at 6:09 PM, admin ad...@buskirkgraphics.com
On Wednesday, November 28, 2012 at 4:50 PM, ad...@buskirkgraphics.com wrote:
I am having a PDO mysql connection issue I cant explain.
On server server1.mydomain.com (http://server1.mydomain.com)
I have a test script
?php
$pdo = new PDO('mysql:host=171.16.23.44;dbname=test',
-Original Message-
From: Jim Lucas [mailto:li...@cmsws.com]
Sent: Wednesday, November 28, 2012 9:23 PM
To: ad...@buskirkgraphics.com
Cc: php-general@lists.php.net
Subject: Re: [PHP] PDO question
On 11/28/2012 12:58 PM, ad...@buskirkgraphics.com wrote:
Guys,
I am not quiet
-Original Message-
From: Rick Dwyer [mailto:rpdw...@earthlink.net]
Sent: Saturday, January 12, 2013 8:26 AM
To: php-general@lists.php.net
Subject: [PHP] Can't connect to MySQL via PHP
Hello all.
I used the code below successfully to connect to a MySQL db on one
hosting
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
Sent: Saturday, January 12, 2013 10:03 AM
To: admin
Cc: 'Rick Dwyer'; php-general@lists.php.net
Subject: RE: [PHP] Can't connect to MySQL via PHP
On Sat, 2013-01-12 at 12:56 -0800, admin wrote:
-Original Message
-Original Message-
From: tamouse mailing lists [mailto:tamouse.li...@gmail.com]
Sent: Saturday, January 12, 2013 7:55 PM
To: admin
Cc: a...@ashleysheridan.co.uk; Rick Dwyer; php-general@lists.php.net
Subject: Re: [PHP] Can't connect to MySQL via PHP
On Sat, Jan 12, 2013 at 4:49
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
Sent: Sunday, January 13, 2013 8:52 AM
To: admin
Cc: 'tamouse mailing lists'; 'Rick Dwyer'; php-general@lists.php.net
Subject: RE: [PHP] Can't connect to MySQL via PHP
On Sun, 2013-01-13 at 11:37 -0800, admin wrote
-Original Message-
From: Jim Giner [mailto:jim.gi...@albanyhandball.com]
Sent: Sunday, January 13, 2013 9:13 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Can't connect to MySQL via PHP
Regardless of the choice of interface to mysql, regardless of the
completely harmless
-Original Message-
From: Stephen [mailto:stephe...@rogers.com]
Sent: Sunday, January 13, 2013 9:06 AM
To: php-general@lists.php.net
Subject: [PHP] PHP programming a members only access site
Can anyone point me to good tutorials/documentation on the subject?
I want to add this
Hi,
what's up Mick?!
Okay, what have you written in your script?! You never
wrote it! try include ('./domain.php') instead of
include ('domain.php') maybe it helps you! I tested
that on my FreeBSD 4.2+apache/php but it seems that
include ('domain.php') is also OK. Just give it a try or
add the
Hi Michael,
Yes I do! Take a look at the code snippet below:
echo "select name=something";
$level2 = $db-execute("select typename from types");
do {
$value=$level2-fields[0];
echo "option value=$value$value/option";
$level2-nextRow();
} while
Hi,
man ssh
Do that, you'll see there is a -c command, and also read up on using RSA
key authentication, so that the password doesn't have to be entered for
that host.
BE WARNED - if you use RSA key auth, then any process under the login
account you specify it for (it will probably have to be
]
Subject: Re: [PHP] RE: SSH
On Sun, 5 May 2002, Insomniac Admin wrote:
You could use popen to open a ssh process and wait to be asked for
the password etc... Remember to check the RSA key pattern.
My experience, at least with recent SSH versions, is that they try very
hard to verify stdin
Qmail : www.lifewithqmail.org / www.qmail.org / http://cr.yp.to/qmail/
-Original Message-
From: Diana Castillo [mailto:[EMAIL PROTECTED]]
Sent: 05 May 2002 12:17
To: [EMAIL PROTECTED]
Subject: [PHP] Mail server
Does anyone know of a free mail server to install on a linux server
that
A simple example might be (unoptimised for clarity):
http://www.myserver.com/someurl/page.php?file=home
?php
// Get the file from the url - assuming PHP v4.1.x
$file = $_GET(file);
// Remove case sensitivity
$file = strtolower($file);
// To stop people including just ANY old
Try doing locate php.ini. Your likely to have to copy php.ini.dist to
php.ini if this is your first installation.
Usually you'll find it in /usr/local/etc/ or /usr/local/lib/ depending
on your distro.
- Dan
-Original Message-
From: David McInnis [mailto:[EMAIL PROTECTED]]
Sent: 06 May
Check out phpserv.
-Original Message-
From: Barry Smoke [mailto:[EMAIL PROTECTED]]
Sent: 06 May 2002 19:07
To: [EMAIL PROTECTED]
Subject: [PHP] --enabel-pnctl / php sockets
I have recently discovered php's binary capabilities, and am using it to
write a virtual isp management system,
We did actually hear you the first time, but I'll just assume your not
all that bright.
As far as Im aware you cannot over load functions in php - although
there may be some new functions available ... I suggest you check the
manual.
-Original Message-
From: Kris Vose [mailto:[EMAIL
that's the nature of php. it is executed server side then disappears
showing only it's results. :)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 2:21 PM
To: [EMAIL PROTECTED]
Subject: [PHP] need help
Hi, how come on the view
Hi Michael,
Use a temporary variable [counter], if counter%3 == 0 then
write /trtr in the output.
$counter=0; print "tr";
while($row = mysql_fetch_array($result)) {
echo "td".$row["user_id"]."/td"; $counter++;
if (!$counter%3) { echo "/trtr"; }
}
That's all ;-)
Ahmad Anvari
Hi Karl,
Simply put a save button on your page. When it's clicked,
pass document.forms[0].textareaname.value to the other
script, (it's written in javascript, if you're familiar with that),
then you'll access the content of the text box.
to save it on a local disk, simply use javascript again, it
Hi,
Consider using ImageCreateFromGif will help you. Then
use ImageTTFText to write some text on the loaded gif
and ImageGIF it to output the image as gif :)
Ahmad Anvari
- Original Message -
From: Brandon Orther
To: PHP User Group
Sent: Tuesday, February 06, 2001 7:50 PM
Hi April,
I suggest you code your array into one string (it depends to the size)
then decode it at the other end using your own code. It's the easiest
trick to pass the array, compress it into one variable, then extract it at
the other end.
Any other ideas? ;-)
Ahmad
- Original Message
Hi Brandon,
You asked me in a private e-mail about anti-aliasing. As far
as I know if ImageTTFText function, if you use negative color
reference [such as -1, -2], It turns off the anti aliasing. I think
the text is automatically antialiased using a positive number.
Anyone, with a sharp idea? ;-)
Hi Dhaval,
You said in your previous e-mail 'C:\'. Are you using a NT based
server or Unix based? If your server is a unix based one, consider
trying this command:
chmod 777 /path/to/directory
Warning, this is a bit dangerous and might be vulnerable, are you
running your webserver with nobody?
Hi,
I didn't get why you haven't used this:
switch $var
case something: $result=$build_result(); break;
case somethingelse: $result=$build2(); break;
blah blah blah...
Ahmad
- Original Message -
From: Peter Van Dijck
To: php gen list
Sent: Saturday, February 24, 2001
hi,
try $tomorrow = mktime(0,0,0,date("m") ,date("d")+1,date("Y"));
or maybe better than this, if you convert the date to the standard
unix timestamp and use DATE function.
Best of luck,
Ahmad Anvari
- Original Message -
From: kaab kaoutar
To: [EMAIL PROTECTED]
Sent: Sunday,
define a UNIQUE field :)
- Original Message -
From: Brandon Feldhahn
To: [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED]
Sent: Sunday, February 25, 2001 4:03 PM
Subject: [PHP] No same username
how do i make somthing with my database that knows it the username
Or better using:
create table test1 (t1 char(5), t2 char(5), primary key (t1), unique (t2));
when creating table. No duplicate records with the same t2 because it's unique.
Ahmad Anvari
- Original Message -
From: Kath
To: Brandon Feldhahn ; [EMAIL PROTECTED]
Sent: Sunday,
I use PHP 4.1.2 under Linux (Kernel 2.4.18).
On files bigger than 2GB the php-function 'file_exists'
exits with 'Warning: stat failed on ... (errno=75 -
Value too large for defined data type') ...
How can I solve this problem?
Thanks for every help.
--
PHP General Mailing List
Hi all,
I Need to access certain data in a Page protected by user login.
I have written a script with socket functions which connect to port 80
and automates what any browser does.
That's Ok .. Now I have the Data What I wanted in a variable.
But I am also in need of a Mechanism where I can
On 10/27/2011 5:33 PM, Daniel Brown wrote:
On Thu, Oct 27, 2011 at 20:06, Jason Pruimli...@pruimphotography.com wrote:
Most likely you have in included in 2 files... Look into it from that angle...
It only needs to be included in 1 file to work throughout all the files.
Prune is
On Thu, 6 Sep 2001, Dennis Moore wrote:
I wrestled with this for about an hour before I looked at WHY the heck the
configure script thinks it knows more than I do. Apparently if it can
DECOMPRESS a GIF (i.e., Make a PNG *from* a gif, which the FreeBSD
installer and some packages like rpms are
Hi.
I need help with matching a variable. The variable would be e.g. 0-15
, 16-30 etc. and when the variable is equal to a certain range, it
would echo an image.
Does anyone know what function I should use? preg_match?
The code would be something like
if(preg_match([16-30],$variable))
{
echo
Hi. I'm wondering if anyone can help with this.
We're using PHP and Apache, hosted on a dedicated server running
Debian Linux. The specific versions in each case are mostly
immaterial, as this problem has been around since Debian 6, and is
still present in Debian 7; in the meantime we've been
check out Oasis on Freshmeat...I haven't used it, but I did notice it on
there.
also, as already posted, PHPads.
-Original Message-
From: Wandrer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 2:12 PM
To: Joseph Bannon
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] ad rotation
your MTA is setting the envelope, not your script.
if you are using sendmail, look at the -f flag in the man
sendmail page. then modify your php.ini file. Or possibly
even set the variable (sendmail_path) inside of your script
to include the -f flag.
-Original Message-
From:
:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 9:40 AM
To: Michael Geier, CDM Systems Admin
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Mail()
I said before I do not have access to the php.ini
I am on a virtual Hosting ...
-Original Message-
From: Michael Geier, CDM Systems Admin [mailto
Why not use the tool built for the job?
mysqldump will allow saving both data and structure.
http://www.mysql.com/doc/m/y/mysqldump.html
-Original Message-
From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 11:05 AM
To: [EMAIL PROTECTED]
Subject: Re:
(int)$siz will give you what you are looking for. although with the math
below, you are going to end up with 0.
$siz = 72 / 160;//returns 0.45
echo round($siz); //returns 0
echo (int)$siz; //returns 0
-Original Message-
From: Seb Frost
www.google.com
search relevance searches in MySQL
1. www.mysql.com/documentation/mysql/bychapter/manual_Fulltext_Search.html
-Original Message-
From: BRACK [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 11:40 AM
To: Mark Maggelet
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re:
script language=javascript
document.write('some text ' + document.lastmodified + ' some other text.');
/script
-Original Message-
From: Jack Dempsey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 11, 2001 4:42 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] date/time
It would help if you were a little more descriptive about this...
Are you trying to do this in the To: field, the Cc: or Bcc: fields, actually
in the body of a message, in a flat file, in a DB...
flat file:
$fp = fopen(filename,w);
//emails in array
while ($tmp =
-mm-dd in DATE format
you can pull it back out however you like with the DATE_FORMAT command
SELECT sometext,DATE_FORMAT(somedate,'%m/%d/%Y') AS date FROM tablename
then you have two variables:
sometext and date
see documentation on www.mysql.com for more info on DATE_FORMAT
I love it...
server info:
Server: Apache/1.3.19 (Unix) PHP/4.0.4pl1 mod_perl/1.25
-Original Message-
From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 9:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Is this a joke?!
Is this a joke?
try the attached class.
$t = new timer;
$t-start();
// some code;
$t-stop();
$diff = $t-gettime();
echo $diff;
-Original Message-
From: Phil Spitler [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 1:20 PM
To: [EMAIL PROTECTED]
Subject: [PHP] RE: Time Taken to Process
yeah, I
I have noticed on the list over the past two months, an increasing number of
problems with the mail() function.
Mostly, people having this problem don't have sendmail installed. It would
seem that PHP's mail() function was written around sendmail. Is there a way
to resolve this, with either
try using the attached class.
?
$time = new timer;
$time-start();
// some code
$time-stop();
$total = $time-gettime();
echo $total;
?
-Original Message-
From: McShen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 11:08 AM
To: [EMAIL PROTECTED]
Subject: [PHP] please help.
Project needs:
create document on fly to fax to 100+ customers
document will be queued up twice daily for submission
document will have a logo branded @ top of page
Services used:
RedHat 7.1
HylaFax 4.1
PHP 4.0.6
Any insight would be appreciated.
hahahaha...
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 27, 2001 9:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP] e-mail confirmation #76215525
This is a confirmation e-mail for your request.
You can come anytime and claim your FREE Sex Toys at
201 - 280 of 280 matches
Mail list logo