|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general-digest-help
lists.php.net
Date: Wed May 09 2007 - 20:02:04 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 10 May 2007 01:02:04 -0000 Issue 4782
Topics (messages 254637 through 254705):
Re: DBA flatfile mode
254637 by: Al
Search function
254638 by: Ryan A
254642 by: David Robley
254687 by: Richard Lynch
Re: Killing a process with php
254639 by: Myron Turner
254690 by: Richard Lynch
254699 by: bruce
Re: sqlite AND OR query ?
254640 by: Brad Fuller
Re: Disable Soap Client and Soap Server in php5
254641 by: Brad Fuller
254689 by: Richard Lynch
Problem with mssql_query()
254643 by: Chris Boget
254651 by: Dan Shirah
254655 by: Chris Boget
254686 by: Richard Lynch
Re: Upload problem - final size is different
254644 by: Eric Trahan
254646 by: Daniel Brown
254647 by: Richard Davey
254692 by: Richard Lynch
254694 by: Daniel Brown
Isset Errors
254645 by: Davide Bernard
254648 by: Edward Kay
254685 by: Richard Lynch
Re: Articles system
254649 by: bruce
Ajax?
254650 by: Emil Edeholt
254660 by: Edward Kay
254667 by: bruce
254669 by: Greg Donald
254671 by: Satyam
254672 by: Martin Marques
254673 by: bruce
254700 by: Sancar Saran
254702 by: WeberSites LTD
254705 by: jekillen
Ajax Developer
254652 by: Efrain Sarmiento
254653 by: Stut
254654 by: Davi
254656 by: Edward Vermillion
254658 by: Robert Cummings
254659 by: Davi
254662 by: Edward Kay
254664 by: Edward Vermillion
254665 by: Daniel Brown
254677 by: Richard Lynch
254678 by: Richard Lynch
254679 by: Efrain Sarmiento
254680 by: Richard Lynch
254681 by: Daniel Brown
254682 by: Daniel Brown
254683 by: Richard Lynch
254684 by: Richard Lynch
254691 by: Sancar Saran
254695 by: Robert Cummings
Re: session cookies enabled?
254657 by: ccspencer.softhome.net
254688 by: Richard Lynch
Apache 2.2.x and PHP 5.2.x
254661 by: Philip Thompson
254663 by: Daniel Brown
254676 by: Richard Lynch
getting $_ENV variables
254666 by: C.R.Vegelin
254668 by: Daniel Brown
254670 by: Greg Donald
254674 by: Richard Lynch
254675 by: Richard Lynch
Every Wednesday....
254693 by: Daniel Brown
254697 by: Jason Pruim
254698 by: Daniel Brown
Scalable Site Architecture
254696 by: bruce
Setting Column Widths in Excel Using PHP?
254701 by: Jay Paulson
Apache ErrorDocument / PHP header() interaction does not work as expected
254703 by: Marc Liyanage
faridjame
gmail.com
254704 by: Farid Jamea
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
See if there is a optimize, clean. vacuum or refresh command. Most DBs have them by whatever name.
Maybe SQLite would be an alternate choice.
Ultraband wrote:
> Hello,
>
> I'm using PHP's dba flatfile mode to maintain a flatfile database with a
> few
> records. It works good, but I was wondering about how it works. I notice
> that after deleting a record, only what I take to be the key part of the
> record is removed (the dba_* functions now longer read this record although
> it remains in the flatfile), also when I update a record the key part of
> the
> record is removed, and another record is added with a new key.
>
> Is this how the flatfile mode is supposed to work? Is there somewhere I can
> find a little more on the inner-workings of this? It seems like it could be
> relatively easy to debug if it became corrupted (as it is a textfile).
>
> Thanks in advance,
> Fidel
>
attached mail follows:
Hey!
.....A little background:
We have a site that has already been made.. a couple of hundred pages displayed via SMARTY templates, the site's in Swedish.
The navigation and other parts except for the center is taken care of by the templates and other scripts... the center main text is taken from the database(mySql) based on $page_id...its in a MySql TEXT field and has all the html etc that will be displayed in the center of the page.
....End of background..
Now they want to add a "search function" to the site... a simpe textbox where a user enters a word or sentance and they get 20 results per page... with a "x.xx % closest to your query" can anybody give me basic pointers on where to start?
Any links/software or articles too would be appreciated...
(I can do the pagentation etc... just the search logic...)
Thanks!
R
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
attached mail follows:
Ryan A wrote:
> Hey!
>
> .....A little background:
> We have a site that has already been made.. a couple of hundred pages
> displayed via SMARTY templates, the site's in Swedish.
>
> The navigation and other parts except for the center is taken care of by
> the templates and other scripts... the center main text is taken from the
> database(mySql) based on $page_id...its in a MySql TEXT field and has all
> the html etc that will be displayed in the center of the page.
>
> ....End of background..
>
> Now they want to add a "search function" to the site... a simpe textbox
> where a user enters a word or sentance and they get 20 results per page...
> with a "x.xx % closest to your query" can anybody give me basic pointers
> on where to start? Any links/software or articles too would be
> appreciated...
>
> (I can do the pagentation etc... just the search logic...)
>
> Thanks!
> R
Don't reinvent the wheel - mnogosearch has php compatibility.
http://www.mnogosearch.org/
Cheers
--
David Robley
Tried to play my shoehorn... all I got was footnotes!
Today is Prickle-Prickle, the 56th day of Discord in the YOLD 3173.
attached mail follows:
On Wed, May 9, 2007 7:34 am, Ryan A wrote:
> Now they want to add a "search function" to the site... a simpe
> textbox where a user enters a word or sentance and they get 20 results
> per page... with a "x.xx % closest to your query" can anybody give me
> basic pointers on where to start?
> Any links/software or articles too would be appreciated...
You could google for "full text search" and "weighted search" and find
more than enough reading to fill the rest of your life... :-)
With only a couple hundred pages of content, it's kinda hard to really
make a good search engine...
You'd almost be better off just building a form that leads to Google
and using theirs, really.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
attached mail follows:
chris
aquanuke.com wrote:
> Hi could someone give me examples on how to detect and kill processes
> on linux.
> I have a number of scripts running as socketxxx.php these stop and
> start every hour.
> But I also need to at the end of each day make sure their dead before
> the next days start.
>
> These processes are also running as root user.
>
> Thanks
>
One way to do this would be to let the script check itself:
<?php
$end_of_day = mktime(23, 59, 59);
declare(ticks = 1);
function signal_handler($signal) {
$tm = time();
if($tm > $end_of_day) {
exit(0);
}
}
pcntl_signal(SIGALRM, "signal_handler", true);
pcntl_alarm(300);
?>
Here you set an alarm that checks every 5 minutes to see if the current
timestamp is greater than the timestamp a minute before midnight. If it
is, then exit. Or set a flag in the signal handler that is accessed
elsewhere in your script which tells the script that it's time to exit.
--
_____________________
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/
attached mail follows:
On Tue, May 8, 2007 8:26 pm, chris
aquanuke.com wrote:
> Hi could someone give me examples on how to detect and kill processes
> on
> linux.
> I have a number of scripts running as socketxxx.php these stop and
> start
> every hour.
> But I also need to at the end of each day make sure their dead before
> the
> next days start.
>
> These processes are also running as root user.
su to root
ps auxwww | grep socketxxx.php
If 'xxx' changes, you could just maybe do:
ps auxwwww | grep socket | grep php
Once you're sure you know what you want to kill, you could use 'kill'
to kill it.
You'll need the process ID number, which is the first number you see
in the row, right after the username.
Now that I've answered your question...
Almost for sure, whatever it is you THINK you should be doing, you've
done something else horribly wrong that is making you THINK you should
be searching for and killing these processes, but you shouldn't. :-)
Since they already ARE php, it would probably be MUCH simpler to alter
the PHP in your socketxxx.php script, and add a couple lines like
this:
<?php
$start = date('Y-m-d');
//more code here
while (1){
if (date('Y-m-d') != $start) exit;
//socket reading/handling code here
}
?>
This presumes you actually need the process to die in the first place,
which sounds kinda hinky in and of itself, to tell you the truth...
Most Un*x socket-based processes start at boot and run forever until
the machine is shutdown, or somebody trips over the power-cord.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
attached mail follows:
hey chris...
can you tell us what you're trying to accomplish, and what the processes
you're looking to kill are doing? why are you trying to kill them on a daily
basis.. i'm assuming that you don't want hanging socket processes just
sitting on your system...
-bruce
-----Original Message-----
From: Richard Lynch [mailto:ceo
l-i-e.com]
Sent: Wednesday, May 09, 2007 11:30 AM
To: chris
aquanuke.com
Cc: php-general
lists.php.net
Subject: Re: [PHP] Killing a process with php
On Tue, May 8, 2007 8:26 pm, chris
aquanuke.com wrote:
> Hi could someone give me examples on how to detect and kill processes
> on
> linux.
> I have a number of scripts running as socketxxx.php these stop and
> start
> every hour.
> But I also need to at the end of each day make sure their dead before
> the
> next days start.
>
> These processes are also running as root user.
su to root
ps auxwww | grep socketxxx.php
If 'xxx' changes, you could just maybe do:
ps auxwwww | grep socket | grep php
Once you're sure you know what you want to kill, you could use 'kill'
to kill it.
You'll need the process ID number, which is the first number you see
in the row, right after the username.
Now that I've answered your question...
Almost for sure, whatever it is you THINK you should be doing, you've
done something else horribly wrong that is making you THINK you should
be searching for and killing these processes, but you shouldn't. :-)
Since they already ARE php, it would probably be MUCH simpler to alter
the PHP in your socketxxx.php script, and add a couple lines like
this:
<?php
$start = date('Y-m-d');
//more code here
while (1){
if (date('Y-m-d') != $start) exit;
//socket reading/handling code here
}
?>
This presumes you actually need the process to die in the first place,
which sounds kinda hinky in and of itself, to tell you the truth...
Most Un*x socket-based processes start at boot and run forever until
the machine is shutdown, or somebody trips over the power-cord.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
chris
aquanuke.com wrote:
> Hello,
>
> I want to select two dates one being todays date and the
> other being 0000-00-00 which just a date in the database when
> no proper date has been entered.
>
> Ive tried this but it does not work...
>
> $today = date('Y-m-d');
> $result = sqlite_query($db, "SELECT * FROM domains WHERE date =
> '0000-00-00' AND '$today'");
>
> I just get items with '0000-00-00' returned or if I reverse it ie...
>
> WHERE date = '$today'AND '0000-00-00'");
>
> I just get $today items returned.
>
> I also tried using OR instead of AND ie...
>
> WHERE date = '0000-00-00' OR '$today'");
>
> But that seems to be returning all items in the db.
>
>
> Thanks.
SELECT * FROM domains WHERE (date = '0000-00-00' OR date = '$today')
-B
attached mail follows:
Don Don wrote:
> How can i disable soap client and server for php5, reason is
> that i've got NuSOAP (which i must use) and its classes clash
> with that of PHP5. My php configuration (when using
> <phpinfo()> displays soap client and server enabled for php5.
> I need to disable if ..amd looking into the configs..to see how
>
> cheers
I also use NuSOAP with PHP5, all I did is edit nusoap.php and rename the
class "soapclient" to "soap_client".
attached mail follows:
On Wed, May 9, 2007 8:27 am, Brad Fuller wrote:
> Don Don wrote:
>> How can i disable soap client and server for php5, reason is
>> that i've got NuSOAP (which i must use) and its classes clash
>> with that of PHP5. My php configuration (when using
>> <phpinfo()> displays soap client and server enabled for php5.
>> I need to disable if ..amd looking into the configs..to see how
>>
>> cheers
>
> I also use NuSOAP with PHP5, all I did is edit nusoap.php and rename
> the
> class "soapclient" to "soap_client".
It depends how "smart" apt-get is gonna be, but you might try:
uninstall soap
uninstall php
re-install php FIRST
re-install SOAP
Since PHP will think SOAP was not there, it won't add in the PHP SOAP
stuff.
If apt-get is "smart" and figures out that you wanted SOAP + PHP
because you already have PHP, you have no choice but to compile from
source and choose what you want, instead of taking whatever apt-get
feels like giving you.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
attached mail follows:
I noticed the following in my logs:
22:04:42 [warning] [D:\PHP\pear\DB\mssql.php][439]: mssql_query(): Unable
to set query
22:04:42 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][439]; function(
mssql_query ); args( 1[value:select 
ERROR as ErrorCode] 2[value:Resource
id #21] )
22:04:42 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][489]; function(
errornative )
22:04:42 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][145]; function(
mssqlraiseerror )
22:04:42 [info] Backtrace: [D:\PHP\pear\DB\common.php][1146]; function(
simplequery ); args( 1[value:SELECT * FROM wording WHERE wording_id =
'8' ] )
22:04:42 [critical] Error in the following query:<br><br>SELECT * FROM
wording WHERE wording_id = '8' <br>DB Error: unknown error
22:04:52 [warning] [D:\PHP\pear\DB\mssql.php][439]: mssql_query(): Unable
to set query
22:04:52 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][439]; function(
mssql_query ); args( 1[value:select 
ERROR as ErrorCode] 2[value:Resource
id #21] )
22:04:52 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][489]; function(
errornative )
22:04:52 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][145]; function(
mssqlraiseerror )
22:04:52 [info] Backtrace: [D:\PHP\pear\DB\common.php][1146]; function(
simplequery ); args( 1[value:SELECT * FROM wording WHERE wording_id =
'8' ] )
22:04:52 [critical] Error in the following query:<br><br>SELECT * FROM
wording WHERE wording_id = '8' <br>DB Error: unknown error
Why is mssql_query() saying that it's unable to set the query? I did some
searching on Google and found that people were having this problem but that
was back in 2001 using an earlier version of PHP. We are using version
4.3.11 and Microsoft SQL Server 2000 - 8.00.2039 (Intel X86).
Has anyone had a similar problem? What was your solution? Why is this
happening?
thnx,
Chris
attached mail follows:
Post your block of code from your connection string (Leave out your
username/password info please) to the end of the result set for your query
so I can take a look at it.
On 5/9/07, Chris Boget <chris.boget
wild.net> wrote:
>
> I noticed the following in my logs:
>
> 22:04:42 [warning] [D:\PHP\pear\DB\mssql.php][439]: mssql_query(): Unable
> to set query
> 22:04:42 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][439]; function(
> mssql_query ); args( 1[value:select 
ERROR as ErrorCode] 2[value:Resource
> id #21] )
> 22:04:42 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][489]; function(
> errornative )
> 22:04:42 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][145]; function(
> mssqlraiseerror )
> 22:04:42 [info] Backtrace: [D:\PHP\pear\DB\common.php][1146]; function(
> simplequery ); args( 1[value:SELECT * FROM wording WHERE wording_id =
> '8' ] )
> 22:04:42 [critical] Error in the following query:<br><br>SELECT * FROM
> wording WHERE wording_id = '8' <br>DB Error: unknown error
> 22:04:52 [warning] [D:\PHP\pear\DB\mssql.php][439]: mssql_query(): Unable
> to set query
> 22:04:52 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][439]; function(
> mssql_query ); args( 1[value:select 
ERROR as ErrorCode] 2[value:Resource
> id #21] )
> 22:04:52 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][489]; function(
> errornative )
> 22:04:52 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][145]; function(
> mssqlraiseerror )
> 22:04:52 [info] Backtrace: [D:\PHP\pear\DB\common.php][1146]; function(
> simplequery ); args( 1[value:SELECT * FROM wording WHERE wording_id =
> '8' ] )
> 22:04:52 [critical] Error in the following query:<br><br>SELECT * FROM
> wording WHERE wording_id = '8' <br>DB Error: unknown error
>
> Why is mssql_query() saying that it's unable to set the query? I did some
> searching on Google and found that people were having this problem but
> that
> was back in 2001 using an earlier version of PHP. We are using version
> 4.3.11 and Microsoft SQL Server 2000 - 8.00.2039 (Intel X86).
>
> Has anyone had a similar problem? What was your solution? Why is this
> happening?
>
> thnx,
> Chris
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
We use PEAR's DB class as our abstration layer. Here is the connection
function from DB\mssql.php:
function connect($dsninfo, $persistent = false)
{
if (!DB::assertExtension('mssql') &&
!DB::assertExtension('sybase')
&& !DB::assertExtension('sybase_ct'))
{
return $this->raiseError(DB_ERROR_EXTENSION_NOT_FOUND);
}
$this->dsn = $dsninfo;
$dbhost = $dsninfo['hostspec'] ? $dsninfo['hostspec'] :
'localhost';
$dbhost .= $dsninfo['port'] ? ',' . $dsninfo['port'] : '';
$connect_function = $persistent ? 'mssql_pconnect' :
'mssql_connect';
if ($dbhost && $dsninfo['username'] && $dsninfo['password']) {
$conn =
$connect_function($dbhost, $dsninfo['username'],
$dsninfo['password']);
} elseif ($dbhost && $dsninfo['username']) {
$conn =
$connect_function($dbhost, $dsninfo['username']);
} else {
$conn =
$connect_function($dbhost);
}
if (!$conn) {
return $this->raiseError(DB_ERROR_CONNECT_FAILED, null,
null,
null,
mssql_get_last_message());
}
if ($dsninfo['database']) {
if (!
mssql_select_db($dsninfo['database'], $conn)) {
return $this->raiseError(DB_ERROR_NODBSELECTED, null,
null,
null,
mssql_get_last_message());
}
$this->_db = $dsninfo['database'];
}
$this->connection = $conn;
return DB_OK;
}
We use the DSN: mssql://UID:PW
ourhost/db_name. We are not using
persistent connections.
thnx,
Chris
________________________________
From: Dan Shirah [mailto:mrsquash2
gmail.com]
Sent: Wednesday, May 09, 2007 11:07 AM
To: Chris Boget
Cc: PHP General
Subject: Re: [PHP] Problem with mssql_query()
Post your block of code from your connection string (Leave out your
username/password info please) to the end of the result set for your
query so I can take a look at it.
On 5/9/07, Chris Boget <chris.boget
wild.net> wrote:
I noticed the following in my logs:
22:04:42 [warning] [D:\PHP\pear\DB\mssql.php][439]:
mssql_query(): Unable
to set query
22:04:42 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][439];
function(
mssql_query ); args( 1[value:select 
ERROR as ErrorCode]
2[value:Resource
id #21] )
22:04:42 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][489];
function(
errornative )
22:04:42 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][145];
function(
mssqlraiseerror )
22:04:42 [info] Backtrace: [D:\PHP\pear\DB\common.php][1146];
function(
simplequery ); args( 1[value:SELECT * FROM wording WHERE
wording_id =
'8' ] )
22:04:42 [critical] Error in the following query:<br><br>SELECT
* FROM
wording WHERE wording_id = '8' <br>DB Error: unknown error
22:04:52 [warning] [D:\PHP\pear\DB\mssql.php][439]:
mssql_query(): Unable
to set query
22:04:52 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][439];
function(
mssql_query ); args( 1[value:select 
ERROR as ErrorCode]
2[value:Resource
id #21] )
22:04:52 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][489];
function(
errornative )
22:04:52 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][145];
function(
mssqlraiseerror )
22:04:52 [info] Backtrace: [D:\PHP\pear\DB\common.php][1146];
function(
simplequery ); args( 1[value:SELECT * FROM wording WHERE
wording_id =
'8' ] )
22:04:52 [critical] Error in the following query:<br><br>SELECT
* FROM
wording WHERE wording_id = '8' <br>DB Error: unknown error
Why is mssql_query() saying that it's unable to set the query?
I did some
searching on Google and found that people were having this
problem but that
was back in 2001 using an earlier version of PHP. We are using
version
4.3.11 and Microsoft SQL Server 2000 - 8.00.2039 (Intel X86).
Has anyone had a similar problem? What was your solution? Why
is this
happening?
thnx,
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
I dunno 100% for sure about MSsql, but I know for sure that MySQL lets
you do wording_id = '8' when wording_id is an INT and PostgreSQL will
simply throw an error, because '8' is not no way no how an INT. It's
a string.
I suspect MS SQL may be doing the same, in its own unique bland
non-desript way of just saying "error"...
Try losing the '8' and use just 8
On Wed, May 9, 2007 8:57 am, Chris Boget wrote:
> I noticed the following in my logs:
>
> 22:04:42 [warning] [D:\PHP\pear\DB\mssql.php][439]: mssql_query():
> Unable
> to set query
> 22:04:42 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][439];
> function(
> mssql_query ); args( 1[value:select 
ERROR as ErrorCode]
> 2[value:Resource
> id #21] )
> 22:04:42 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][489];
> function(
> errornative )
> 22:04:42 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][145];
> function(
> mssqlraiseerror )
> 22:04:42 [info] Backtrace: [D:\PHP\pear\DB\common.php][1146];
> function(
> simplequery ); args( 1[value:SELECT * FROM wording WHERE wording_id =
> '8' ] )
> 22:04:42 [critical] Error in the following query:<br><br>SELECT *
> FROM
> wording WHERE wording_id = '8' <br>DB Error: unknown error
> 22:04:52 [warning] [D:\PHP\pear\DB\mssql.php][439]: mssql_query():
> Unable
> to set query
> 22:04:52 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][439];
> function(
> mssql_query ); args( 1[value:select 
ERROR as ErrorCode]
> 2[value:Resource
> id #21] )
> 22:04:52 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][489];
> function(
> errornative )
> 22:04:52 [info] Backtrace: [D:\PHP\pear\DB\mssql.php][145];
> function(
> mssqlraiseerror )
> 22:04:52 [info] Backtrace: [D:\PHP\pear\DB\common.php][1146];
> function(
> simplequery ); args( 1[value:SELECT * FROM wording WHERE wording_id =
> '8' ] )
> 22:04:52 [critical] Error in the following query:<br><br>SELECT *
> FROM
> wording WHERE wording_id = '8' <br>DB Error: unknown error
>
> Why is mssql_query() saying that it's unable to set the query? I did
> some
> searching on Google and found that people were having this problem but
> that
> was back in 2001 using an earlier version of PHP. We are using
> version
> 4.3.11 and Microsoft SQL Server 2000 - 8.00.2039 (Intel X86).
>
> Has anyone had a similar problem? What was your solution? Why is
> this
> happening?
>
> thnx,
> Chris
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
attached mail follows:
After some other tests, I think the problem is with the rights of the
file.
I made tests on my personnal Mac that runs Apache/1.3.33 (Darwin) PHP/
4.4.4.
Settings in PHP:
file_uploads: On
upload_tmp_dir: no value (so it uploads in /var/tmp/)
upload_max_filesize: 2M
My destination folder is page5, same as my server (everyone can read
and write). But when the files are droped in that folder, with the
move_uploaded_file function, the owner is www and group is wheel. So
I can't open it... But when I change the rights on the file, I can
the see the images.
Is there a way to change the owner or the group of a file in PHP.
Eric
Le 2007-05-08 à 17:52, itoctopus a écrit :
> Have you tried your code on another server?
>
> --
> itoctopus - http://www.itoctopus.com
> "Eric Trahan" <eric.trahan
sc.ca> wrote in message
> news:1A25BD70-BF03-43C6-8FCB-6A49B34C968D
sc.ca...
>> Hi,
>>
>> I have a form to upload file on my web server, so user can upload
>> their
>> images.
>>
>> The upload work. The user file is uploaded to my destination folder
>> (page5/) but the file is unreadable and the file size is smaller
>> than the
>> original file size.
>>
>> I run Apache with PHP 4.1.2.
>>
>> Thank you,
>>
>> Eric.
>>
>>
>> Here is the form code:
>>
>> <form enctype="multipart/form-data" action="fileupload_bd.php"
>> method="post">
>> <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
>> Une image<br/><input type="file" name="uneimage" />
>> <br/><br/>Du texte: <input type="text" name="untexte" />
>> <br/><br/><input type="submit" />
>> </form>
>>
>>
>> Here is my PHP upload code:
>>
>> <?php
>>
>> echo $_POST['untexte'] . "<br/><br/>";
>>
>> $tmp_name = $_FILES['uneimage']['tmp_name'];
>> $type = $_FILES['uneimage']['type'];
>> $name = $_FILES['uneimage']['name'];
>> $size = $_FILES['uneimage']['size'];
>>
>> echo $tmp_name . "<br/>" . $type . "<br/>" . $name . "<br/>";
>>
>> $target_path = "page5/";
>>
>> $target_path = $target_path . basename( $_FILES['uneimage']['name']);
>>
>> echo $target_path;
>>
>> if(move_uploaded_file($_FILES['uneimage']['tmp_name'],
>> $target_path)) {
>> echo "The file ". basename( $_FILES['uneimage']['name']).
>> " has been uploaded";
>> } else{
>> echo "There was an error uploading the file, please try again!";
>> }
>> ?>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
PHP has two functions that may help you here, Eric --- chmod() and
chown().
http://php.net/chmod
http://php.net/chown
It should be enough to chmod($filename,0644); the file if it's just an
image, or chmod($filename,0755); the file if it's a script.
On 5/9/07, Eric Trahan <eric.trahan
sc.ca> wrote:
>
> After some other tests, I think the problem is with the rights of the
> file.
>
> I made tests on my personnal Mac that runs Apache/1.3.33 (Darwin) PHP/
> 4.4.4.
>
> Settings in PHP:
> file_uploads: On
> upload_tmp_dir: no value (so it uploads in /var/tmp/)
> upload_max_filesize: 2M
>
>
> My destination folder is page5, same as my server (everyone can read
> and write). But when the files are droped in that folder, with the
> move_uploaded_file function, the owner is www and group is wheel. So
> I can't open it... But when I change the rights on the file, I can
> the see the images.
>
> Is there a way to change the owner or the group of a file in PHP.
>
> Eric
>
> Le 2007-05-08 à 17:52, itoctopus a écrit :
>
> > Have you tried your code on another server?
> >
> > --
> > itoctopus - http://www.itoctopus.com
> > "Eric Trahan" <eric.trahan
sc.ca> wrote in message
> > news:1A25BD70-BF03-43C6-8FCB-6A49B34C968D
sc.ca...
> >> Hi,
> >>
> >> I have a form to upload file on my web server, so user can upload
> >> their
> >> images.
> >>
> >> The upload work. The user file is uploaded to my destination folder
> >> (page5/) but the file is unreadable and the file size is smaller
> >> than the
> >> original file size.
> >>
> >> I run Apache with PHP 4.1.2.
> >>
> >> Thank you,
> >>
> >> Eric.
> >>
> >>
> >> Here is the form code:
> >>
> >> <form enctype="multipart/form-data" action="fileupload_bd.php"
> >> method="post">
> >> <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
> >> Une image<br/><input type="file" name="uneimage" />
> >> <br/><br/>Du texte: <input type="text" name="untexte" />
> >> <br/><br/><input type="submit" />
> >> </form>
> >>
> >>
> >> Here is my PHP upload code:
> >>
> >> <?php
> >>
> >> echo $_POST['untexte'] . "<br/><br/>";
> >>
> >> $tmp_name = $_FILES['uneimage']['tmp_name'];
> >> $type = $_FILES['uneimage']['type'];
> >> $name = $_FILES['uneimage']['name'];
> >> $size = $_FILES['uneimage']['size'];
> >>
> >> echo $tmp_name . "<br/>" . $type . "<br/>" . $name . "<br/>";
> >>
> >> $target_path = "page5/";
> >>
> >> $target_path = $target_path . basename( $_FILES['uneimage']['name']);
> >>
> >> echo $target_path;
> >>
> >> if(move_uploaded_file($_FILES['uneimage']['tmp_name'],
> >> $target_path)) {
> >> echo "The file ". basename( $_FILES['uneimage']['name']).
> >> " has been uploaded";
> >> } else{
> >> echo "There was an error uploading the file, please try again!";
> >> }
> >> ?>
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
attached mail follows:
Eric Trahan wrote:
> Is there a way to change the owner or the group of a file in PHP.
http://uk2.php.net/chown
But remember the chown will fail if the user Apache is running under
does not have sufficient rights to perform the task.
Cheers,
Rich
--
Zend Certified Engineer
http://www.corephp.co.uk
"Never trust a computer you can't throw out of a window"
attached mail follows:
On Wed, May 9, 2007 9:15 am, Eric Trahan wrote:
> After some other tests, I think the problem is with the rights of the
> file.
>
> I made tests on my personnal Mac that runs Apache/1.3.33 (Darwin) PHP/
> 4.4.4.
>
> Settings in PHP:
> file_uploads: On
> upload_tmp_dir: no value (so it uploads in /var/tmp/)
> upload_max_filesize: 2M
>
>
> My destination folder is page5, same as my server (everyone can read
> and write). But when the files are droped in that folder, with the
> move_uploaded_file function, the owner is www and group is wheel. So
> I can't open it... But when I change the rights on the file, I can
> the see the images.
>
> Is there a way to change the owner or the group of a file in PHP.
There probably is a http://php.net/chown, but unless you are running
Apache as 'root' (DON'T DO THAT!) then it won't work.
However, you can use http://php.net/chmod to make the file readable by
you as well as the 'www' user.
It is very frightening, however, to see the group 'wheel' on the file,
since 'wheel' is usually reserved for users that can 'su' to root, and
having uploaded image files in that group just doesn't feel right.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
attached mail follows:
I was thinking the same thing, Richard, but didn't say anything because
of my limited experience with MacOS. I know it's built on BSD, but to be
honest, I have no clue what may have changed over the years.
On 5/9/07, Richard Lynch <ceo
l-i-e.com> wrote:
>
> On Wed, May 9, 2007 9:15 am, Eric Trahan wrote:
> > After some other tests, I think the problem is with the rights of the
> > file.
> >
> > I made tests on my personnal Mac that runs Apache/1.3.33 (Darwin) PHP/
> > 4.4.4.
> >
> > Settings in PHP:
> > file_uploads: On
> > upload_tmp_dir: no value (so it uploads in /var/tmp/)
> > upload_max_filesize: 2M
> >
> >
> > My destination folder is page5, same as my server (everyone can read
> > and write). But when the files are droped in that folder, with the
> > move_uploaded_file function, the owner is www and group is wheel. So
> > I can't open it... But when I change the rights on the file, I can
> > the see the images.
> >
> > Is there a way to change the owner or the group of a file in PHP.
>
> There probably is a http://php.net/chown, but unless you are running
> Apache as 'root' (DON'T DO THAT!) then it won't work.
>
> However, you can use http://php.net/chmod to make the file readable by
> you as well as the 'www' user.
>
> It is very frightening, however, to see the group 'wheel' on the file,
> since 'wheel' is usually reserved for users that can 'su' to root, and
> having uploaded image files in that group just doesn't feel right.
>
> --
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some indie artist.
> http://cdbaby.com/browse/from/lynch
> Yeah, I get a buck. So?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
attached mail follows:
Anyone got any suggestions on getting rid of these errors below?
[Wed May 09 08:59:05 2007] [error] [client 192.168.225.246] PHP Notice: Undefined index: userstate in /srv/www/htdocs/resetpw.php on line 31, referer: https://ams.unt.edu/resetpw.php
[Wed May 09 08:59:05 2007] [error] [client 192.168.225.246] PHP Notice: Undefined index: userstate in /srv/www/htdocs/resetpw.php on line 36, referer: https://ams.unt.edu/resetpw.php
Here's the lines of code I am getting the errors in PHP 5...Where can I insert some code to define 'userstate' ?
24. if (identifyUser()) {
25. if ((isset($_SESSION['clientinfo']['ssn'][0]) && strcmp('999999999', $_SESSION['clientinfo']['ssn'][0]))
26. || isset($_SESSION['clientsinfo'])) {
27. $_SESSION['userstate'] = 'confirmssn';
28. } else {
29. $_SESSION['userstate'] = 'ssnverified';
30. }
31. } elseif ($_SESSION['userstate'] == 'confirmssn' && confirmSSN()) {
32. $_SESSION['userstate'] = 'ssnverified';
33. }
34. initMenu();
35. if (isset($_SESSION['userstate'])) return 0;
36. if ($_SESSION['userstate'] == 'confirmssn') {
37. themeHeader();
attached mail follows:
> -----Original Message-----
> From: Davide Bernard [mailto:dbernard
unt.edu]
> Sent: 09 May 2007 15:18
> To: php-general
lists.php.net
> Subject: [PHP] Isset Errors
>
>
> Anyone got any suggestions on getting rid of these errors below?
>
>
> [Wed May 09 08:59:05 2007] [error] [client 192.168.225.246] PHP
> Notice: Undefined index: userstate in
> /srv/www/htdocs/resetpw.php on line 31, referer:
> https://ams.unt.edu/resetpw.php
> [Wed May 09 08:59:05 2007] [error] [client 192.168.225.246] PHP
> Notice: Undefined index: userstate in
> /srv/www/htdocs/resetpw.php on line 36, referer:
> https://ams.unt.edu/resetpw.php
>
>
> Here's the lines of code I am getting the errors in PHP 5...Where
> can I insert some code to define 'userstate' ?
>
>
> 24. if (identifyUser()) {
> 25. if ((isset($_SESSION['clientinfo']['ssn'][0]) &&
> strcmp('999999999', $_SESSION['clientinfo']['ssn'][0]))
> 26. || isset($_SESSION['clientsinfo'])) {
> 27. $_SESSION['userstate'] = 'confirmssn';
> 28. } else {
> 29. $_SESSION['userstate'] = 'ssnverified';
> 30. }
> 31. } elseif ($_SESSION['userstate'] == 'confirmssn' && confirmSSN()) {
> 32. $_SESSION['userstate'] = 'ssnverified';
> 33. }
> 34. initMenu();
> 35. if (isset($_SESSION['userstate'])) return 0;
> 36. if ($_SESSION['userstate'] == 'confirmssn') {
> 37. themeHeader();
>
If identifyUser() returns false, $_SESSION['userstate'] is not defined.
Edward
attached mail follows:
On Wed, May 9, 2007 9:17 am, Davide Bernard wrote:
> Anyone got any suggestions on getting rid of these errors below?
>
>
> [Wed May 09 08:59:05 2007] [error] [client 192.168.225.246] PHP
> Notice: Undefined index: userstate in /srv/www/htdocs/resetpw.php on
> line 31, referer: https://ams.unt.edu/resetpw.php
> [Wed May 09 08:59:05 2007] [error] [client 192.168.225.246] PHP
> Notice: Undefined index: userstate in /srv/www/htdocs/resetpw.php on
> line 36, referer: https://ams.unt.edu/resetpw.php
>
>
> Here's the lines of code I am getting the errors in PHP 5...Where can
> I insert some code to define 'userstate' ?
>
>
> 24. if (identifyUser()) {
> 25. if ((isset($_SESSION['clientinfo']['ssn'][0]) &&
> strcmp('999999999', $_SESSION['clientinfo']['ssn'][0]))
> 26. || isset($_SESSION['clientsinfo'])) {
> 27. $_SESSION['userstate'] = 'confirmssn';
> 28. } else {
> 29. $_SESSION['userstate'] = 'ssnverified';
> 30. }
> 31. } elseif ($_SESSION['userstate'] == 'confirmssn' && confirmSSN())
> {
elseif (isset($_SESSION['userstate']) && $_SESSION['userstate'] ==
'confirmssn' && confirmSSN()){
> 32. $_SESSION['userstate'] = 'ssnverified';
> 33. }
> 34. initMenu();
> 35. if (isset($_SESSION['userstate'])) return 0;
> 36. if ($_SESSION['userstate'] == 'confirmssn') {
> 37. themeHeader();
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
attached mail follows:
hi rich(ard)!!
kind of an off point/topic reply. but here goes. the issue you mention is in
my opinion a part of a much larger issue that has to do with the anonymous
nature of the internet with regards mailing lists, as well as the kinds of
product review sites/blogs/etc...
there is no 'good' way for the average user/reader to know if what someone
says is really valid!!! if you, (or anyone else) created a kind of
ranking/rating process so that when a given person posts something, you
could quickly check that user's credentials, then you'd make yourself a nice
chunk of change...
-----Original Message-----
From: Richard Lynch [mailto:ceo
l-i-e.com]
Sent: Tuesday, May 08, 2007 5:35 PM
To: Stut
Cc: WeberSites LTD; 'Robert Cummings'; 'Lester Caine';
php-general
lists.php.net
Subject: Re: [PHP] Articles system
On Tue, May 8, 2007 2:50 pm, Stut wrote:
> WeberSites LTD wrote:
>> 1st, I never said I was any authority about anything :)
>> I'm just building the weber sites as a hobby...
>
> Hobby or not, when you publish information on the web without a big
> message saying "I have no frickin' idea what I'm talking about", you
> are
> presenting yourself as an authority on the subject. And when you
> answer
> questions on a mailing list with links to your site you are
> re-enforcing
> that point.
Just to play Devil's Advocate...
Are you suggesting that every site on the 'net, or even just those
which LOOK like worthy material, without such a disclaimer, IS
authoritative?...
:-)
Taking this a step further, or dragging it out into an open discussion:
I'm not a real huge fan of the folks on this list who post almost as
often as I with links to their own ad-revenue sites, but they are at
least (usually) on-topic and with valid information available to the
reader.
It might be better if they sprinkled in links to php.net or even
(gasp!) a "competitor's" site sometimes, but it's not like total
spamming, eh?
There are even times where I know that there is specific content on
such a site, and I'll recommend it.
SO where do you draw the line?
Seems to me we have to be reasonable about that.
And we also have to expect the Reader to at least have half a clue and
do some basic research about the source[s] of their info, and their
vested interests, and choose for themselves what info to pursue...
Though based on experience with some posts, that may be expecting more
than will actually happen. Aim high. :-)
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Hi!
What do you guys use to develop ajax applications and do you have any
good articles on the subject?
I've just about finished an ajaxish site but it wasn't fun. A lot of
nesting javascript inside php calls, having to write the logic both in
javascript and php and so on. The source looks ugly and was time
consuming to debug.
Thanks!
Kind regards Emil
attached mail follows:
> -----Original Message-----
> From: Emil Edeholt [mailto:emil
knmedical.se]
> Sent: 09 May 2007 16:05
> To: php-general
lists.php.net
> Subject: [PHP] Ajax?
>
>
> Hi!
>
> What do you guys use to develop ajax applications and do you have any
> good articles on the subject?
>
> I've just about finished an ajaxish site but it wasn't fun. A lot of
> nesting javascript inside php calls, having to write the logic both in
> javascript and php and so on. The source looks ugly and was time
> consuming to debug.
>
> Thanks!
>
> Kind regards Emil
>
Have a look at the various frameworks available since these handle much of
the nasty details:
http://en.wikipedia.org/wiki/List_of_web_application_frameworks#PHP
I've been using Qcodo (http://www.qcodo.com) for a recent web app and am
impressed at how quickly I've been able to develop with it. For
JavaScript/CSS, I've also been using Yahoo User Interface (YUI) components
which I'm also really impressed with: http://developer.yahoo.com/yui/
The thing with frameworks and libraries is that everyone will have their
favourite for one reason or another. You just have to find the one you feel
most comfortable with.
Hope that helps,
Edward
attached mail follows:
hey edward...
from my reading.. i thought yahoo's user interface (yui) components where
for interfacing with yahoo.... am i missing something here??
thanks
-bruce
-----Original Message-----
From: Edward Kay [mailto:edward
labhut.com]
Sent: Wednesday, May 09, 2007 8:44 AM
To: Emil Edeholt; PHP General List
Subject: RE: [PHP] Ajax?
> -----Original Message-----
> From: Emil Edeholt [mailto:emil
knmedical.se]
> Sent: 09 May 2007 16:05
> To: php-general
lists.php.net
> Subject: [PHP] Ajax?
>
>
> Hi!
>
> What do you guys use to develop ajax applications and do you have any
> good articles on the subject?
>
> I've just about finished an ajaxish site but it wasn't fun. A lot of
> nesting javascript inside php calls, having to write the logic both in
> javascript and php and so on. The source looks ugly and was time
> consuming to debug.
>
> Thanks!
>
> Kind regards Emil
>
Have a look at the various frameworks available since these handle much of
the nasty details:
http://en.wikipedia.org/wiki/List_of_web_application_frameworks#PHP
I've been using Qcodo (http://www.qcodo.com) for a recent web app and am
impressed at how quickly I've been able to develop with it. For
JavaScript/CSS, I've also been using Yahoo User Interface (YUI) components
which I'm also really impressed with: http://developer.yahoo.com/yui/
The thing with frameworks and libraries is that everyone will have their
favourite for one reason or another. You just have to find the one you feel
most comfortable with.
Hope that helps,
Edward
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
On 5/9/07, bruce <bedouglas
earthlink.net> wrote:
> from my reading.. i thought yahoo's user interface (yui) components where
> for interfacing with yahoo.... am i missing something here??
Yes. :)
The Yahoo! User Interface (YUI) Library is a set of utilities and
controls, written in JavaScript, for building richly interactive web
applications using techniques such as DOM scripting, DHTML and AJAX.
http://developer.yahoo.com/yui/
--
Greg Donald
http://destiney.com/
attached mail follows:
I´ve been using the YUI library and, specifically for AJAX, the Connection
Manager (http://developer.yahoo.com/yui/connection/), but also many of the
other components in YUI.
I find that some of the frameworks are a little heavy, covering both the
JavaScript side and the PHP server side. In some you deal with the PHP side
and in some misterious way JavaScript gets sent to the client, but they are
too obscure for my taste, I prefer to know what goes on.
YUI coupled with Firefox with the FireBug debugger plugin is a great
combination and on the server side you are quite free to do and use whatever
you want. And don't miss the videos of the presentations of Douglas
Crockford on JavaScrit and the DOM.
Satyam
----- Original Message -----
From: "Emil Edeholt" <emil
knmedical.se>
To: <php-general
lists.php.net>
Sent: Wednesday, May 09, 2007 5:04 PM
Subject: [PHP] Ajax?
> Hi!
>
> What do you guys use to develop ajax applications and do you have any good
> articles on the subject?
>
> I've just about finished an ajaxish site but it wasn't fun. A lot of
> nesting javascript inside php calls, having to write the logic both in
> javascript and php and so on. The source looks ugly and was time consuming
> to debug.
>
> Thanks!
>
> Kind regards Emil
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition. Version: 7.5.467 / Virus Database:
> 269.6.6/794 - Release Date: 08/05/2007 14:23
>
>
attached mail follows:
Greg Donald escribió:
> On 5/9/07, bruce <bedouglas
earthlink.net> wrote:
>> from my reading.. i thought yahoo's user interface (yui) components where
>> for interfacing with yahoo.... am i missing something here??
>
> Yes. :)
>
> The Yahoo! User Interface (YUI) Library is a set of utilities and
> controls, written in JavaScript, for building richly interactive web
> applications using techniques such as DOM scripting, DHTML and AJAX.
>
> http://developer.yahoo.com/yui/
Prototype is very good too.
http://www.prototypejs.org/
Combined with Rico you can do very interesting things:
http://www.openrico.org/
--
select 'mmarques' || '
' || 'unl.edu.ar' AS email;
---------------------------------------------------------
Martín Marqués | Programador, DBA
Centro de Telemática | Administrador
Universidad Nacional
del Litoral
---------------------------------------------------------
attached mail follows:
hey greg!
thanks for the update... have to have my guys check it out..
to be honest, i'm not sure where i got the impression that the yui was for
yahoo!!!
thanks mukch!
-----Original Message-----
From: Greg Donald [mailto:gdonald
gmail.com]
Sent: Wednesday, May 09, 2007 9:28 AM
To: php-general
lists.php.net
Subject: Re: [PHP] Ajax?
On 5/9/07, bruce <bedouglas
earthlink.net> wrote:
> from my reading.. i thought yahoo's user interface (yui) components where
> for interfacing with yahoo.... am i missing something here??
Yes. :)
The Yahoo! User Interface (YUI) Library is a set of utilities and
controls, written in JavaScript, for building richly interactive web
applications using techniques such as DOM scripting, DHTML and AJAX.
http://developer.yahoo.com/yui/
--
Greg Donald
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
On Wednesday 09 May 2007 18:04, Emil Edeholt wrote:
> Hi!
>
> What do you guys use to develop ajax applications and do you have any
> good articles on the subject?
>
> I've just about finished an ajaxish site but it wasn't fun. A lot of
> nesting javascript inside php calls, having to write the logic both in
> javascript and php and so on. The source looks ugly and was time
> consuming to debug.
>
> Thanks!
>
> Kind regards Emil
Hi,
I'm using xajax www.xajaxproject.org
It was stable and too easy to usage. If your english good enough you can do
someting in 15 mins...
Regards
Sancar
attached mail follows:
You can see some examples here : http://www.php-code-search.com/?q=ajax
In most of my AJAX development I use : http://script.aculo.us/
berber
-----Original Message-----
From: Emil Edeholt [mailto:emil
knmedical.se]
Sent: Wednesday, May 09, 2007 5:05 PM
To: php-general
lists.php.net
Subject: [PHP] Ajax?
Hi!
What do you guys use to develop ajax applications and do you have any good
articles on the subject?
I've just about finished an ajaxish site but it wasn't fun. A lot of nesting
javascript inside php calls, having to write the logic both in javascript
and php and so on. The source looks ugly and was time consuming to debug.
Thanks!
Kind regards Emil
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
attached mail follows:
On May 9, 2007, at 8:04 AM, Emil Edeholt wrote:
> Hi!
>
> What do you guys use to develop ajax applications and do you have any
> good articles on the subject?
>
> I've just about finished an ajaxish site but it wasn't fun. A lot of
> nesting javascript inside php calls, having to write the logic both in
> javascript and php and so on. The source looks ugly and was time
> consuming to debug.
>
> Thanks!
>
>
Anything involving javascript development has several built in
debugging facilities
1: Alert dialogs: You may find it a chore to learn how to use them
effectively. But
the current content of any variable can be displayed with an alert
dialog. You
have to pay attention to how strings are concatenated; with +, The
actual
variable name cannot be quoted.
2: Browser error reporting, in Netscape species, javascript console.
Take a hint,
all source code text should be formated for Unix/Linux ( line feed
line endings)
If you do scripting on a Classic Mac OS <= OS9, the line endings
are carriage;
and Windows uses both carriage return and line feed.
return. You will drive your self crazy cussing the console because
it will not refer
to lines containing syntax errors, but some disrelated lines.
3. View source window in browser to see exactly what the browser is
getting on
page load.
4. Forms: I have coded special forms just for the sake of development
and debug
of javascript apps. All globals are visible through out the script,
WITH THE EXCEPTION
OF SOME THAT ARE DEFINED IN SOURCED JS FILES; Opening a javascript
window is
in a function does not seem to register if the function is in a
sourced file.
5. Patience, patience, patience, some masochism, Several large
available paper back
text books. No one will describe all you might need to know about
issues like rollovers,
DHTML, etc, Imagination and ingenuity, or the will to search and
sift through others
source code until you find what you are looking for, and then making
it work for you.
That's it, I have some suggestion that there are systems available
for javascript but I
have done without long enough to have my methods and approaches.
One more thing, php and javascript work very well together. I have even
written a
function to display php variable values as javascript alert dialogs. It
will not function
as break points for php like it does with javascript, but at least you
do not have to
decipher php error smeared all over the screen.
And Ajax, even though I have not cracked that particular aspect of
javascript as yet,
looks very worthwhile.
Jeff K
attached mail follows:
AJAX Developer (Web Designer / Developer). MUST HAVE: 1 year AJAX
Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at lease
an IDE like Photoshop, Dreamweaver, Eclipse or similar. Jersey City,
NJ, 6 months ongoing. $560/day C2C.
_________________________________
Efrain Sarmiento
Technical Recruiter
MISI company
p: 212.355.5585 x332
f: 212.751.5964
c: 917.365.5656
esarmiento
misicompany.com
Informed Usability | Innovative Solutions | Reliable Sourcing
www.misicompany.com <http://www.misicompany.com/>
_________________________________
The information contained in this message is sent in the strictest
confidence for the addressee only. It is intended only for the use of
the addressee and may contain legally
privileged/confidential/proprietary information. If you have received
this email in error you are requested to preserve its confidentiality
and advise the sender.
attached mail follows:
Efrain Sarmiento wrote:
> AJAX Developer (Web Designer / Developer). MUST HAVE: 1 year AJAX
> Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at lease
> an IDE like Photoshop, Dreamweaver, Eclipse or similar. Jersey City,
> NJ, 6 months ongoing. $560/day C2C.
Hands up everyone who uses the Photoshop IDE...
-Stut
attached mail follows:
Em Quarta 09 Maio 2007 12:12, Stut escreveu:
> Efrain Sarmiento wrote:
> > AJAX Developer (Web Designer / Developer). MUST HAVE: 1 year AJAX
> > Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at lease
> > an IDE like Photoshop, Dreamweaver, Eclipse or similar. Jersey City,
> > NJ, 6 months ongoing. $560/day C2C.
>
> Hands up everyone who uses the Photoshop IDE...
>
=P
_o/
hehehe
How can I do an while loop in Photoshop CS 3?? =]
Using the pen tool? On which layer?
thanks! =]
--
Davi Vidal
davividal
siscompar.com.br
davividal
gmail.com
--
"Religion, ideology, resources, land,
spite, love or "just because"...
No matter how pathetic the reason,
it's enough to start a war. "
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQBGQeXc33UYOg0uzToRAqvKAJwM8teepwInrzbdwSpd1uNMNOAjXwCeIPN7
yBw9rA7m5ParawjPr2M/mII=
=FNSA
-----END PGP SIGNATURE-----
attached mail follows:
On May 9, 2007, at 10:12 AM, Stut wrote:
> Efrain Sarmiento wrote:
>> AJAX Developer (Web Designer / Developer). MUST HAVE: 1 year AJAX
>> Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at
>> lease
>> an IDE like Photoshop, Dreamweaver, Eclipse or similar. Jersey City,
>> NJ, 6 months ongoing. $560/day C2C.
>
> Hands up everyone who uses the Photoshop IDE...
>
Ohh! That's in CS3 right?!? Cool! I've gotta get me one of those!
Ed
attached mail follows:
On Wed, 2007-05-09 at 10:23 -0500, Edward Vermillion wrote:
> On May 9, 2007, at 10:12 AM, Stut wrote:
>
> > Efrain Sarmiento wrote:
> >> AJAX Developer (Web Designer / Developer). MUST HAVE: 1 year AJAX
> >> Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at
> >> lease
> >> an IDE like Photoshop, Dreamweaver, Eclipse or similar. Jersey City,
> >> NJ, 6 months ongoing. $560/day C2C.
> >
> > Hands up everyone who uses the Photoshop IDE...
> >
>
> Ohh! That's in CS3 right?!? Cool! I've gotta get me one of those!
I'm much more partial to the Gimp IDE :)
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
attached mail follows:
Em Quarta 09 Maio 2007 12:41, Robert Cummings escreveu:
> On Wed, 2007-05-09 at 10:23 -0500, Edward Vermillion wrote:
> > On May 9, 2007, at 10:12 AM, Stut wrote:
> > > Efrain Sarmiento wrote:
> > >> AJAX Developer (Web Designer / Developer). MUST HAVE: 1 year AJAX
> > >> Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at
> > >> lease
> > >> an IDE like Photoshop, Dreamweaver, Eclipse or similar. Jersey City,
> > >> NJ, 6 months ongoing. $560/day C2C.
> > >
> > > Hands up everyone who uses the Photoshop IDE...
> >
> > Ohh! That's in CS3 right?!? Cool! I've gotta get me one of those!
>
> I'm much more partial to the Gimp IDE :)
>
MS Paint or Xpaint sounds little better to me... =]
--
Davi Vidal
davividal
siscompar.com.br
davividal
gmail.com
--
"Religion, ideology, resources, land,
spite, love or "just because"...
No matter how pathetic the reason,
it's enough to start a war. "
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQBGQexq33UYOg0uzToRAoE7AKCLHq/DKKaXZZhUGFR5aQ4qhDSoGACg27C6
jNhicQTCio8Tg/4aMnGyb/c=
=GE+3
-----END PGP SIGNATURE-----
attached mail follows:
> -----Original Message-----
> From: Robert Cummings [mailto:robert
interjinn.com]
> On Wed, 2007-05-09 at 10:23 -0500, Edward Vermillion wrote:
> > On May 9, 2007, at 10:12 AM, Stut wrote:
> >
> > > Efrain Sarmiento wrote:
> > >> AJAX Developer (Web Designer / Developer). MUST HAVE: 1 year AJAX
> > >> Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at
> > >> lease
> > >> an IDE like Photoshop, Dreamweaver, Eclipse or similar. Jersey City,
> > >> NJ, 6 months ongoing. $560/day C2C.
> > >
> > > Hands up everyone who uses the Photoshop IDE...
> > >
> >
> > Ohh! That's in CS3 right?!? Cool! I've gotta get me one of those!
>
> I'm much more partial to the Gimp IDE :)
>
Ah, but can you code JAVASCRIRPT in the Gimp IDE? ;)
I'm not sure why the job requires you to lease the IDE though - Photoshop is
a bit pricey, but it's not that bad!
E
attached mail follows:
On May 9, 2007, at 10:41 AM, Robert Cummings wrote:
> On Wed, 2007-05-09 at 10:23 -0500, Edward Vermillion wrote:
>> On May 9, 2007, at 10:12 AM, Stut wrote:
>>
>>> Efrain Sarmiento wrote:
>>>> AJAX Developer (Web Designer / Developer). MUST HAVE: 1 year
>>>> AJAX
>>>> Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at
>>>> lease
>>>> an IDE like Photoshop, Dreamweaver, Eclipse or similar. Jersey
>>>> City,
>>>> NJ, 6 months ongoing. $560/day C2C.
>>>
>>> Hands up everyone who uses the Photoshop IDE...
>>>
>>
>> Ohh! That's in CS3 right?!? Cool! I've gotta get me one of those!
>
> I'm much more partial to the Gimp IDE :)
>
Do I need to update to RH5.2 to get that? I don't see it in my 5.0
distribution....
Ed
attached mail follows:
On 5/9/07, Edward Kay <edward
labhut.com> wrote:
>
>
> Ah, but can you code JAVASCRIRPT in the Gimp IDE? ;)
Is JAVASCRIRPT another of those Web 2.0 languages? ;-P
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
attached mail follows:
On Wed, May 9, 2007 10:09 am, Efrain Sarmiento wrote:
> AJAX Developer (Web Designer / Developer). MUST HAVE: 1 year AJAX
> Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at
> lease
> an IDE like Photoshop, Dreamweaver, Eclipse or similar. Jersey City,
> NJ, 6 months ongoing. $560/day C2C.
Photoshop as an IDE?
That must be pretty interesting... :-)
Where's the PHP?
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
attached mail follows:
On Wed, May 9, 2007 10:12 am, Stut wrote:
> Efrain Sarmiento wrote:
>> AJAX Developer (Web Designer / Developer). MUST HAVE: 1 year AJAX
>> Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at
>> lease
>> an IDE like Photoshop, Dreamweaver, Eclipse or similar. Jersey
>> City,
>> NJ, 6 months ongoing. $560/day C2C.
>
> Hands up everyone who uses the Photoshop IDE...
I switch to GIMP IDE ages ago.
All the same features, albeit under different menus, but OpenSource
and Free and runs on my OSes of choice.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
attached mail follows:
Can someone clarify that for me...I got that directly off job
description from Lehman. Thanks
_________________________________
Efrain Sarmiento
Technical Recruiter
MISI company
p: 212.355.5585 x332
f: 212.751.5964
c: 917.365.5656
esarmiento
misicompany.com
Informed Usability | Innovative Solutions | Reliable Sourcing
www.misicompany.com
_________________________________
The information contained in this message is sent in the strictest
confidence for the addressee only. It is intended only for the use of
the addressee and may contain legally
privileged/confidential/proprietary information. If you have received
this email in error you are requested to preserve its confidentiality
and advise the sender.
-----Original Message-----
From: Richard Lynch [mailto:ceo
l-i-e.com]
Sent: Wednesday, May 09, 2007 1:56 PM
To: Efrain Sarmiento
Cc: php-general
lists.php.net
Subject: Re: [PHP] Ajax Developer
On Wed, May 9, 2007 10:09 am, Efrain Sarmiento wrote:
> AJAX Developer (Web Designer / Developer). MUST HAVE: 1 year AJAX
> Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at
> lease an IDE like Photoshop, Dreamweaver, Eclipse or similar. Jersey
> City, NJ, 6 months ongoing. $560/day C2C.
Photoshop as an IDE?
That must be pretty interesting... :-)
Where's the PHP?
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
attached mail follows:
On Wed, May 9, 2007 10:54 am, Daniel Brown wrote:
> On 5/9/07, Edward Kay <edward
labhut.com> wrote:
>> Ah, but can you code JAVASCRIRPT in the Gimp IDE? ;)
>
>
> Is JAVASCRIRPT another of those Web 2.0 languages? ;-P
No, but here's a Tip:
If you spell it that way, the code you write just plain doesn't run,
and nothing tells you what went wrong.
*THAT* particular typo only wasted a half-day for me a couple weeks ago.
Sigh.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
attached mail follows:
Is it just me, or does it seem like everyone things AJAX is some sort of
PHP extension or "new way of programming in PHP"?
The name alone more or less says otherwise.... AJAX is supposed to be
Asynchronous JavaScript And XML, right?
Or am I just talking out of my ass again? I seem to be doing that a lot
today for some reason....
On 5/9/07, Richard Lynch <ceo
l-i-e.com> wrote:
>
> On Wed, May 9, 2007 10:09 am, Efrain Sarmiento wrote:
> > AJAX Developer (Web Designer / Developer). MUST HAVE: 1 year AJAX
> > Experience, HTML, CSS, DHTML, OOJS, XML, JAVASCRIRPT, J2EE, and at
> > lease
> > an IDE like Photoshop, Dreamweaver, Eclipse or similar. Jersey City,
> > NJ, 6 months ongoing. $560/day C2C.
>
> Photoshop as an IDE?
>
> That must be pretty interesting... :-)
>
> Where's the PHP?
>
> --
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some indie artist.
> http://cdbaby.com/browse/from/lynch
> Yeah, I get a buck. So?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
attached mail follows:
On 5/9/07, Richard Lynch <ceo
l-i-e.com> wrote:
>
> On Wed, May 9, 2007 10:54 am, Daniel Brown wrote:
> > Is JAVASCRIRPT another of those Web 2.0 languages? ;-P
>
> No, but here's a Tip:
>
> If you spell it that way, the code you write just plain doesn't run,
> and nothing tells you what went wrong.
>
> *THAT* particular typo only wasted a half-day for me a couple weeks ago.
>
> Sigh.
>
The same basic thing happened to me when I was working on an interface
to the PayPal NVP API for their Website Payments Pro setup yesterday. It
took me almost four hours of debugging with no error return to realize I had
an ending slash on a non-directory URI (it was an "extensionless" file).
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
attached mail follows:
On Wed, May 9, 2007 10:54 am, Edward Vermillion wrote:
>> I'm much more partial to the Gimp IDE :)
>>
>
> Do I need to update to RH5.2 to get that? I don't see it in my 5.0
> distribution....
I thought *I* was way behind with my RH 7 main desktop/dev/production
box. [Don't ask why it is all three of those at once...]
Though, I guess, now that the network card conked out (afaict) it's
not a production server anymore. Oh well.
I don't think I'll ever really grok /sbin/route -n output, but it
looks just like the one that's working, and it's still not working,
and I can swap cat5 cables and the other one works, so I guess it
almost has to be the network card just up and died... Right???
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
attached mail follows:
On Wed, May 9, 2007 12:58 pm, Efrain Sarmiento wrote:
> Can someone clarify that for me...I got that directly off job
> description from Lehman. Thanks
Dude, it's kind of your JOB to know these things, and if you don't
know them, you can use Google to find out...
Asking a few thousand PHP Developers to explain what Photoshop is, and
isn't, to you...
Well, it's kind of like walking into a crowded barber shop and asking
what a carbeurator is...
Don't be surprised if the answers you get are 100% wrong, or jokes, or
both at once.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
attached mail follows:
On Wednesday 09 May 2007 21:03, Richard Lynch wrote:
> On Wed, May 9, 2007 10:54 am, Edward Vermillion wrote:
> >> I'm much more partial to the Gimp IDE :)
> >
> > Do I need to update to RH5.2 to get that? I don't see it in my 5.0
> > distribution....
>
> I thought *I* was way behind with my RH 7 main desktop/dev/production
> box. [Don't ask why it is all three of those at once...]
>
> Though, I guess, now that the network card conked out (afaict) it's
> not a production server anymore. Oh well.
>
> I don't think I'll ever really grok /sbin/route -n output, but it
> looks just like the one that's working, and it's still not working,
> and I can swap cat5 cables and the other one works, so I guess it
> almost has to be the network card just up and died... Right???
Cat 5 ?
Red Hat 5.0 ?
Noobs...
attached mail follows:
On Wed, 2007-05-09 at 13:03 -0500, Richard Lynch wrote:
> On Wed, May 9, 2007 10:54 am, Edward Vermillion wrote:
> >> I'm much more partial to the Gimp IDE :)
> >>
> >
> > Do I need to update to RH5.2 to get that? I don't see it in my 5.0
> > distribution....
>
> I thought *I* was way behind with my RH 7 main desktop/dev/production
> box. [Don't ask why it is all three of those at once...]
I've got 7 running in vmware :)
I use it to build PHP, MySQL, and Apache (and various other nick knacks)
for a customer's server.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
attached mail follows:
Ford, Mike writes:
>> > You can also set up php.ini and use the built-in sessions with
>> > http://php.net/session_start so that PHP will take care of this for
>> > you.
>>
>> That is what I was intending to do. How do I find out if
>> whether or not the session cookie was accepted using the
>> built-in sessions? I found no function for such a test.
>
> Check the SID constant after you've done session_start(). If it has an
> empty value, the session is using cookies; otherwise, it'll have a value
> of the form 'sessionname=sessionid', which is what is appended to the
> URL (or inserted in forms as a hidden value) to propagate the
> session-id.
Interesting idea.
This brings up a question. In order to decide whether to use cookies
or SID the built-in sessions must be testing to see if the user's
browser will accept the session cookies. How do they do that?
If they do it by the "2 page", send a cookie and see if it comes
back to the second page method we have been talking about, then
somehow, they are sureptiously inserting a forward to a non-
existant page! Right? How do they do that?
Best,
Craig
------------------------------------------------------
- Virtual Phonecards - Instant Pin by Email -
- Large Selection - Great Rates -
- http://speedypin.com/?aff=743&co_branded=1 -
------------------------------------------------------
**************************************
* *
* Craig Spencer *
* ccspencer
SoftHome.net *
* *
**************************************
attached mail follows:
On Wed, May 9, 2007 10:36 am, ccspencer
softhome.net wrote:
> This brings up a question. In order to decide whether to use cookies
> or SID the built-in sessions must be testing to see if the user's
> browser will accept the session cookies. How do they do that?
The same way you would do it.
Actually, they might have just used:
$cookie_name = session_name();
if (isset($_COOKIE[$cookie_name])){
$session_id = $_COOKIE[$cookie_name];
}
elseif (isset($_REQUEST[$cookie_name])){
$session_id = $_REQUEST[$cookie_name];
}
else{
$session_id = uniquid();
}
> If they do it by the "2 page", send a cookie and see if it comes
> back to the second page method we have been talking about, then
> somehow, they are sureptiously inserting a forward to a non-
> existant page! Right? How do they do that?
No, that's not how it works.
JUST send the dang cookie on every page.
And check if it's there on every page.
And whatever first page the user gets to, with no cookie, be sure you
send them suitable content for having no cookie.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.