What's the common consensus as to a solid PHP framework to use for
application development? There seems to be a number of them out there,
but I'm not sure which one's are the most robust, actively developed,
secure, etc etc.
Thoughts?
--
PHP General Mailing List (http://www.php.net/)
To
Gabe wrote:
What's the common consensus as to a solid PHP framework to use for
application development? There seems to be a number of them out there,
but I'm not sure which one's are the most robust, actively developed,
secure, etc etc.
Thoughts?
Sounds like it's just personal preference
Robert Cummings wrote:
On Wed, 2006-08-02 at 10:50 -0400, Gabe wrote:
Gabe wrote:
What's the common consensus as to a solid PHP framework to use for
application development? There seems to be a number of them out there,
but I'm not sure which one's are the most robust, actively developed
Paul Scott wrote:
Too bad there isn't a skeleton sort-of system that you essentially then
just plug in the modules that you want/need to flesh it out. Then
you'd have your own customized framework for each app that is developed
and keeps *all* of the modules relevant to that app. Nothing
I'm trying to use the following method of a class (DbConnector):
public function closeConnector() {
//
echo pin closeConnector();
var_dump(DbConnector::$connector);
echo /p;
//make sure the db object is cleaned up properly
if (
Gabe wrote:
I'm trying to use the following method of a class (DbConnector):
public function closeConnector() {
//
echo pin closeConnector();
var_dump(DbConnector::$connector);
echo /p;
//make sure the db object is cleaned up properly
if ( gettype(DbConnector
Richard Lynch wrote:
On Wed, August 16, 2006 9:13 am, Gabe wrote:
I'm trying to use the following method of a class (DbConnector):
public function closeConnector() {
//
echo pin closeConnector();
var_dump(DbConnector::$connector);
What is $connector ???
Perhaps you want
I'm looking to write a function that will receive the contents of a web
form, do some data manipulation, then pass on the manipulated data to
another URL via POST. Is there a built-in function in PHP that I can
use to send the data to another URL via POST without a user having to
click submit
Thanks guys, very helpful!
Gabe wrote:
In this if statement, if the condition is true, then it will assign true
to the array (as I want it to). If the condition evaluates to false, it
assigns nothing. Any idea why it won't assign false? If I switch the
FALSE boolean value to the number 0
For those of you that are using ADOdb, hopefully you can help me out. I'm
evaluating PHP on IIS and I was curious if I had to have a directory with
the ADOdb scripts for every virtual host?
For example, if I had three virtual hosts at three different IP's:
210.210.210.200
210.210.210.201
Looking at the code below, what exactly is happening with the $name=$value
part? I looked in the PHP online documentation and I can't find that
operator. What is it doing exactly and what is it called?
foreach ($some_array as $name=$value)
{
... some code ...
}
Thanks alot!
--
PHP General
Thanks for the page. That was helpful. Just to make sure, is that
operator only typically used then with foreach loops and arrays?
Matt Matijevich [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
foreach ($some_array as $name=$value)
{
... some code ...
}
[/snip]
Thanks Ligaya
Ligaya Turmelle [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
it is refering to the associative array, specifically the $key = $value .
Note here (http://www.php.net/manual/en/language.types.array.php).
Respectfully,
Ligaya Turmelle
Gabe [EMAIL PROTECTED] wrote
If you're using ADOdb, what is the name, purpose, and function of this
operator?
-
e.g. $conn-Connect(false, 'scott', 'tiger', $oraname);
I can follow some tutorials, but I'm just not sure when I need to use it and
when I don't.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To
);
http://www.php.net/manual/en/ref.com.php
alex hogan
-Original Message-
From: Gabe [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 08, 2004 1:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] ADOdb Operator question
If you're using ADOdb, what is the name, purpose, and function
Yeah, I looked at that page, but didn't see any specifications for it. I
guess I'll probably just have to use the tried and true method of trial and
error.
Thanks Matt.
Matt Matijevich [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
e.g. $conn-Connect(false, 'scott', 'tiger',
That helps, thanks!
Curt Zirzow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
* Thus wrote Gabe ([EMAIL PROTECTED]):
If you're using ADOdb, what is the name, purpose, and function of this
operator?
-
e.g. $conn-Connect(false, 'scott', 'tiger', $oraname);
The $conn
I don't know if this is the root of your problem or not, but I tried running
PHP 4.3.5 on my Win2K box and it crashed a lot. I found out that if you
have PHP configured to run as a SAPI module there are stability issues with
that version (this bug has been reported). I think the CGI install
Is the following code the best way to redirect someone to a different
page using PHP?
?php
header(Location: http://www.yahoo.com;);
?
I looked for a redirect function of some kind and didn't come up with
anything. Just curious what the consensus is...
Thanks
--
PHP General Mailing List
Brandon Holtsclaw wrote:
Thanks for the ideas. The header option will work, I was just curious.
or you could try something like :
scriptwindow.location.href='http://www.slashdot.org'/script
and / or
?php
echo scriptwindow.location.href='http://www.slashdot.org'/script;
?
Brandon Holtsclaw
I'm trying to do a simple update to an access database using the ADOdb
library. For some reason I can't get it to work. I can however, get a
simple select statment to work just fine. Take a look at my code below
as well as the error message. Maybe someone can help me out. As you'll
see
I double checked the names. Everything looks okay. Another ideas?
Curt Zirzow wrote:
* Thus wrote Gabe ([EMAIL PROTECTED]):
...
(access): UPDATE tblFAQ_Book SET tblFAQ_Book.fldTitle = one more test
WHERE (tblFAQ_Book.autoBookID = 1)
Warning: odbc_exec(): SQL error: [Microsoft][ODBC Microsoft
: [Microsoft][ODBC Microsoft Access Driver] Operation must use an
updateable query.
What do you think?
Lester Caine wrote:
Gabe wrote:
I double checked the names. Everything looks okay. Another ideas?
Did the ADOdb list answer not work?
http://phplens.com/lens/lensforum/msgs.php?id=9285
Single
] Operation must use an
updateable query.
Thanks
Curt Zirzow wrote:
* Thus wrote Gabe ([EMAIL PROTECTED]):
...
(access): UPDATE tblFAQ_Book SET tblFAQ_Book.fldTitle = one more test
WHERE (tblFAQ_Book.autoBookID = 1)
Warning: odbc_exec(): SQL error: [Microsoft][ODBC Microsoft Access
Driver] Too few
pages
which all basically say the same thing.
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q175168
-Dave
At 11:01 AM 4/21/2004, Gabe wrote:
Here's another version of the SQL statement and I get a different
error now. When I copy and paste this exact same SQL statement into an
update
I have a field in a DB that contains a date. The format of the date is:
04/08/2004
However, when I retrieve the date from DB using PHP, it displays the
following:
2004-04-08 00:00:00
Is PHP tacking on the zero's? I've tried using the date() function to
reformat it back to how I want it,
I should also probably mention that I'm using ADOdb as well.
Gabe wrote:
I have a field in a DB that contains a date. The format of the date is:
04/08/2004
However, when I retrieve the date from DB using PHP, it displays the
following:
2004-04-08 00:00:00
Is PHP tacking on the zero's
would write to form the proper date I want?
$dbDate = value from the date field in the database
date(m-d-Y, $dbDate);
Richard Davey wrote:
Hello Gabe,
Friday, April 23, 2004, 7:20:14 PM, you wrote:
G However, when I retrieve the date from DB using PHP, it displays the
G following:
G 2004-04-08
without the extra zero's.
Richard Davey wrote:
Hello Gabe,
Friday, April 23, 2004, 7:33:53 PM, you wrote:
G Let's say that getting those zero's is ok. Is this the code that I
G would write to form the proper date I want?
G $dbDate = value from the date field in the database
G date(m-d-Y, $dbDate
-combine.php
Gabe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$strText = now i'll give it a useful value;
Or is it just better to skip the first line? Just curious, thanks!
Gabe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Environment:
PHP 4.3.6
Access DB
W2K IIS 5
I'm trying to store a date in a date/time field using the short date
format ( m/d/ ). For some reason it won't let me post an empty
value to that field in the DB. I've tried using empty quotes ( ) or
NULL and I always get a datatype mismatch sql
Torsten Roehr wrote:
Gabe [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Environment:
PHP 4.3.6
Access DB
W2K IIS 5
I'm trying to store a date in a date/time field using the short date
format ( m/d/ ). For some reason it won't let me post an empty
value to that field in the DB
Matt Matijevich wrote:
[snip]
Well, I would, but I can't seem to figure out how to export just the
structure out of access. Wouldn't NULL be allowed by default?
[/snip]
Do you have access to the mdb file? If you do you can just go into
design view of the table to find out the data definitions.
Torsten Roehr wrote:
Gabe [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Torsten Roehr wrote:
Gabe [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Environment:
PHP 4.3.6
Access DB
W2K IIS 5
I'm trying to store a date in a date/time field using the short date
format ( m/d
Torsten Roehr wrote:
Gabe [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Torsten Roehr wrote:
Gabe [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Torsten Roehr wrote:
Gabe [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Environment:
PHP 4.3.6
Access DB
W2K IIS 5
Mark Pecaut wrote:
On Thu, May 20, 2004 at 12:28:00PM -0400, Gabe wrote:
I'm trying to store a date in a date/time field using the short date
format ( m/d/ ). For some reason it won't let me post an empty
value to that field in the DB. I've tried using empty quotes ( )
I'm using Microsoft
Torsten Roehr wrote:
Gabe [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Torsten Roehr wrote:
Gabe [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Torsten Roehr wrote:
Gabe [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Torsten Roehr wrote:
Gabe [EMAIL
Does anyone know of a simple/efficient way to determine the path to a
script on the URL?
For instance:
http://www.nowhere.com/test/whatever/testing.php
All I want out of that URL is this:
/test/whatever/
I didn't see an element in one of the super global variables that would
provide me this
Thanks Matt and James... very helpful!
James Harrell wrote:
See the parse_url() function.
-Original Message-
From: Matt Matijevich [mailto:[EMAIL PROTECTED]
Sent: Friday, June 04, 2004 9:57 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] script location
[snip]
Knowing the functions is half the battle. :-)
David T-G wrote:
Gabe --
...and then Gabe said...
%
% Does anyone know of a simple/efficient way to determine the path to a
% script on the URL?
Gee, it sounds like you want the dirname() of the SCRIPT_URL. You're on
the right track :-)
HTH HAND
I'm writing a *very* simple search form for my db and was interested in
hearing some recommendations on what to check for with the user's input
for the search.
However, I guess more specifically my question is if anyone had any
advice as to other things I should check since it's a search form.
Greg Donald wrote:
On Wed, 16 Jun 2004 10:34:21 -0400, Gabe [EMAIL PROTECTED] wrote:
I'm writing a *very* simple search form for my db and was interested in
hearing some recommendations on what to check for with the user's input
for the search.
However, I guess more specifically my question
row in the recordset? That's the association problem I'm
talking about. Also, how would I then sort the recordset accordingly
based on the relevancy array?
I've been looking through the PHP documentation and can't quite get past
this question. Anyone have any ideas? Thanks!
Gabe
--
PHP
;
$objRS_Results-moveNext();
}
//prints out the search results based on the relevancy array
while ( current( $arrSort ) )
{
echo $arrRS_Data[key($arrSort)][title] . br /;
next( $arrSort );
}
Thanks again
Gabe
Gabe wrote:
Wanted to see if anyone had any
I hope I don't get too chastised for a double post ( posted in .db first
), but I'm hoping someone can help me.
I'm using PHP with ADOdb ( and an MS Access 2000 db ) to write a simple
SQL statement but was running into some case sensitivity issues. Here's
my SQL currently:
SELECT
Does anyone know of a way to have this function run case insensitive?
E.g.
$strHaystack = this iS a tEsT.;
$strNeedle = is;
$intCount = substr_count( $strHaystack, $strNeedle );
Anyway, to get this to return a count of two? The haystack that I'm
searching in could be just about anything, so I
Matt Matijevich wrote:
[snip]
Anyway, to get this to return a count of two?
[/snip]
just strtolower or strtoupper both $strHaystack and $strNeedle
I think I've been looking at the same code for so long, I'm missing the
blatantly obvious stuff now... I can't believe I didn't think of that.
What I'm trying to do is find a substring in a much longer string and
insert another string before and after the substring. For example:
string to find: weather
string to search in: This is the worst weather ever. Weather around
here is terrible.
string to add before: strong
string to add
Matt M. wrote:
There's a number of functions in PHP that will give me the position of
the *first* instance of the matched string, but it doesn't look like the
function would keep searching after the first match. Anyway, am I
overlooking a function that already has the functionality that I'm
Philip Olson wrote:
There's a number of functions in PHP that will give me the position of
the *first* instance of the matched string, but it doesn't look like the
function would keep searching after the first match. Anyway, am I
overlooking a function that already has the functionality that I'm
I was looking at the comparison operators page and noticed that these
two operators were listed as PHP4 only. Is that an error, or are they
really not used in PHP5? I don't want to use them if they're going to
break when I upgrade. And if they aren't included, then does something
else
Michael Sims wrote:
Gabe wrote:
I was looking at the comparison operators page and noticed that these
two operators were listed as PHP4 only. Is that an error, or are
they really not used in PHP5? I don't want to use them if they're
going to break when I upgrade. And if they aren't included
'%$strCriteria%')));
I know in general that protecting against someone entering SQL is a must
. So I guess I'm just wondering if anyone has any real-world experience
with how people can take advantage of SQL and forms.
Thanks!
Gabe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
Gabe wrote:
Can someone help me understand how people are able to use SQL
maliciously if you don't protect against it in PHP? For example, I've
written a very simple search SQL statement that takes the value of a
variable for the search criteria ( from a webpage form ). I don't
understand
to make sense, since there is no php in the js file.
just a thought,
gabe.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have created a predictionscompetition and some code counts te total score of
a match of a person.
On the screen it workes, but in de database it goes wrong. Each person gets
the total of the last person. There must be something wrong with the update
statement.
I hope someone can help me.
This is a shot in the dark since I've never even done PHP redirection, but
did you try using absolute system pathname (eg. /home/httpd/html/index.php),
or absolute web address (eg. http://www.yoursite.com/index.php)?
From: [EMAIL PROTECTED] (Jay Paulson)
Reply-To: Jay Paulson [EMAIL PROTECTED]
Microsoft Internet Information Server.
From: [EMAIL PROTECTED] (Nafiseh Saberi)
Newsgroups: php.general
Date: Wed, 22 Aug 2001 19:22:16 +0430
To: [EMAIL PROTECTED]
Subject: IIS
hi.
what is IIS?
thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
I generally like to write separate library files containing most of the
code, store them outside of the web directory, include the necessary
libraries and then just insert function calls where I need them in the html.
From: [EMAIL PROTECTED] (Seb Frost)
Newsgroups: php.general
Date: Tue, 21
=\\/a;
}
print $navspc$hmenav$comnav$curnav$llsnav;
}
section is passed to the function and the function returns the correct
tab. IS there a better and faster way?
~kurth
--
__
Gabe da Silveira, Web Designer
Twin Cities Student Unions
University of Minnesota
http
, are there other equally busy newsgroups for
PHP?
Thanks,
Christopher Raymond
--
__
Gabe da Silveira, Web Designer
Twin Cities Student Unions
University of Minnesota
http://www.coffman.umn.edu
wFone: (612)624-7270
eMail: [EMAIL PROTECTED]
hPage: http
.
--
__
Gabe da Silveira, Web Designer
Twin Cities Student Unions
University of Minnesota
http://www.coffman.umn.edu
wFone: (612)624-7270
eMail: [EMAIL PROTECTED]
hPage: http://www.visi.com/~jiblet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
background). I have set it up so
that in CSS the id sel is a red b/g.
How do I set the id of a certain cell to sel taking it from the url
(index.php?menu=cars as a very bad example of php coding :)).
Cheers
Martin
--
__
Gabe da Silveira, Web Designer
Twin
- all I want to do is change the css id=sel
from Home to Synthesizers.
Cheers
Martin
--
__
Gabe da Silveira, Web Designer
Twin Cities Student Unions
University of Minnesota
http://www.coffman.umn.edu
wFone: (612)624-7270
eMail: [EMAIL PROTECTED]
hPage: http
slow (2-3 seconds for page to process) and I want to be able
to log the query speeds so I can see if there's a database bottleneck or
if my code is just kludgy.
--
__
Gabe da Silveira, Web Designer
Twin Cities Student Unions
University of Minnesota
http
! :)
Rick
--
__
Gabe da Silveira, Web Designer
Twin Cities Student Unions
University of Minnesota
http://www.coffman.umn.edu
wFone: (612)624-7270
eMail: [EMAIL PROTECTED]
hPage: http://www.visi.com/~jiblet
--
PHP General Mailing List (http://www.php.net
may be. You may also want to sprinkle mircotimes throughout your
code to get a good idea of processing time.
In article 047c01c12bf3$bdae2b40$0b01a8c0@ANDreY,
[EMAIL PROTECTED] (Andrey Hristov) wrote:
Use microtime before and after the query.
--
__
Gabe da
... let him sink with his ship. PHP isn't going
anywhere anytime soon... not while *nix boxes are still the most stable
performers for web.
--
__
Gabe da Silveira, Web Designer
Twin Cities Student Unions
University of Minnesota
http://www.coffman.umn.edu
wFone
--
__
Gabe da Silveira, Web Designer
Twin Cities Student Unions
University of Minnesota
http://www.coffman.umn.edu
wFone: (612)624-7270
eMail: [EMAIL PROTECTED]
hPage: http://www.visi.com/~jiblet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
'all_databases.sql' it gets to the
first table and tries to insert some information into it and says blah
table is read only and it stops...
jay
--
__
Gabe da Silveira, Web Designer
Twin Cities Student Unions
University of Minnesota
http://www.coffman.umn.edu
lost here so any help would be great!
Thanks,
Jay
--
__
Gabe da Silveira, Web Designer
Twin Cities Student Unions
University of Minnesota
http://www.coffman.umn.edu
wFone: (612)624-7270
eMail: [EMAIL PROTECTED]
hPage: http://www.visi.com/~jiblet
--
PHP General
72 matches
Mail list logo