Hi,
did anybody read the book Securing PHP Web Applications by Tricia
Ballad William Ballad?
(http://www.amazon.com/Securing-PHP-Applications-Tricia-Ballad/dp/0321534344/ref=sr_1_1?ie=UTF8s=booksqid=1256042083sr=8-1)
Any opinions?
L
--
PHP General Mailing List (http://www.php.net/)
To
:46am, Afan Pasalic a...@afan.net wrote:
hi,
I have on one website boxes with information, pulled from mysql. the
content can be string, php code, url of other website or url to
specific file etc.
currently, I have something like this:
// connect to db
// mysql_query() to get box
hi,
I have on one website boxes with information, pulled from mysql. the
content can be string, php code, url of other website or url to specific
file etc.
currently, I have something like this:
// connect to db
// mysql_query() to get box content and content_type
switch($content_type)
{
Andrew Ballard wrote:
On Thu, Mar 12, 2009 at 3:05 PM, Jason Todd Slack-Moehrle
mailingli...@mailnewsrss.com wrote:
Hi All,
I have an input field with type=password.
I am trying to do some error checking to see if the user puts a value in
after they submit the form (i.e not left it
Jochem Maas wrote:
Afan Pasalic schreef:
Andrew Ballard wrote:
On Thu, Mar 12, 2009 at 3:05 PM, Jason Todd Slack-Moehrle
mailingli...@mailnewsrss.com wrote:
Hi All,
I have an input field with type=password.
I am trying to do some error checking to see if the user puts
haliphax wrote:
On Thu, Mar 12, 2009 at 2:39 PM, Jason Todd Slack-Moehrle
mailingli...@mailnewsrss.com wrote:
if (empty($_POST[PASSSWORD]))
{ $GERROR=TRUE;}
If that's a direct copy/paste from your actual code, there is an extra
S in PASSWORD. Also, you should enclose the array
PJ wrote:
I think this is a tough one... and way above my head:
PLEASE READ ALL OF THE ABOVE TO UNDERSTAND WHAT I AM TRYING TO DO.
Having a bit of a rough time figuring out how to formulate php-mysql to insert
data into fields using a multiple dropdown box in a form.
to post I am using the
What would be more appropriate way to create a query:
Solution 1:
select records from registrants table
SELECT r.reg_id, r.date_registered, r.old_record
FROM registrants r
WHERE r.org_id=12
AND r.reg_status=0
AND r.reg_id=r.person_id
# php validation
if($old_record != 0)
{
SELECT
PHP wrote:
Hi all,
I am seeking some knowledge, hopefully I explain this right.
I am wondering what you think is faster.
Say you have 1000 records from 2 different tables that you need to get from a
MySQL database.
A simple table will be displayed for each record, the second table contains
Nathan Rixham wrote:
well just for the hell of it; and because I'm feeling worn..
anybody else find the following true when you're a developer?
- frequent bursts of side-tracking onto more interesting subjects
- vast amount of inhuman focus, followed by inability to remain focussed
- general
hi,
I have to build a little search form.
a visitor enters his/her personal and work data (first name, last name,
email, org. name, phones (home phone, work phone, cell) home address,
work address) using a form, and then administrator has to compare these
data with existing data in database
[EMAIL PROTECTED] wrote:
I have a PHP application that accesses data from MySQL. There is table
called rooms, and table called beds. There is another table called
patients. Patients are being placed into beds, and beds are in the
rooms. PHP application currently displays all information in
hi.
I'm sorry for posting this more javascript then php question, but it's
somehow php related.
here is the issue: very often people close the window/tab without
logging out. I need solution how to recognize when [x] is clicked (or
File Close) and kill the session before the window/tab is
Stut wrote:
On 27 Oct 2008, at 14:10, Afan Pasalic wrote:
I'm sorry for posting this more javascript then php question, but
it's somehow php related.
here is the issue: very often people close the window/tab without
logging out. I need solution how to recognize when [x] is clicked
(or File
Andrew Barnett wrote:
Hey Joey,
I had a search, and from what I found, it would be very difficult unless you
have root access to a server. Another way would be to create a HTML/CSS
renderer using PHP, and then using that to take a screenshot.
or, maybe, as an idea, save the page as pdf?
Andrew Barnett wrote:
Are you suggesting to create a PDF, and then convert from PDF to an image?
I'm sorry. didn't get it has to be an image.
Andrew
2008/10/24 Afan Pasalic [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Andrew Barnett wrote:
Hey Joey,
I had a search
Andrew Ballard wrote:
On Thu, Oct 2, 2008 at 10:37 AM, tedd [EMAIL PROTECTED] wrote:
To all:
The code provided by nathan works for me as well. However, the problem is
not easily explained, but I can demonstrate it -- try this:
http://www.webbytedd.com/zzz/index.php
* A complete
tedd wrote:
Hi gang:
As strange as it may seem, but when session variables are passed to
another page (i.e., used) you cannot extract ALL OF THEM using a loop
when the variable names you are using are the same as the SESSION
index's names.
In other words, you cannot do this:
for ($i = 0;
tedd wrote:
Hi gang:
Apparently, there's something going on here that I don't understand --
this happens far too often these days.
Here's a print_r($_SESSION); of the session arrays I'm using:
[user_id] = Array
(
[0] = 6156
[1] = 7030
[2]
tedd wrote:
Hi gang:
Apparently, there's something going on here that I don't understand --
this happens far too often these days.
Here's a print_r($_SESSION); of the session arrays I'm using:
[user_id] = Array
(
[0] = 6156
[1] = 7030
[2]
tedd wrote:
What about:
foreach ($_SESSION['user_id'] as $key = $value)
{
$last = $_SESSION['last_name'][$key];
$first = $_SESSION['first_name'][$key];
echo $last, $first;
}
Jay:
Close, it produced:
Array, Array
Array, Array
Array, Array
Cheers,
tedd
then your
tedd wrote:
At 2:43 PM -0500 10/1/08, Afan Pasalic wrote:
just tested. works fine
$_SESSION = array(
'6156' = array(
'first_name'= 'Diane',
'last_name' = 'Cable'),
'7030' = array
Daniel Brown wrote:
All:
What was pointed as a passing mention in one thread I thought was
worth note in a thread of its own. As quoted by Rob:
BTW, while we're off topic... my wife delivered our third child (second
boy) 3 minutes after midnight yesterday :)
I'd say
Ashley Sheridan wrote:
On Fri, 2008-09-19 at 14:24 -0500, Afan Pasalic wrote:
Eric Butera wrote:
On Fri, Sep 19, 2008 at 3:14 PM, Afan Pasalic [EMAIL PROTECTED] wrote:
Eric Butera wrote:
On Fri, Sep 19, 2008 at 2:59 PM, Afan Pasalic [EMAIL PROTECTED] wrote:
hi,
I have form
hi,
I have form where administrator has toupload csv file to update dome
data in mysql.
I was trying to validate entered file but got some crazy stuff I don't
understand:
for the same uploaded csv file, in different browser I'll get different
results:
Windows machine and IE:
Eric Butera wrote:
On Fri, Sep 19, 2008 at 3:14 PM, Afan Pasalic [EMAIL PROTECTED] wrote:
Eric Butera wrote:
On Fri, Sep 19, 2008 at 2:59 PM, Afan Pasalic [EMAIL PROTECTED] wrote:
hi,
I have form where administrator has toupload csv file to update dome
data in mysql.
I
tedd wrote:
At 8:44 PM -0600 8/21/08, Keith Spiller wrote:
Hi,
RE: Restore Leading Zeros in Zip Codes
Does anyone happen to have a script that will restore the leading
zeros in a mixed data set of 5 digit zip codes and 10 digit zip+4
codes? Any suggestions?
Thanks,
Keith
Keith:
Warren Vail wrote:
A textarea is a simple editor, I am assuming you want something better than
that, or you wouldn't have looked further.
I just tried Demo and got this:
Sorry, you must have Internet Explorer 5.5 or higher to use the WYSIWYG
editor
?!?
I'm using FF.
-afan
Have you heard
this one bugs me for a while. how to change order.
I have a list of tasks. by status, task could be 1 (todo) or 0 (done) -
status value stored in mysql. I can list tasks per status or all.
order number is stored in mysql too.
the easiest way to change order is to have form for each task where you
Iv Ray wrote:
afan pasalic wrote:
this one bugs me for a while. how to change order.
I have a list of tasks. by status, task could be 1 (todo) or 0 (done) -
status value stored in mysql. I can list tasks per status or all.
order number is stored in mysql too.
the easiest way to change
Eric Butera wrote:
On Thu, May 15, 2008 at 2:49 PM, afan pasalic [EMAIL PROTECTED] wrote:
Iv Ray wrote:
afan pasalic wrote:
this one bugs me for a while. how to change order.
I have a list of tasks. by status, task could be 1 (todo) or 0 (done) -
status value stored
hi,
I have one textarea field in a registration form where visitor enters
keywords. even there is a not next to the field please enter keywords
as comma delimited string, they enter as a list, below each other.
I tried to convert the list into comma delimited string with several
solutions but
Stut wrote:
On 2 May 2008, at 16:22, afan pasalic wrote:
I have one textarea field in a registration form where visitor enters
keywords. even there is a not next to the field please enter keywords
as comma delimited string, they enter as a list, below each other.
I tried to convert the list
hi,
as a result of one calculation I'm receiving an array where elements
could be 0 or date (as string -mm-dd hh:ii:ss).
I have to check if any of elements of the array is date or if all
elements of the array is 0?
If I try array_sum($result) I'll get 0 no matter what (0 + $string = 0).
I
yup! that's the one
:D
thanks richard
Richard Heyes wrote:
but I was thinking if there is the function does that.
array_filter(). Note this:
If no callback is supplied, all entries of input equal to FALSE (see
converting to boolean) will be removed.
. Isn't is vulnerable point?
-afan
Daniel Brown wrote:
On Jan 5, 2008 2:35 AM, Afan Pasalic [EMAIL PROTECTED] wrote:
hi,
after my host moved my account from old server (shared hosting) with php
4.4.7, mysql 4.x to new one with php 5.x and mysql 5.x. nice. they did
it fast and without problems
Daniel Brown wrote:
On Jan 4, 2008 12:06 PM, afan pasalic [EMAIL PROTECTED] wrote:
hi
I have function
function get_content($client_id, $form_id, $index1)
{
$query = mysql_query(
SELECT content
FROM infos
WHERE
hi
I have function
function get_content($client_id, $form_id, $index1)
{
$query = mysql_query(
SELECT content
FROM infos
WHERE client_id=.$client_id. AND form_id=.$form_id.
AND
index1='.$index1.');
if
Samuel Vogel wrote:
Explanation of your code:
$CONTENT = get_content(12, 104, 'merchant');
echo $CONTENT;
This does not work, because you don't use a return in your function.
This means that the function does not return a value. Now in the
function you assign a value to $CONTENT. That
Daniel Brown wrote:
On Jan 4, 2008 12:28 PM, afan pasalic [EMAIL PROTECTED] wrote:
Daniel Brown wrote:
On Jan 4, 2008 12:06 PM, afan pasalic [EMAIL PROTECTED] wrote:
hi
I have function
function get_content($client_id, $form_id, $index1)
{
$query = mysql_query
Daniel Brown wrote:
On Jan 4, 2008 12:52 PM, afan pasalic [EMAIL PROTECTED] wrote:
I think you didn't understand my question: I know why the function work
in 2nd example. My question was why I'm not getting the result in 1st
example? What am I doing wrong. And, as far as I know, I think
Daniel Brown wrote:
On Jan 4, 2008 12:52 PM, afan pasalic [EMAIL PROTECTED] wrote:
I think you didn't understand my question: I know why the function work
in 2nd example. My question was why I'm not getting the result in 1st
example? What am I doing wrong. And, as far as I know, I think
Jim Lucas wrote:
afan pasalic wrote:
Daniel Brown wrote:
On Jan 4, 2008 12:52 PM, afan pasalic [EMAIL PROTECTED] wrote:
I think you didn't understand my question: I know why the function work
in 2nd example. My question was why I'm not getting the result in 1st
example? What am I doing wrong
Guys, whatever you're doing, please stop.
I'm getting tired deleting tons of emails for the last hour. If you
testing something there is definitly other way than sending emails to
all subscribers, right?
Thanks.
-afan
PostTrack [Dan Brown] wrote:
Posting Summary for PHP-General
hi,
after my host moved my account from old server (shared hosting) with php
4.4.7, mysql 4.x to new one with php 5.x and mysql 5.x. nice. they did
it fast and without problems.
but then I realized that every folder has it's own php.ini file?!?
I talked to them (live chat) about this and they
Adam Williams wrote:
In my form, I am parsing all the text inputs through
mysql_real_escape_string() before inserting the data. however, when I
look at the SQL query in PHP, when I type the word blah's to my text box
variable, and then insert it into mysql after being ran through
tedd wrote:
At 1:46 PM -0500 1/2/08, Nathan Nobbe wrote:
On Jan 2, 2008 1:34 PM, tedd
mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote:
nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp;
(it's there to make a submit button wider)
why dont you just style the button w/ css?
style=width:200px
Daniel Brown wrote:
On Jan 2, 2008 2:05 PM, tedd [EMAIL PROTECTED] wrote:
At 1:57 PM -0500 1/2/08, Daniel Brown wrote:
On Jan 2, 2008 1:34 PM, tedd [EMAIL PROTECTED] wrote:
from this:
nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp;
to this A
?
// Your existing code here
$submit =
Hi,
I have to develop a little registration form.
after the form is submitted confirmation email has to be sent to registrant.
I use this function to send an email:
function send_plain_email($to, $subject, $body)
{
$headers =MIME-Versin: 1.0\n . Content-type: text/plain;
The hosting company I have one account (and several Add Domains)
upgraded php on the server from 4.4.7 to 5.2.5. After the upgrade I
start getting the error message:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 122880 bytes) in...
on domains they use Gallery2 or
Richard Lynch wrote:
On Thu, December 20, 2007 11:37 am, afan pasalic wrote:
The hosting company I have one account (and several Add Domains)
upgraded php on the server from 4.4.7 to 5.2.5. After the upgrade I
start getting the error message:
Fatal error: Allowed memory size of 8388608 bytes
://www.thumbnailresume.com
--
From: afan pasalic [EMAIL PROTECTED]
Date: Thu, 20 Dec 2007 12:37:07 -0500
To: php-general php-general@lists.php.net
Subject: [PHP] Why I sart getting Fatal error: Allowed memory size... after
php upgrade?
The hosting company I have one account (and several Add Domains
Richard Lynch wrote:
On Thu, December 20, 2007 11:37 am, afan pasalic wrote:
The hosting company I have one account (and several Add Domains)
upgraded php on the server from 4.4.7 to 5.2.5. After the upgrade I
start getting the error message:
Fatal error: Allowed memory size of 8388608 bytes
Jim Lucas wrote:
Afan Pasalic wrote:
hi,
I use the code from
http://www.php.net/manual/en/function.mysql-fetch-field
(example #1)
I'm getting everything I need but can't recognize if the column is
ENUM() type?
e.g. column status is ENUM('0','1') or
ENUM('live','hidden','archive
Jim Lucas wrote:
Afan Pasalic wrote:
Jim Lucas wrote:
Afan Pasalic wrote:
hi,
I use the code from
http://www.php.net/manual/en/function.mysql-fetch-field
(example #1)
I'm getting everything I need but can't recognize if the column is
ENUM() type?
e.g. column status is ENUM('0','1') or
ENUM
hi,
I use the code from
http://www.php.net/manual/en/function.mysql-fetch-field
(example #1)
I'm getting everything I need but can't recognize if the column is
ENUM() type?
e.g. column status is ENUM('0','1') or ENUM('live','hidden','archive')
or something like that. I want to recognize this
sounds like a solution!
:)
thanks andrew.
-afan
Andrew Ballard wrote:
On Dec 6, 2007 1:38 PM, Afan Pasalic [EMAIL PROTECTED] wrote:
hi,
I use the code from
http://www.php.net/manual/en/function.mysql-fetch-field
(example #1)
I'm getting everything I need but can't recognize if the column
I did once, if I remember once, this strategy:
input type=hidden name=R_a value=n
input type=checkbox name=R_a value=y ?php echo $checked ?
If checked, you will have value y. Though, if unchecked, or it was
checked and visitor unchecked, the value should be n.
;)
-afan
Ronald Wiplinger
=
preg_replace(/[^0-9]*([0-9]{3})[^0-9]*([0-9]{3})[^0-9]*([0-9]{4}).*/,
(\\1) \\2-\\3, $phone);
-Original Message-
From: afan pasalic [mailto:[EMAIL PROTECTED]
Sent: Friday, November 30, 2007 5:45 AM
To: php-general
Subject: [PHP] excluding parenthesis, space
Jochem Maas wrote:
afan pasalic wrote:
hi,
I store phone number in mysql as integer, e.g. (123) 456-7890 is stored
as 1234567890.
though, in search form they usually type in a phone number with
parenthesis/space/dashes. I have to extract numbers before I search
through mysql.
currently
hi,
I store phone number in mysql as integer, e.g. (123) 456-7890 is stored
as 1234567890.
though, in search form they usually type in a phone number with
parenthesis/space/dashes. I have to extract numbers before I search
through mysql.
currently, I use eregi_replace() function, several times,
Hi,
On one script (pulling large amount of data from mysql) I'm getting error:
Fatal error: Allowed memory size of 16777216 bytes exhausted...
I put on the beginning of the page
ini_set('memory_limit', '64M');
but I'm still getting the same error message?!?
Any idea?
Thanks for any help.
-afan
?
sorry for english :-)
-afan
afan pasalic wrote:
hi,
it's maybe more question for mysql list, but since php is involved
too... :-)
I have php script that inserts into mysql table couple hundreds of records.
usually, it looks like:
?php
// 1st record
$query = INSERT INTO table (col_11
hi,
it's maybe more question for mysql list, but since php is involved
too... :-)
I have php script that inserts into mysql table couple hundreds of records.
usually, it looks like:
?php
// 1st record
$query = INSERT INTO table (col_11, col_12, ... col_1n) VALUES
($value_11, $value_12,...
Stut wrote:
afan pasalic wrote:
Stut wrote:
Jim Lucas wrote:
afan pasalic wrote:
hi,
it's maybe more question for mysql list, but since php is involved
too... :-)
I have php script that inserts into mysql table couple hundreds of
records.
usually, it looks like:
?php
// 1st record
Stut wrote:
Jim Lucas wrote:
afan pasalic wrote:
hi,
it's maybe more question for mysql list, but since php is involved
too... :-)
I have php script that inserts into mysql table couple hundreds of
records.
usually, it looks like:
?php
// 1st record
$query = INSERT INTO table (col_11
yup! it works perfect.
obviously, it's MY fault.
:-)
thanks stut
-afan
Stut wrote:
afan pasalic wrote:
actually, what example you are talking about? I got jay's example only?
http://dev.stut.net/php/varfunc.php
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
why then the code doesn't work?
the error I'm getting is: Fatal error: Call to undefined function
solution1() in ... even the function itself is just above the line that
calls function?
-afan
Stut wrote:
Jay Blanchard wrote:
I don't think you can put a function name in a variable and call it
Jay Blanchard wrote:
[snip]
[snip]
?php
function solution1($var1){
// some code
}
function solution2($var2){
// some code
}
function solution3($var3){
// some code
}
if ($function == 'solution1' or $function == 'solution2' or $function ==
'solution3')
{
Robin Vickery wrote:
On 19/10/2007, afan pasalic [EMAIL PROTECTED] wrote:
hi
I have a problem with calling functions:
?php
function solution1($var1){
// some code
}
function solution2($var2){
// some code
}
function solution3($var3){
// some code
Stut wrote:
afan pasalic wrote:
why then the code doesn't work?
the error I'm getting is: Fatal error: Call to undefined function
solution1() in ... even the function itself is just above the line that
calls function?
I can only guess that you're not showing us the code you're actually
hi
I have a problem with calling functions:
?php
function solution1($var1){
// some code
}
function solution2($var2){
// some code
}
function solution3($var3){
// some code
}
if ($function == 'solution1' or $function == 'solution2' or $function ==
'solution3')
{
Jay Blanchard wrote:
[snip]
?php
function solution1($var1){
// some code
}
function solution2($var2){
// some code
}
function solution3($var3){
// some code
}
if ($function == 'solution1' or $function == 'solution2' or $function ==
'solution3')
{
actually, what example you are talking about? I got jay's example only?
Stut wrote:
afan pasalic wrote:
why then the code doesn't work?
the error I'm getting is: Fatal error: Call to undefined function
solution1() in ... even the function itself is just above the line that
calls function
brian wrote:
Instruct ICC wrote:
From your rough code, I'd say the OP always needs the select block
(just remove the else keyword and keep the block) for the current
info at the present page refresh/load. But I'd like clarification on
how the OP thinks about it.
That's close, i think.
rough code, to give you an idea:
?php
if (isset($_POST))
{
# after validation
$first = $_POST['firs'];
$last = $_POST['last'];
mysql_query(
insert into table
(first, last)
values
('.mysql_real_escape_string($first).',
I'm with GoDaddy since 1999 and have over 60 domains. Never had a
problem with them.
-afan
Stut wrote:
blackwater dev wrote:
I have to register a bunch of names and am trying to figure out why I
would
pay $35 when I can just pay $9 at godaddy. Does godaddy own it and I
lease
it from
Tijnema wrote:
On 6/7/07, Afan Pasalic [EMAIL PROTECTED] wrote:
hi,
this question is already posted thousand times. but, after I tried for 2
hours to figure it out, I gave up and posted the question here.
I'm rebuilding one site. php 4.4.4
as usual, register_globals on, as well
hi,
this question is already posted thousand times. but, after I tried for 2
hours to figure it out, I gave up and posted the question here.
I'm rebuilding one site. php 4.4.4
as usual, register_globals on, as well as magic_quotes.
I tried to turn it off using .htaccess but what ever I change
Jared Farrish wrote:
On 5/30/07, Afan Pasalic [EMAIL PROTECTED] wrote:
email has to match in total. [EMAIL PROTECTED] and [EMAIL PROTECTED]
are NOT the same in my case.
thanks jared,
If you can match a person by their email, why not just SELECT by email
only
(and return the persons
David Giragosian wrote:
On 5/31/07, Afan Pasalic [EMAIL PROTECTED] wrote:
Jared Farrish wrote:
On 5/30/07, Afan Pasalic [EMAIL PROTECTED] wrote:
email has to match in total. [EMAIL PROTECTED] and
[EMAIL PROTECTED]
are NOT the same in my case.
thanks jared,
If you can match a person
hi,
the code I'm working on has to compare entered info from registration
form with data in members table and list to administrator (my client)
all matching people. admin then has to decide is person who registered
already in database and assign his/her member_id or the registered
person is
Jared Farrish wrote:
I was thinking to assign points (percentage) to matching fields (last
name, first name, email, phone, city, zip, phone) and then list people
with more than 50%. e.g., if first and last name match - 75%, if only
email match - 85%, if first name, last name and email match -
Richard Lynch wrote:
On Wed, May 30, 2007 3:30 pm, Afan Pasalic wrote:
hi,
the code I'm working on has to compare entered info from registration
form with data in members table and list to administrator (my client)
all matching people. admin then has to decide is person who
registered
Jared Farrish wrote:
On 5/30/07, Afan Pasalic [EMAIL PROTECTED] wrote:
yes. in one hand it's more for mysql list. though, I was thinking more
if somebody had already something similar as a project. more as path I
have to follow.
e.g., in your example, in where clause AND doesn't work
hi,
in php.ini is error_reporting turned off. and, to see an error have to
open error_log.
though, for me is much easier to have it on and see the errors on the
screen. while developing, of course.
I put on the beginning of the file error_reporting(E_ALL) to overwrite
php.ini but it doesn't
Stut wrote:
Please include the list in replies.
I'm sorry. Clicked on wrong Reply button
:-)
Afan Pasalic wrote:
Stut wrote:
Afan Pasalic wrote:
in php.ini is error_reporting turned off. and, to see an error have
to open error_log.
though, for me is much easier to have it on and see
Edward Kay wrote:
Al wrote:
I'm looking for a shared host with an up-to-date php5, and one who at
least tries to keep it relatively current.
Needs are modest. Just need good ftp access, cgi-bin, shell, etc.
Any suggestions. I'm looking at Host Monster, anyone have experience
with them?
that was actually my point.
:)
-afan
Stut wrote:
tedd wrote:
At 4:08 PM +0100 4/16/07, Stut wrote:
Jim Lucas wrote:
Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like if (isset($_REQUEST['var'])) {
}
Put var has no data it still says it
Tijnema ! wrote:
On 4/14/07, Afan Pasalic [EMAIL PROTECTED] wrote:
hi,
this one I can't figure out:
I have to assign value of an array to variable named after key of the
array several times in my project to , e.g. after I submit a form with
personal info I have
$_POST['name'] = 'john doe
hi,
this one I can't figure out:
I have to assign value of an array to variable named after key of the
array several times in my project to , e.g. after I submit a form with
personal info I have
$_POST['name'] = 'john doe';
$_POST['address'] = '123 main st.';
$_POST['city'] = 'urbandale';
use IIS.
Tijnema ! wrote:
On 4/7/07, Afan Pasalic [EMAIL PROTECTED] wrote:
hi,
I just installed php 5.2.1-win32-installer on win box (XP). use IIS.
created index.html file and localhost/index.html is ok.
created phpinfo.php (with only phpinfo()) and was ok.
then installed Zend 5.5.0 (try
already did. though, my expertize is telling me: install php4 instead php5
:D
Tijnema ! wrote:
On 4/7/07, Tijnema ! [EMAIL PROTECTED] wrote:
On 4/7/07, Afan Pasalic [EMAIL PROTECTED] wrote:
hi,
I just installed php 5.2.1-win32-installer on win box (XP). use IIS.
created index.html file
looks like I didn't get the question. I thought he's asking how to start
a project.
to start to learn php of course you don't need paper and pencil. books,
online tutorials, php.net and time.
though, for a new project (if you never did similar before and if you
don't already have the code you
hi,
I just installed php 5.2.1-win32-installer on win box (XP). use IIS.
created index.html file and localhost/index.html is ok.
created phpinfo.php (with only phpinfo()) and was ok.
then installed Zend 5.5.0 (try) and suddenly, IE is giving me blank screen.
installed firefox 2 and got the error
Thanks Dave, good one.
-afan
Dave Goodchild wrote:
Also, turn off display_errors before going into production, at which
stage
enable error logging.
On 11/23/06, Jochem Maas [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
hi!
the company I work for moves our
right. that would be actually the best thing to do.
thanks.
Chris wrote:
[EMAIL PROTECTED] wrote:
currently using mysql 4.0.18. want to move to 5.0 (latest stable version
for commercil use). is there anytihng I have to be considered DB will
not
work?
I really suggest you set up a test
hi to all,
we are moving our web server from one to other hosting company. we have
chance to request what version of php i want to be installed, 4 or 5.
Current web server works on php 4.3.4 we don't use any classes,
functions only. as far as I know, in our case moving from 4 to 5
shouldn't
could I use this code to check if form is submitted from the same
page/same domain
if ($_POST['form_submitted'] == 'Yes')
{
if (preg_match($_SERVER['HTTP_HOST'], $_SERVER[HTTP_REFERER]) == 0)
{
die ('^[EMAIL PROTECTED]');
}
}
thanks
-afan
--
PHP General Mailing List
if you pull this array from mysql use this:
$query = mysql_query(SELECT * FROM table);
$result = mysql_fetch_array($query, MYSQL_ASSOC);
-afan
Rabin Vincent wrote:
On 6/11/06, Ahmed Abdel-Aliem [EMAIL PROTECTED] wrote:
when i have array in the form of :
Array ( [0] = 2 [ID] = 2 [1] = asdasd
1 - 100 of 169 matches
Mail list logo