I'm using the following short script to redirect users to another page
on my site (php 4.3.2, Apache 2.0.47).
http://"; . $_SERVER['HTTP_HOST'] . "/" . $goLang . "/");
exit;
?>
I'm having a problem where it takes up to 15 seconds for the redirect
page to load, but for other redirects on the site
I'm looking for the approximate solution of mailing out (or doing anything
else )
timed by cron(tab) along with use of mysql as means of identification and
storing
of the dates in multiuser enviroment.
Initial date and interval of recurring event is to be set up by a user.
May you know some open s
Hi, first let me introduce myself...
My name is Kit, and I own the domain below
and host sites from off that domain.
I'm new to using PHP...and need some help.
1. I have apache for win32 1.3.26 setup
on my w2k pro at home, and need to know
how to enable PHP in the config.
2. I also have a PHP
I get the following error when i try to install an app
called "PHPwebsite" ( http://phpwebsite.appstate.edu/ )
Warning: Cannot add header information - headers already sent by
(output started at C:\apache\htdocs\php\setup\index.php:9)
in C:\apache\htdocs\php\htmlheader.php on line 30
I also
I get the following error when i try to install an app
called "PHPwebsite" ( http://phpwebsite.appstate.edu/ )
Warning: Cannot add header information - headers already sent by
(output started at C:\apache\htdocs\php\setup\index.php:9)
in C:\apache\htdocs\php\htmlheader.php on line 30
I also i
Can someone tell me what the following error means,
and how to fix it...please?
Parse error:
parse error, unexpected T_STRING in
c:\program files\apache
group\apache\htdocs\phpbb\language\lang_english\lang_main.php
on line 629
this is the code on that page:
$lang['Avatar_filesize'] = 'The avat
Hello,
I'm contacting you because we have recently released a new web development platform,
EO, that I would like for you to try out for use in building dynamic sites.
EO is a portable, flexible yet robust system that you can use to quickly build
interactive sites, plus it has features that p
Hi php-general,
How to display blob picture from Interbase database
in web page.
--
Keep going,
Admin mailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Is there anyway to use PHP to embed font types into web pages to the person
visiting the page sees what you want them to even if they dont have the
same fonts on their computer.
Pat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional co
I am new to PHP and am confused on HTTP authentications. I have read that
section in the manual and still have questions. Where does PHP look to see
if the user is valid or if the passward matches the user. How do you use
PHP to set up user registration so users can input their information for
$smont = 10;
$sday = 13;
$syear = 2008;
$timestamp = mktime(0,0,0,$smont,$sday,$syear);
$thismonth = getdate($timestamp);
Here is where the problem comes into play.
echo $thismonth['yday'];
This displays 286 when in fact its 287.
Is there a problem in my ini file or what is the deal.
--
PHP Ge
Okay maybe i have just forgot.
I am trying to update the database and do a +1 to a int field without pulling
the data and adding 1 to it and sticking it back in.
Someone refresh me on this please.
I think it is something like.
$dwsl = mysql_query("UPDATE database set Field='+1' WHERE Criteria='Cr
Sorry about that it hit me right after i sent the email.
Thank You so much for you reply
Hello, you have to do :
$dwsl = mysql_query('UPDATE database SET "Field"="Field"+1 WHERE
"Criteria"=\'Criteria\'');> From: ad...@buskirkgraphics.com> To:
php-general@lists.php.net> Date: Mon, 29 Dec 2008 12
Okay here is my question.
Does anyone know of an RPM of php that is pre-compiled with all the extras like
soap, mssql, freetds, etc...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try
$text = "Joe of Egypt";
$sql = "SELECT title FROM book WHERE title LIKE '$text'";
$result = mysql_query($sql);
If(mysql_num_rows($result) >= '1')
{
while ( $row = mysql_fetch_array($sql) ) {
echo("" . $row["title"] . "");
}
}
My Ideas my not make some people happy with my design but I
Suggestion on faster solutions for extremely large database.
$ledip['started'] = '2009-04-01 13:40:34'; Example time in DB
$ledip['touchedlast'] = '2009-04-01 13:41:28'; Example time in DB
date('i:s', strtotime($ledip['touchedlast']) - strtotime($ledip['started']));
// Not a desired solution be
Before most of you go on a rampage of how to please read below...
As most of you already know when using MySQL from the shell you can write your
queries in html format in an out file.
Example: shell>mysql -uyourmom -plovesme --html
This now will return all results in an html format from all qu
I tend to do this robert,
while looking at your example i thought to myself since i am trying to mimick a
shell command why not run one.
Result:
$ddvery";
?>
Not are the results safe but the unlimited possibilites are amazing. Thanks so
much for the kick starter
ad...@buskirkgraphics.com wr
I ask as you look at the comments and replies to your post, you think long
term.
Today you want the italic option, tomorrow you want to change the display to
something else. Now you have to go back and change ever place you set the
italic symbols to make your change.
BUT if you use styles you c
Don
If you are looking for current quarter you can do this.
$tm = date('Y-m-d H:i:s');
$Current_Fiscal_Quarter = ceil(date("m", $tm)/3);
This will return the quarter you are currently in.
Exmaple 1, 2, 3,or 4
I have a great quarterly dates function posted on php.net
http://www.php.net/manual/en
Is there any way to get rid of, whatever wet behind the ears person whom has
this spam return for every post.
mytr...@mail.ua
I get 3 and 4 of these for every reply, I am sure anyone who is posting to
the list gets the same emails.
-Original Message-
From: Don Wieland [mailto:d...@p
Hm
I guess the little person inside, just hates the long way of doing
something.
My suggestion
$CD = 1287583899;
$q1s = 1283313600;
$q1e = 1291093200;
$q2s = 1291179600;
$q2e = 1298869200;
$q3s = 1298955600;
$q3e = 1306814400;
$q4s = 1306900800;
$q4e = 1314763200;
for($a=1; $a<=4; $a++)
{
checkbox when using the if statement
to send one email when the checkbox is checked and a different email
when it's not checked. I'm wanting to send an email to the site admin
with the information given by the person who filled out the form that
contains the checkbox.
Thanks,
Ben
--
I tested your code and besides adding a form to the beginning it works.
If you want to see the results of the posted for try.
print_r($_POST);
you can see every position of the array passed and validate they are passing as
intended.
Try this.
//if reallife is not set (Checked it will not pass
I placed an example of your code on my site.
I simply pasted exactly what you had, minus the actual mailing portion.
If you check the box you will see the array, if you do not check the box no
array.
http://www.richardbuskirk.com/blunk.php
Forgive my prior post, I had not woke up yet.
So the w
It seems most probably a permission problem. If I were you I would
check the permissions on the bin directory and the files in it. PHP
will probably run under the uid of the webserver, which, on most
systems is either "apache" or "nobody" depending on the configuration.
Richard L. Buskirk
After going over this a thousand times in my head and on sever.
Here are a few reasons why a shell_exec will not function.
First I tested the PHP CLI
Can I see my version of php.
$output = shell_exec('php -v');
Echo $output;
If I am not getting the information about the php version. Is shell_exec
So let me get this straight.
Your script.php has all the passed variable positions of $_GET?
Once it has passed you want to change the value?
You can change the value of a $_GET very easy.
If(isset($_GET['param1']))
{
$_GET['param1'] == "no Chew";
}
By changing the global value or using filters
OnChange is Javascript.
I might suggest you get yourself familiar with JQuery.
JQuery makes your life a lot easier when there is a need for client browser
interaction with site scripting.
Richard L. Buskirk
From: Tomás Corrales Lemoine [mailto:to...@hog.ecasa.avianet.cu]
S
No,
Try this.
?&lang=en'>Flip
Dear god, why would you butcher php like that?
I, like many prefer short code or at least concat the string.
Flip
Richard L. Buskirk
-Original Message-
From: Marc Guay [mailto:marc.g...@gmail.com]
Sent: Tuesday, November 09, 2010 3:48 PM
To: a...@ash
ee
http://dev.mysql.com/doc/refman/5.1/en/insert-select.html for more
information on INSERT ... SELECT)
Otherwise, you'll want to use mysql_fetch_assoc($result). Examples and
information can be found at http://php.net/mysql_fetch_assoc
---
Simon Welsh
Admin of http://simon.geek.nz/
Who said
Taking what I understand from C, I think you are looking for this equivalent
in php.
$product = array('reduction'=>'4','price_without_reduction'=>'22','price
'=>'18')
$yuzde = $product['reduction']*100;
$yuzde = round($yuzde / $product['price_without_reduction']);
Echo $yuzde;
This is no reason
Since we are just tossing out development environments.
We moved to Aptana in conjunction with TortoiseSVN for a team environment
development timelines dropped.
Personally I do not feel any gui editor makes you a better programmer, maybe
you understand the fundamentals a little less.
Not that
Depending on how the website is setup you can curl or soap parameters.
http://www.php.net/manual/en/book.curl.php
http://www.php.net/manual/en/book.soap.php
Richard L. Buskirk
-Original Message-
From: Bob Keightley [mailto:bob.keight...@virgin.net]
Sent: Tuesday, November 23, 2010 9:
Try CURL
http://www.php.net/manual/en/book.curl.php
Richard L. Buskirk
-Original Message-
From: Moses [mailto:jam...@gmail.com]
Sent: Wednesday, December 08, 2010 5:51 PM
To: php-general@lists.php.net
Subject: [PHP] how can one run python script in php
Hi Everyone,
I am trying to run
I suggest you try javascript.
Richard L. Buskirk
-Original Message-
From: Ethan Rosenberg [mailto:eth...@earthlink.net]
Sent: Wednesday, December 29, 2010 7:12 PM
To: php-db-lists.php.net; php-general@lists.php.net
Subject: [PHP] Regex for telephone numbers
Dear List -
Thank you for
Also remove your stupid Email filter.
If you need a email filter, you should not be on this list or learn to setup
rules one.
Richard L. Buskirk
-Original Message-
From: Ethan Rosenberg [mailto:eth...@earthlink.net]
Sent: Wednesday, December 29, 2010 7:12 PM
To: php-db-lists.php.net; p
Add this to your .htaccess file and HTML files will be handled like PHP
files allowing you put PHP in HTML files.
AddType application/x-httpd-php .html
Richard L. Buskirk
-Original Message-
From: Adolfo Olivera [mailto:olivera.ado...@gmail.com]
Sent: Saturday, January 01, 2011 8:38 PM
The question was "The .php extension is a requirement?"
The answer is no.
While me and Ash may completely disagree on the php parser, the simple answer
is there are many ways around running a non .php extension file in php.
mod_rewrite rules in .htaccess files are interpreted for each request
-Original Message-
From: Floyd Resler [mailto:fres...@adex-intl.com]
Sent: Wednesday, April 11, 2012 11:26 AM
To: PHP
Subject: [PHP] Sorting Help
I need to sort the following array:
{
[Smith, Bob]=>array(137.5,125.5),
[Jones, Robert]=>array(132.7,128.2)
}
The array needs
-Original Message-
From: Floyd Resler [mailto:fres...@adex-intl.com]
Sent: Wednesday, April 11, 2012 11:26 AM
To: PHP
Subject: [PHP] Sorting Help
I need to sort the following array:
{
[Smith, Bob]=>array(137.5,125.5),
[Jones, Robert]=>array(132.7,128.2)
}
The array need
-Original Message-
From: sono...@fannullone.us [mailto:sono...@fannullone.us]
Sent: Sunday, April 22, 2012 12:55 PM
To: PHP General
Subject: [PHP] Blocking URL hacking attemps
I'm using a script called BlackHole that uses PHP and a "hidden"
directory to catch bad bots and block th
$sql='select count(*) as count, searchkeywords
from searchkeywords
group by searchkeywords
having searchkeywords LIKE searchkeywords
order by count desc'
Ir this does not work for you explore the HAVING CLAUSE
-Original Message-
From: Rick Dwyer [mailto:rpdw...@earthlink.net]
Sen
-Original Message-
From: Rick Dwyer [mailto:rpdw...@earthlink.net]
Sent: Friday, April 27, 2012 3:37 PM
To: PHP-General
Subject: [PHP] Array_diff problems
Hello all.
I have two arrays and when compared against each other via array_diff, I do
not get any output:
$myarray1 = Array (
[0]
-Original Message-
From: Stuart Dallas [mailto:stu...@3ft9.com]
Sent: Tuesday, May 01, 2012 8:19 AM
To: rene7705
Cc: Camilo Sperberg; php-general
Subject: Re: [PHP] code deployment through php
On 1 May 2012, at 10:19, rene7705 wrote:
> On Tue, May 1, 2012 at 11:11 AM, Camilo Sperberg
w
-Original Message-
From: rene7705 [mailto:rene7...@gmail.com]
Sent: Monday, May 07, 2012 3:00 AM
To: php-general
Subject: [PHP] I need a good access and error log..
Hi.
I've been using Google Analytics, and I'm sure I'm using the analytics code
correctly, but when I checked my dev server
-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 as
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
I fully understand this m
-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 wrote:
> I am running Windows 2008 R2, IIS 7
>
> I am runnin
-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 ema
-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 becaus
-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 p
-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 lik
-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 t
-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 [mai
-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 do
-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 t
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?
seems to be working 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 c
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 '--Please Select--';
$qu
-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 wrote:
> Hello everyone,
>
> In my
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-revalid
-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
> f
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
p
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
plea
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/
>
> Bast
> -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
conf
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 to
> -Original Message-
> From: Chris Payne [mailto:oxygene...@gmail.com]
> Sent: Friday, October 19, 2012 7:01 PM
> To:
> 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. But the formatt
> -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
> 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
>> > $pdo = new PDO('mysql:host=171.16.23.44;dbname=test', 'user','
> -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
> -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
> hosti
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-
> 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
&g
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
> -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 har
> -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 a
If you are going to use double quotes escape out.
>> echo "".$replace."";
On Jan 12, 2011, at 2:30 PM, tedd wrote:
> At 10:35 PM -0500 1/11/11, David McGlone wrote:
>> Hi Everyone, I'm having a problem validating some links I have in a foreach.
>> Here is my code:
>> > "http://www.w3.org/TR/ht
Try this.
After you create the array
If(in_array($_GET['page'],$categorys)){
}else{
}
Sent from my iPhone
On Jan 13, 2011, at 5:09 AM, David McGlone wrote:
> Hi everyone,
>
> I think the subject is right, or somewhere close. Anyway I am trying to
> perform a little trickery here with li
> $categorys = array('home', 'services', 'gallery', 'about_us', 'contact_us',
> 'testimonials');
If(in_array($_GET['page'], $categories))
{
echo ''.str_replace("_","
",$_GET['page']).'';
}else{
echo ''.str_replace("_"," ",$_GET['page']).'';
}
I normally never write someones code for them but you
I see an errors in the syntax.
$insert = "INSERT INTO user_info (login, password) VALUES
('".mysql_real_escape_string($login)."',"'.mysql_real_escape_string($passwor
d)."')";
Issues resolved.
$insert = "INSERT INTO user_info (login, password) VALUES
('".mysql_real_escape_string($login)."','".mysq
Try
If(preg_match("/Jackson/i", $name))
{echo 'match'; }else{ echo 'fail'; }
Richard Buskirk
Sent from my iPhone
On Mar 15, 2011, at 1:02 AM, "Jack" wrote:
> I want to be able to match if a string is contained within the string I am
> evaluating.
>
>
>
> I know that if ( $name == "xxjackson
Depends on where you want to manipulate.
In mysql you can
$query = 'select first_name as FNAME from tablename';
In this result you changed the column name from first_name to FNAME for the
result only.
In this example we can change the data returned in a particular field by
using an if statement
Why not just create a no named function in the top of the class. This this way
it loads on include.
Richard Buskirk
Sent from my iPhone
On Mar 31, 2011, at 12:56 AM, "D. Dante Lorenso" wrote:
> All,
>
> I want to build a config file class that gets called statically. Is there
> such a thing
Javascript:alert("Hello World");
The browsers have had many updates since last I seen this work.
PHP Server side.
JavaScript Client/Browser Side.
Richard L. Buskirk
You can't grow your business with systems that are on life support...
-Original Message-
From: tedd [mailto:t...@sperli
Yes Alert works fine on my browsers but the hack to change the alert on
someone else's website has been fixed from browser updates.
Richard L. Buskirk
You can't grow your business with systems that are on life support...
-Original Message-
From: Jim Giner [mailto:jim.gi...@albanyhandba
This can be done in the delete.php file OR use javascript onClick to confirm
the intent.
Delete.php
Personally I would use the javascript page navigation is senseless if they
miss click.
Javascript: Small and simple javascript.
onclick="return confirm('Are you sure you want to delete?')"
Do your provider offer MySQL or MSSQL?
Richard L. Buskirk
-Original Message-
From: sir wally lewis [mailto:rgilland1...@gmail.com]
Sent: Monday, May 02, 2011 3:56 AM
To: php-general@lists.php.net
Subject: [PHP] php to store data
I am a complete novice at php.
My internet service provi
Sorry just seen posting and thought it was new.
Most hosting sites offer MySQL with PHP
Richard L. Buskirk
-Original Message-
From: sir wally lewis [mailto:rgilland1...@gmail.com]
Sent: Monday, May 02, 2011 3:56 AM
To: php-general@lists.php.net
Subject: [PHP] php to store data
I am a
Paul,
I could be wrong on this but unless you have a dedicated server, you
do not have the recompilation rights if the hosting company is worth
anything.
Richard L. Buskirk
-Original Message-
From: Paul M Foster [mailto:pa...@quillandmouse.com]
Sent: Tuesday, May 03, 2011 12:
If your options are dynamically created you could check the value passed
against each option are mark the match with "SELECTED";
Example Static:
Echo "5".PHP_EOL;
Example Dynamic
for($a=1, $a <= 15; $a++)
{
Echo " ".$a."".PHP_EOL;
}
Just a though
Richard L. Buskirk
-Original Message
I would suggest you print out the array to get a better understanding of the
structure first.
Print_r('');
Print_r($array);
Print_r('');
You can foreach over the $array['row']
Foreach($array['row'] as $key=>$values)
{
Echo $values.PHP_EOL;
}
Richard L. Buski
1 - 100 of 292 matches
Mail list logo