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 unsu
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
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, act
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 e
I'm trying to use the following method of a class (DbConnector):
public function closeConnector() {
//
echo "in closeConnector()";
var_dump(DbConnector::$connector);
echo "";
//make sure the db object is cleaned up properly
if ( gettype(DbConnector::
Gabe wrote:
I'm trying to use the following method of a class (DbConnector):
public function closeConnector() {
//
echo "in closeConnector()";
var_dump(DbConnector::$connector);
echo "";
//make sure the db object is cleaned up pr
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 "in closeConnector()";
var_dump(DbConnector::$connector);
What is $connector ???
P
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 num
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
210.210
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 ...
> }
> [/sni
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,
>
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 un
gt; This is an explanation that's in the manual.
>
> $conn->Open("Provider=SQLOLEDB; Data Source=localhost;Initial
> Catalog=database; User ID=user; Password=password");
>
> http://www.php.net/manual/en/ref.com.php
>
>
>
> alex hogan
>
>
> >
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',
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?
> >
> > ->
> >
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 shoul
Is the following code the best way to redirect someone to a different
page using PHP?
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 (http://www.php.net/)
To
Brandon Holtsclaw wrote:
Thanks for the ideas. The header option will work, I was just curious.
or you could try something like :
window.location.href='http://www.slashdot.org'
and / or
window.location.href='http://www.slashdot.org'";
?>
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 bel
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: [Micro
: [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 and
t Access Driver] 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 Microsof
ound about a zillion 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
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, but
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 z
this the code that I
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 disp
I only got the date 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 th
ttp://us4.php.net/manual/en/function.array-combine.php
Gabe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
//initialize
$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 sq
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
val
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/t
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:
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 ( "&qu
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
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 info
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]
http://www.now
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 &
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 specificall
number goes
with what 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
evancy );
$arrSort[$objRS_Results->fields[0]] = $intRelevancy;
$objRS_Results->moveNext();
}
//prints out the search results based on the relevancy array
while ( current( $arrSort ) )
{
echo $arrRS_Data[key($arrSort)]["title"] . "";
ne
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 autoQuesID,f
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.
Tha
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:
string to add after:
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
search
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
s
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 repl
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
') OR (fldQuesTitle
LIKE '%$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 Mail
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
is it possible to write a script that can screen scrape a site that uses
session cookies for authentication? the reasoning for this is so that i can
add check boxes to a list so i can reset more then one port on my isp router
at a time. thanks
--
PHP General Mailing List (http://www.php.net/)
On Wed, Mar 09, 2005 at 12:27:39AM +, M?rio Gamito wrote:
> Hi,
>
> I'm trying to integrate some JavaScript functions in PHP, but so far, no
> good :(
>
> I want to have a js.php file that has the JavaScript functions i want to
> use. This file, albeit its extension, has no PHP code or even
> 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 hel
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 PROTEC
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
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
;0\"
> name=\"Nav5\" alt=\"land mark land services\">";
>
> $navspc = " height=\"10\" border=\"0\" alt=\"\">";
>
> if ($section == "root"){
> $hmenav = " width=\"62\" height=\"16\" border=
f this list is not available, 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
wF
a way to disablt it?
>
> Thanks.
--
__
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 unsu
king it from the url
> (index.php?menu=cars as a very bad example of php coding :)).
>
> 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://
to the synthesizers page the url is:
> index.php?sect=5&id=0&page=31
>
> where sect=5 is the part that sets the menu highlight (the menu is alway the
> same, hard-coded into the page - all I want to do is change the css id="sel"
> from Home to Synthesizers.
>
airly 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 Minn
e. Am I going about this wrong?
>
> Quite confused! :)
>
> 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:
microtime before and after the query.
--
__
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-m
time convincing me that 100's of kb in Flash is worth it.
>
> He obviously is sold on JSP... 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.
--
_
> endif;
>
> It doesn't return an error, but that doesn't mean it works. I really
> appreciate your help. TIA
>
> Tom Malone
> Web Designer
> http://www.tom-malone.com
>
--
__
Gabe da Silveira, Web Designer
Twin Cities Stude
hen i run the mysql -u root -p < '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 De
earlier version of MySQL on my
> Win2k machine than on the RedHat machine?
>
> Anyway, I'm at a total lost here so any help would be great!
>
> Thanks,
> Jay
>
--
__
Gabe da Silveira, Web Designer
Twin Cities Student Unions
University
73 matches
Mail list logo