|
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 11 Apr 2006 17:10:14 -0000 Issue 4066
php-general-digest-help
lists.php.net
Date: Tue Apr 11 2006 - 12:10:14 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 11 Apr 2006 17:10:14 -0000 Issue 4066
Topics (messages 233739 through 233775):
Need MySql Help Please
233739 by: marvin hunkin
233741 by: Joe Wollard
233763 by: John Nichel
Re: flash file to recognize SESSION or REQUEST variables?
233740 by: Dan Harrington
I am not able to download domxml for PHP5
233742 by: Oz
233743 by: Joe Wollard
233744 by: Joe Wollard
233745 by: Oz
233746 by: Rob Richards
Re: how to assign a value to a variable inside a class
233747 by: Merlin
233748 by: chris smith
233751 by: Merlin
233752 by: chris smith
233753 by: Merlin
233754 by: Brad Bonkoski
233756 by: Jarratt Ingram
233761 by: Eduardo Raúl Galván Sánchez
Re: simpleXML - simplexml_load_file() timeout? [Resolved]
233749 by: darren kirby
XML & its elements
233750 by: Mohsen Pahlevanzadeh
233757 by: Jay Blanchard
Re: PHP and CakePHP: How to use the $html->selectTag()
233755 by: Miles Thompson
OT - PHP Webhost Dedicated Server
233758 by: Suhas
233759 by: Jay Blanchard
233760 by: Thomas Munz
a better way to transfer data?
233762 by: blackwater dev
PHP Programmer Opportunity
233764 by: Zahra Husain
user authentication
233765 by: Alain Roger
233766 by: Jim Moseby
233767 by: Jay Blanchard
233771 by: Alain Roger
Strange problem after getting data from the DB
233768 by: Ryan A
233770 by: Jay Blanchard
Re: function by reference
233769 by: tedd
Re: php with ajax - uploading pictures
233772 by: tedd
jblanchard
pocket.com
233773 by: Ryan A
MS SQL extension not loading
233774 by: Laszlo Nagy
Re: simpleXML - simplexml_load_file() timeout?
233775 by: tedd
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:
Hi.
any mysql gurus out there using a tool called EasyPHP 1-8?
i am using a my sql tutorial, and says needs the command line interface, so
can run my sql commands from the dos prompt.
have got the PHP MYSQL ADMIM to load into the easy php 1-8, gui interface.
and when i type http://localhost/mysql/ it loads the browser, but would like
the command line interface for version 5.0 of the my sql databaser admin
server.
now if any good soul, who uses my sql, or my sql admin, or easy php, can
show me how to set up the command line interface for Easy Php 1-8, then let
me know.
have tried looking on the net, and looking in the documentation, and
folders, but cannot seem to set it up.
okay if any one can help me out, let me know.
cheers Marvin.
ps: need this info, as doing the tutorial towards the database assignment
for my course.
attached mail follows:
Marvin,
As much as we try to keep this list PHP-only I think it's hard to
ignore the ties between PHP and MySQL. Most of us learned both
technologies simultaneously. Still, you may want to put [OT] on your
future email subjects to indicate that the question is 'off topic'.
On the matter of MySQL's command line: From what I can see on
http://dev.mysql.com/downloads/mysql/5.0.html it looks like when you
download the Windows binaries you don't get the option of just
downloading the client or just downloading the server - you are
downloading both (someone correct me if I'm wrong) in the 'essentials'
package. I'd imagine that when you run the installer it gives you an
option to install the server / client packages. As long as you told
the installer to give you the server and client both then you should
be in good shape. All you should need to do is make sure that A) the
MySQL binary (probably C:\Program Files\MySQL\MySQL Server
5.0\bin\mysql) is in your PATH environment variable and that B) the
server is running (which from the sounds of things, it is). If it's in
your path you should be able to start the client shell by simply
typing "mysql -u marvin -p" or similar.
You also might check out MySQL's documentation on running MySQL from
the command line in Windows
http://dev.mysql.com/doc/refman/5.0/en/windows-start-command-line.html
Good luck!
- Joe
On 4/11/06, marvin hunkin <marvkin
hotmail.com> wrote:
> Hi.
> any mysql gurus out there using a tool called EasyPHP 1-8?
> i am using a my sql tutorial, and says needs the command line interface, so
> can run my sql commands from the dos prompt.
> have got the PHP MYSQL ADMIM to load into the easy php 1-8, gui interface.
> and when i type http://localhost/mysql/ it loads the browser, but would like
> the command line interface for version 5.0 of the my sql databaser admin
> server.
> now if any good soul, who uses my sql, or my sql admin, or easy php, can
> show me how to set up the command line interface for Easy Php 1-8, then let
> me know.
> have tried looking on the net, and looking in the documentation, and
> folders, but cannot seem to set it up.
> okay if any one can help me out, let me know.
> cheers Marvin.
> ps: need this info, as doing the tutorial towards the database assignment
> for my course.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
marvin hunkin wrote:
> Hi.
> any mysql gurus out there using a tool called EasyPHP 1-8?
Probably not.
> i am using a my sql tutorial, and says needs the command line interface,
> so can run my sql commands from the dos prompt.
> have got the PHP MYSQL ADMIM to load into the easy php 1-8, gui interface.
> and when i type http://localhost/mysql/ it loads the browser, but would
> like the command line interface for version 5.0 of the my sql databaser
> admin server.
> now if any good soul, who uses my sql, or my sql admin, or easy php, can
> show me how to set up the command line interface for Easy Php 1-8, then
> let me know.
How about asking the people at "EasyPHP 1-8"?
> have tried looking on the net, and looking in the documentation, and
> folders, but cannot seem to set it up.
> okay if any one can help me out, let me know.
> cheers Marvin.
> ps: need this info, as doing the tutorial towards the database
> assignment for my course.
>
Homework???
You did notice that this is a php list, for questions about php, right?
Two doors down on your right is the MySQL list.
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
jnichel
dotcomholdingsofbuffalo.com
attached mail follows:
You are either asking one of two things, and I am not sure which:
A) How to send information using GET or POST out from flash to a script file
SendAndLoad is the flash function
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/h
tml/wwhelp.htm?context=Flash_MX_2004&file=00001419.html
B) How to get Flash to load variables passed to it via HTTP GET?
Flash automatically loads these variables into the _root timeline
So
http://foo.bar.com/someflashfile.swf?variable1=joy
You would have _root.variable1 and the value in that variable would be "joy"
Hope this helps....and sorry if I misunderstood your question.
Dan
-----Original Message-----
From: Sunnrunner [mailto:sunnrunner
gmail.com]
Sent: Monday, April 10, 2006 10:47 PM
To: php-general
lists.php.net
Subject: [PHP] flash file to recognize SESSION or REQUEST variables?
A client asked me this question. Does anyone know what it means or can
someone explain and give me an answer.
Thanks. T
How can we get the link in the URL of the flash file to recognize SESSION or
REQUEST variables? You know like GET or POST? I need to do something like.
url =
"https://secure.store.com/HousewivesUnleashed.306/buy.cfm?p=1000141&m=306&dc
wid=$_REQUEST['aid']&udfo2=$_REQUEST['sid']";
as opposed to what we currently have.
url = "https://secure.
store.com/HousewivesUnleashed.306/buy.cfm?p=1000141&m=306";
Thoughts?
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
attached mail follows:
Please help, I am not able to download domxml for PHP5
I have tried this location,
http://us3.php.net/manual/en/ref.domxml.php
I get a message file not found.
is there a mirror site.
Thanks
Please also mail response to
ozdror
adelphia.net
attached mail follows:
Oz,
From your command line, try:
pecl install domxml
You'll need to be root to do so, but as long as you have PECL/PEAR
installed this should give you domxml. Remember to restart your web
server after doing so.
- Joe
On 4/11/06, Oz <ozdror
adelphia.net> wrote:
> Please help, I am not able to download domxml for PHP5
> I have tried this location,
> http://us3.php.net/manual/en/ref.domxml.php
>
> I get a message file not found.
>
> is there a mirror site.
>
> Thanks
>
> Please also mail response to
> ozdror
adelphia.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Of course you said you're running PHP5....so that won't work.
According to the site it would be best for you to use the DOM that
comes pre compiled with PHP. http://us3.php.net/manual/en/ref.dom.php
Sorry about the mix up on my part.
On 4/11/06, Joe Wollard <joe.wollard
gmail.com> wrote:
> Oz,
>
> From your command line, try:
>
> pecl install domxml
>
> You'll need to be root to do so, but as long as you have PECL/PEAR
> installed this should give you domxml. Remember to restart your web
> server after doing so.
>
> - Joe
>
>
> On 4/11/06, Oz <ozdror
adelphia.net> wrote:
> > Please help, I am not able to download domxml for PHP5
> > I have tried this location,
> > http://us3.php.net/manual/en/ref.domxml.php
> >
> > I get a message file not found.
> >
> > is there a mirror site.
> >
> > Thanks
> >
> > Please also mail response to
> > ozdror
adelphia.net
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
attached mail follows:
For some reason my PHP5 does not have DOM. ( I have the version that
comes with fedora core 5). Is there a way to activate it.
-thanks
Oz
Joe Wollard wrote:
> Of course you said you're running PHP5....so that won't work.
> According to the site it would be best for you to use the DOM that
> comes pre compiled with PHP. http://us3.php.net/manual/en/ref.dom.php
>
> Sorry about the mix up on my part.
>
>
> On 4/11/06, Joe Wollard <joe.wollard
gmail.com> wrote:
>> Oz,
>>
>> From your command line, try:
>>
>> pecl install domxml
>>
>> You'll need to be root to do so, but as long as you have PECL/PEAR
>> installed this should give you domxml. Remember to restart your web
>> server after doing so.
>>
>> - Joe
>>
>>
>> On 4/11/06, Oz <ozdror
adelphia.net> wrote:
>>> Please help, I am not able to download domxml for PHP5
>>> I have tried this location,
>>> http://us3.php.net/manual/en/ref.domxml.php
>>>
>>> I get a message file not found.
>>>
>>> is there a mirror site.
>>>
>>> Thanks
>>>
>>> Please also mail response to
>>> ozdror
adelphia.net
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
attached mail follows:
Oz wrote:
> For some reason my PHP5 does not have DOM. ( I have the version that
> comes with fedora core 5). Is there a way to activate it.
>
> -thanks
> Oz
You need to install the php-xml rpm to get the xml extensions (dom, xsl,
xmlwriter and xmlreader).
Rob
attached mail follows:
Hi there,
no much simpler. I do not need to assign the value from outside the class. This
is just inside the class. I have the login data for a database saved in a file
and would like to use simply the variable $DB_login inside this class.
This does not work:
$this->db_username = $DB_login;
Any idas on how to do this?
Thanx a million,
Merlin
Brad Bonkoski schrieb:
> How about this:
>
> class foo {
> var $name;
>
> function setName($value) {
> $this->name = $value;
> }
> }
>
> -B
>
> Merlin wrote:
>
>>
>> Hi there,
>>
>> I would like to assign a value inside a class like this:
>>
>> var $db_username = $old_name;
>>
>> Unfortunatelly this does not work and I do get following error:
>> Parse error: syntax error, unexpected T_VARIABLE, expecting
>> T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'
>>
>> Thank you for any hint on how to place a correct syntax on this.
>>
>> Merlin
>>
attached mail follows:
On 4/11/06, Merlin <news.groups
web.de> wrote:
> Hi there,
>
> no much simpler. I do not need to assign the value from outside the class. This
> is just inside the class. I have the login data for a database saved in a file
> and would like to use simply the variable $DB_login inside this class.
>
> This does not work:
>
> $this->db_username = $DB_login;
That's the right way to do it.
What are you seeing?
--
Postgresql & php tutorials
http://www.designmagick.com/
attached mail follows:
chris smith schrieb:
> On 4/11/06, Merlin <news.groups
web.de> wrote:
>> Hi there,
>>
>> no much simpler. I do not need to assign the value from outside the class. This
>> is just inside the class. I have the login data for a database saved in a file
>> and would like to use simply the variable $DB_login inside this class.
>>
>> This does not work:
>>
>> $this->db_username = $DB_login;
>
> That's the right way to do it.
>
> What are you seeing?
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
The following code:
class search_helper extends AjaxACApplication
{
var $db_username;
$this->db_username = $DB_LOGIN;
...does bring following error message:
Parse error: syntax error, unexpected T_VARIABLE, expecting T_OLD_FUNCTION or
T_FUNCTION or T_VAR or '}' in file.inc on line 39
Line 39 is the one with $this
Any suggestions?
attached mail follows:
On 4/11/06, Merlin <news.groups
web.de> wrote:
> chris smith schrieb:
> > On 4/11/06, Merlin <news.groups
web.de> wrote:
> >> Hi there,
> >>
> >> no much simpler. I do not need to assign the value from outside the class. This
> >> is just inside the class. I have the login data for a database saved in a file
> >> and would like to use simply the variable $DB_login inside this class.
> >>
> >> This does not work:
> >>
> >> $this->db_username = $DB_login;
> >
> > That's the right way to do it.
> >
> > What are you seeing?
> >
> > --
> > Postgresql & php tutorials
> > http://www.designmagick.com/
>
> The following code:
> class search_helper extends AjaxACApplication
> {
> var $db_username;
> $this->db_username = $DB_LOGIN;
Try it like this:
class search_helper extends AjaxACApplication
{
var $db_username;
...
function SetDBUsername($db_username) {
$this->db_username = $db_username;
}
If you want to set a default:
var $db_username = 'xxxxxxxx';
--
Postgresql & php tutorials
http://www.designmagick.com/
attached mail follows:
chris smith schrieb:
> On 4/11/06, Merlin <news.groups
web.de> wrote:
>> chris smith schrieb:
>>> On 4/11/06, Merlin <news.groups
web.de> wrote:
>>>> Hi there,
>>>>
>>>> no much simpler. I do not need to assign the value from outside the class. This
>>>> is just inside the class. I have the login data for a database saved in a file
>>>> and would like to use simply the variable $DB_login inside this class.
>>>>
>>>> This does not work:
>>>>
>>>> $this->db_username = $DB_login;
>>> That's the right way to do it.
>>>
>>> What are you seeing?
>>>
>>> --
>>> Postgresql & php tutorials
>>> http://www.designmagick.com/
>> The following code:
>> class search_helper extends AjaxACApplication
>> {
>> var $db_username;
>> $this->db_username = $DB_LOGIN;
>
> Try it like this:
>
> class search_helper extends AjaxACApplication
> {
> var $db_username;
> ...
>
> function SetDBUsername($db_username) {
> $this->db_username = $db_username;
> }
>
>
> If you want to set a default:
>
> var $db_username = 'xxxxxxxx';
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
That looks like to much for just assigning value to a variable?!
I would need 4 of those functions just to set the value of 4 variables to a
value saved inside another variable. If I do understand you right, I would
also have to call that function inside the class to get that value set?:
function SetDBUsername($db_username) {
$this->db_username = $db_username;
}
SetDBUsername();
Is there not something more easy than that. For example $var1 = $var2;
Merlin
attached mail follows:
Merlin wrote:
> chris smith schrieb:
>
>> On 4/11/06, Merlin <news.groups
web.de> wrote:
>>
>>> chris smith schrieb:
>>>
>>>> On 4/11/06, Merlin <news.groups
web.de> wrote:
>>>>
>>>>> Hi there,
>>>>>
>>>>> no much simpler. I do not need to assign the value from outside
>>>>> the class. This
>>>>> is just inside the class. I have the login data for a database
>>>>> saved in a file
>>>>> and would like to use simply the variable $DB_login inside this
>>>>> class.
>>>>>
>>>>> This does not work:
>>>>>
>>>>> $this->db_username = $DB_login;
>>>>
>>>> That's the right way to do it.
>>>>
>>>> What are you seeing?
>>>>
>>>> --
>>>> Postgresql & php tutorials
>>>> http://www.designmagick.com/
>>>
>>> The following code:
>>> class search_helper extends AjaxACApplication
>>> {
>>> var $db_username;
>>> $this->db_username = $DB_LOGIN;
>>
>>
>> Try it like this:
>>
>> class search_helper extends AjaxACApplication
>> {
>> var $db_username;
>> ...
>>
>> function SetDBUsername($db_username) {
>> $this->db_username = $db_username;
>> }
>>
>>
>> If you want to set a default:
>>
>> var $db_username = 'xxxxxxxx';
>>
>> --
>> Postgresql & php tutorials
>> http://www.designmagick.com/
>
>
> That looks like to much for just assigning value to a variable?!
> I would need 4 of those functions just to set the value of 4 variables
> to a value saved inside another variable. If I do understand you
> right, I would
> also have to call that function inside the class to get that value set?:
>
> function SetDBUsername($db_username) {
> $this->db_username = $db_username;
> }
> SetDBUsername();
>
> Is there not something more easy than that. For example $var1 = $var2;
>
> Merlin
>
You're right...
This is the wonders of OOP. Some people see this as nice because only
your class has direct access to set your variables...so inside your
'set' function you can do validation, formatting, etc... to make sure
you are setting the variable to a proper value....
Some people like the control, others think it is too much work with
little gain, this is largely a political issue though, so we won't get
into it too much.
Basically if you want to use classes you have to play by the rules of
OOP. To set and get a member variable within a class you need to define
a function to do so.
-Brad
attached mail follows:
If you are using PHP4, you could always
class foo {
var $var1;
var $var2;
var $var3;
function bar(){
echo $this->var1."<br />";
echo $this->var2."<br />";
echo $this->var3."<br />";
}
}
then in your code
$foo = new foo();
$foo->var1 = 'blah';
$foo->var2 = 'blah';
$foo->var3 = 'blah';
$foo->bar();
Or you could
class foo {
var $var1;
var $var2;
var $var3;
function foo($var1='',$var2='',$var3=''){
$this->var1 = $var1;
$this->var2 = $var2;
$this->var3 = $var3;
}
function bar(){
echo $var1."<br />";
echo $var2."<br />";
echo $var3."<br />";
}
}
$foo = new foo('blah1','blah2','blah3');
$foo->bar();
Note this will have to be written differently in PHP5 and up using public as
var has been depreciated and using __construct instead of class name as the
constructor. The correct way to set variables inside a class from user
space code was mentioned before using a set method as it allows the set
function to perform additional checks like type and so on and control is
kept to the class. This can be tedious as it does add a little more code
but will save you in the long run when incase some developer decides to just
over write one of your variables by accident or not can be difficult to
track down.
HTH
Jarratt
On 4/11/06, Merlin <news.groups
web.de> wrote:
>
> chris smith schrieb:
> > On 4/11/06, Merlin <news.groups
web.de> wrote:
> >> chris smith schrieb:
> >>> On 4/11/06, Merlin <news.groups
web.de> wrote:
> >>>> Hi there,
> >>>>
> >>>> no much simpler. I do not need to assign the value from outside the
> class. This
> >>>> is just inside the class. I have the login data for a database saved
> in a file
> >>>> and would like to use simply the variable $DB_login inside this
> class.
> >>>>
> >>>> This does not work:
> >>>>
> >>>> $this->db_username = $DB_login;
> >>> That's the right way to do it.
> >>>
> >>> What are you seeing?
> >>>
> >>> --
> >>> Postgresql & php tutorials
> >>> http://www.designmagick.com/
> >> The following code:
> >> class search_helper extends AjaxACApplication
> >> {
> >> var $db_username;
> >> $this->db_username = $DB_LOGIN;
> >
> > Try it like this:
> >
> > class search_helper extends AjaxACApplication
> > {
> > var $db_username;
> > ...
> >
> > function SetDBUsername($db_username) {
> > $this->db_username = $db_username;
> > }
> >
> >
> > If you want to set a default:
> >
> > var $db_username = 'xxxxxxxx';
> >
> > --
> > Postgresql & php tutorials
> > http://www.designmagick.com/
>
> That looks like to much for just assigning value to a variable?!
> I would need 4 of those functions just to set the value of 4 variables to
> a
> value saved inside another variable. If I do understand you right, I would
> also have to call that function inside the class to get that value set?:
>
> function SetDBUsername($db_username) {
> $this->db_username = $db_username;
> }
> SetDBUsername();
>
> Is there not something more easy than that. For example $var1 = $var2;
>
> Merlin
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Check the overloading methods (__get and __set) for PHP 5.x:
http://www.php.net/manual/en/language.oop5.overloading.php
Merlin escribió:
>
> Hi there,
>
> I would like to assign a value inside a class like this:
>
> var $db_username = $old_name;
>
> Unfortunatelly this does not work and I do get following error:
> Parse error: syntax error, unexpected T_VARIABLE, expecting
> T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'
>
> Thank you for any hint on how to place a correct syntax on this.
>
> Merlin
attached mail follows:
Just replying to my original post as means of a follow up. I have gone ahead
and used Rasmus' code, he was correct in surmising I was only worried about
an overloaded and slow responding site. It would be very atypical for the
site to be down completely.
While the cache code was very interesting, I think it is a bit overkill
considering the low amount of traffic my site receives. What I have done
instead is to write the feed to a local file upon every update. I think it is
more elegant to have an old feed than to have the terse "Feed unavailable" in
the spot where the headlines should be.
I have tested by setting the timeout to '0' rather than yanking my ethernet
cable and it seems to work well. I just don't have a suitable spare box to
try the ethernet method, and setting the timeout to 0 seems to have the
intended effect anyway.
Again, I just want to thank everybody involved for their time and effort, it
is very much appreciated.
Here is my function now, if anybody is interested:
function getFeed($url) {
$cache_version = $_SERVER['DOCUMENT_ROOT'] . "/cache/" . basename($url);
$rfd = fopen($url, 'r');
stream_set_blocking($rfd,true);
stream_set_timeout($rfd, 5); // 5-second timeout
$data = stream_get_contents($rfd);
$status = stream_get_meta_data($rfd);
fclose($rfd);
if ($status['timed_out']) {
$xml = simplexml_load_file($cache_version);
}
else {
$lfd = fopen($cache_version, 'w');
fwrite($lfd, $data);
fclose($lfd);
$xml = simplexml_load_string($data);
}
print "<ul>\n";
foreach ($xml->channel->item as $item) {
$cleaned = str_replace("&", "&", $item->link);
print "<li><a href='$cleaned'>$item->title</a></li>\n";
}
print "</ul>\n";
}
-d
--
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQBEO3OQwPD5Cr/3CJgRAoFpAJwMA1Q71sAAX0bCkwYqRIQ1VvMwPgCfcEGi
T619FcHRhXk2EJ3whWJDma0=
=GL/N
-----END PGP SIGNATURE-----
attached mail follows:
Dear all,
I need to retrive content of my XML element.my element is translation.
<translation>MY _CONTENT</translation>
Of course i wanna use PHP4 instead 5.
Please help me.....
Yours,Mohsen
attached mail follows:
[snip]
I need to retrive content of my XML element.my element is translation.
<translation>MY _CONTENT</translation>
Of course i wanna use PHP4 instead 5.
[/snip]
http://www.php.net/xml
attached mail follows:
At 11:54 PM 4/10/2006, Pham Huu Le Quoc Phuc wrote:
>Hi everybody!
>I'm a newbie. My question maybe very funny. But please answer to me if you
>have any ideas.
>I use $html->selectTag(), I don't know how to use OnChange.
>When User choose a item on SelectTag, I want Browser to redirect another
>page and get current value.
>
>Thank so much!
Cake is written in PHP, but your question concerns Cake, not PHP.
Have you asked in the Cake-PHP Google group?
http://groups.google.com/group/cake-php
or checked the wiki at the main Cake site?
Please understand, there are so many frameworks and CMS's that those
questions specific to them would choke the list.
Regards - Miles Thompson
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.385 / Virus Database: 268.4.1/307 - Release Date: 4/10/2006
attached mail follows:
Hello,
Any suggestions for Dedicated PHP Webhost.
The current service provider is ok but Customer service is
unsatisfactory. Very bad experience.
Thanks for your help in advance,
SP
attached mail follows:
[snip]
Any suggestions for Dedicated PHP Webhost.
[/snip]
http://www.phpwebhosting.com
attached mail follows:
www.ixwebhosting.com
www.hostexcellence.com
on Tuesday 11 April 2006 15:18, Suhas wrote:
> Hello,
>
> Any suggestions for Dedicated PHP Webhost.
>
> The current service provider is ok but Customer service is
> unsatisfactory. Very bad experience.
>
> Thanks for your help in advance,
>
> SP
attached mail follows:
Hello all,
I am currently running freetds on a linux box that needs to move data from a
remote mssql db to the local mysql db. I wanted to use bcp but freetds
couldn't as the data I am moving contains a blob field. I am currently
using php to select all the rows from the mssql db, and then looping through
the results and putting them into the local mysql db but this is horribly
slow and there has to be a better way.
How can I do this more efficiently?
Thanks!
attached mail follows:
Hello,
Our client has a PHP Porgrammer position I am taking resumes for. Please
kindly call or email me at your earliest convenience. Thanks!
Position: HO # 6150: PHP Programmer
Location: DOVER, NEW JERSEY
Duration: 6 month to year contract
SUMMARY
Responsible for technical development for online and direct (where
applicable) sales applications by performing the following duties:
ESSENTIAL DUTIES AND RESPONSIBILITIES include the following:
Other duties may be assigned.
- Responsible for developing and maintaining all code of applications
from outside development projects excluding database code. Review all
outside code to ensure quality and performance.
- Strictly adheres to departmental methodologies and standards.
- Responsible for proper testing and quality assurance of all
development work before managerial review.
- Monitors new development trends and best practices as provided by
outside industry authorities/associations/companies.
- Perform maintenance on existing sites as well as develop new
applications.
- All other duties as may be assigned by other members of management.
QUALIFICATIONS To perform this job successfully, an individual must be
able to perform each essential duty satisfactorily. The requirements
listed below are representative of the knowledge, skill, and/or ability
required. Reasonable accommodations may be made to enable individuals
with disabilities to perform the essential functions.
EDUCATION and/or EXPERIENCE
Bachelor's degree from four-year college or university and seven to ten
years related experience; or advanced degree and five to ten years
related experience; or equivalent combination of education and
experience.
LANGUAGE SKILLS
Ability to read, analyze, and interpret general business periodicals,
professional journals, technical procedures, or governmental
regulations. Ability to write reports, business correspondence, and
procedure manuals. Ability to effectively present information and
respond to questions from groups of managers, clients, customers, and
the general public.
MATHEMATICAL SKILLS
High ability to calculate figures and amounts such as discounts,
interest, commissions, proportions, percentages and complex algorithms.
Ability to apply concepts of basic algebra and geometry. Ability to
work with mathematical concepts such as probability and statistical
inference. Ability to apply concepts such as fraction, percentages,
ratios, and proportions to practical situations.
REASONING ABILITY
Ability to define problems, collect data, establish facts, and draw
valid conclusions. Ability to interpret an extensive variety of
technical instructions in mathematical or diagram form and deal with
several abstract and concrete variables.
OTHER SKILLS AND ABILITIES
High competency to use a desktop computer and in the following
programming languages/technologies: HTML, CFML, PHP, XML, SQL,
Java/JavaScript code, batch file, apache, UNIX, Lynux. Ability to use
industry standard computing equipment including, but not limited to,
Microsoft Windows, word processing software package(s) (Microsoft Word
98 or higher) and spreadsheet software package(s) (Microsoft Excel).
Graphics packages, such as Adobe PhotoShop, PowerPoint are useful but
not required.
PHYSICAL DEMANDS The physical demands described here are representative
of those that must be met by an employee to successfully perform the
essential functions of this job. Reasonable accommodations may be made
to enable individuals with disabilities to perform the essential
functions.
While performing the duties of this job, the employee is regularly
required to stand; walk; sit; use hands to finger, handle, or feel
objects, tools, or controls; and reach with hands and arms. The
employee is occasionally required to talk or hear.
The employee must occasionally lift and/or move up to 25 pounds.
Specific vision abilities required by this job include close vision,
peripheral vision, depth perception, and the ability to adjust focus.
WORK ENVIRONMENT The work environment characteristics described here
are representative of those an employee encounters while performing the
essential functions of this job. Reasonable accommodations may be made
to enable individuals with disabilities to perform the essential
functions.
The noise level in the work environment is usually moderate.
Thank you,
Zahra Husain
Boden Inc.,One Executive Drive
Suite # 280, Somerset, NJ 08873
Website: www.bodeninc.com <http://www.bodeninc.com>
Email: zahrah
bodeninc.com <mailto:zahrah
bodeninc.com>
Tel: 1-888-247-6070 ext.578
Fax: 1-888-594-9584
attached mail follows:
Hi,
i'm sure that it's a stupid question but i would like to have your feedback
on it.
i have MySQL with 2 users in the "mysql" database which are root and
uimmense.
i suppose that what i see in the password field is the sha1 crypted
password.
is it correct or not ?
but lets continue...
in fact, my web application should use a database named "immense".
in this database, there is a table named "profiles".
in this table, the login "uimmense" and its MD5 password are stored.
the problem is :
when i use mysql_connect('localhost','uimmense',myMD5password); to connect
to MySQL database system, the connection is refused because the MD5 password
does not correspond to what is saved into users table within mysql
database... :-(
here is my question :
all my users registered into my "immense" database, should be also
registered as users of MySQL database system ? (which is stored into "users"
table, into "mysql" database) ?
is it clear ?
i do not see really realistic if everytime that a new user is registered to
my application, i have to create him a profile for MySQL database.
thanks a lot,
Alain
attached mail follows:
> i do not see really realistic if everytime that a new user is
> registered to
> my application, i have to create him a profile for MySQL database.
Is there a reason you need to have each user login into mysql individually?
Most often a single login is used for the script to log into the database,
and all the user authentication is handled at the PHP level.
JM
attached mail follows:
[snip]
i'm sure that it's a stupid question but i would like to have your
feedback
on it.
i have MySQL with 2 users in the "mysql" database which are root and
uimmense.
i suppose that what i see in the password field is the sha1 crypted
password.
is it correct or not ?
but lets continue...
in fact, my web application should use a database named "immense".
in this database, there is a table named "profiles".
in this table, the login "uimmense" and its MD5 password are stored.
the problem is :
when i use mysql_connect('localhost','uimmense',myMD5password); to
connect
to MySQL database system, the connection is refused because the MD5
password
does not correspond to what is saved into users table within mysql
database... :-(
here is my question :
all my users registered into my "immense" database, should be also
registered as users of MySQL database system ? (which is stored into
"users"
table, into "mysql" database) ?
is it clear ?
i do not see really realistic if everytime that a new user is registered
to
my application, i have to create him a profile for MySQL database.
[/snip]
This is more suitable as a MySQL question. Having said that;
If you wish the user to have permissions on the MySQL database then you
must grant them permissions at which time they are added to the MySQL
user's database. Once they are added you must then flush the privileges
so that their permissions take effect. You can do this during
registration by executing these queries if the PHP user has permissions
to perform grants on the database. In all likelihood the PHP user (the
user which the script runs as) does not have permission to perform
grants.
http://www.mysql.com/grant
http://www.mysql.com/flush
attached mail follows:
in fact no.
i can i have 1 MySQL database system profile "uimmense" to connect to
database.
and after via a PHP script to check if my user is registered into MY
database "immense" (checking profile and password).
if it's ok, so query or stored procedure can be executed, if not, connect to
DB is closed..
i was thinking to do such solution but i'm not so sure about security level
:-(
Alain
On 4/11/06, Jay Blanchard <jblanchard
pocket.com> wrote:
>
> [snip]
> i'm sure that it's a stupid question but i would like to have your
> feedback
> on it.
>
> i have MySQL with 2 users in the "mysql" database which are root and
> uimmense.
> i suppose that what i see in the password field is the sha1 crypted
> password.
>
> is it correct or not ?
>
> but lets continue...
> in fact, my web application should use a database named "immense".
> in this database, there is a table named "profiles".
> in this table, the login "uimmense" and its MD5 password are stored.
>
> the problem is :
> when i use mysql_connect('localhost','uimmense',myMD5password); to
> connect
> to MySQL database system, the connection is refused because the MD5
> password
> does not correspond to what is saved into users table within mysql
> database... :-(
>
> here is my question :
> all my users registered into my "immense" database, should be also
> registered as users of MySQL database system ? (which is stored into
> "users"
> table, into "mysql" database) ?
>
> is it clear ?
>
> i do not see really realistic if everytime that a new user is registered
> to
> my application, i have to create him a profile for MySQL database.
> [/snip]
>
> This is more suitable as a MySQL question. Having said that;
>
> If you wish the user to have permissions on the MySQL database then you
> must grant them permissions at which time they are added to the MySQL
> user's database. Once they are added you must then flush the privileges
> so that their permissions take effect. You can do this during
> registration by executing these queries if the PHP user has permissions
> to perform grants on the database. In all likelihood the PHP user (the
> user which the script runs as) does not have permission to perform
> grants.
>
> http://www.mysql.com/grant
> http://www.mysql.com/flush
>
>
attached mail follows:
Hi,
I dont know if this is a bug or something but I am getting some strange
results from what should be a simple program;
I have a bunch of movie titles in my database, this is the structure:
part_url
part_size
part_format
bandwidth_type
flick_name
and the above table contains data like this:
"domain.com/part1.mpg","144mb","MPG","LOW","Spiderman"
"domain.com/part2.mpg","104mb","MPG","LOW","Spiderman"
"domain.com/part3.mpg","110mb","MPG","LOW","Spiderman"
etc
In my script I run this SQL:
select * from <table> order by flick_name
$num_rows = mysql_num_rows($q);
then a little below:
$flick=array();
for($i=0; $i < $num_rows; $i++)
{
$row = mysql_fetch_row($q);
$flick_name = $row[5];
$part_url = $row[0];
$part_size = $row[1];
$time_length = $row[2];
$part_format = $row[3];
$bw_type = $row[4];
$flick[$row[5]][] = array ("part_url" => $row['0'], "part_size" => $row[1],
"time_length" => $row[2],"part_format" => $row[3],"bw_type" => $row[4]);
}
---------------------------------------------------------
Which basically gets all the records nicely under the flicks name, then I
format the data onto my page like this:
Flick name
-----------
Part1.mpg - 144mb - MPG - LOW
Part2.mpg - 104mb - MPG - LOW
Part3.mpg - 110mb - MPG - LOW
So far so good, but heres where i am getting some strange results, there is
a movie called "Try A Teen" and for some reason this movie is split like
this
Try A Teen
-----------
Part1.mpg - 144mb - MPG - LOW
Part2.mpg - 104mb - MPG - LOW
Part3.mpg - 110mb - MPG - LOW
Try A Teen
-----------
Part4.mpg - 144mb - MPG - LOW
Part5.mpg - 104mb - MPG - LOW
Part6.mpg - 110mb - MPG - LOW
After a lot of searching through the page source I see that the first "Try A
Teen" has a line break (after the "n" in "teen" whatevers there appears on
the next line), thats why it seems different...but when I went into the
mySql db via phpmyadmin...there is no linebreak to be found anywhere....and
all the other titles are working perfectly fine... what do you think is the
problem? Bug? Something with the script? MySql?
If you want the script or the DB email me offlist and i'll send it to you.
Thanks!
attached mail follows:
[snip]
After a lot of searching through the page source I see that the first
"Try A
Teen" has a line break (after the "n" in "teen" whatevers there appears
on
the next line), thats why it seems different...but when I went into the
mySql db via phpmyadmin...there is no linebreak to be found
anywhere....and
all the other titles are working perfectly fine... what do you think is
the
problem? Bug? Something with the script? MySql?
[/snip]
Let's try an experiment, do a string replace to get rid of the newline
and report back what happens.
attached mail follows:
At 7:31 PM -0700 4/10/06, Ray Hauge wrote:
> >
>> I believe you're thinking more of the C++ style of returning by reference.
>> This article should help explain how references work, and how to return
>> references... most specifically check the "Returning References" section.
>>
> > http://www.php.net/manual/en/language.references.php
>
>nevermind... I what I read and what was actually written seem to have been two
>entirely different things ;) Still good info though.
>
>--
>Ray Hauge
Ray:
It was an interesting read -- but, I found it, and the comments, confusing.
The difference I was able to get was I know if you display a C
pointer, would will see a memory address -- if you display a PHP
reference, you will see the value. As such, one is a memory address
and the other is a symbol table alias -- but they still seem to work
the same. I haven't seen a working difference yet.
Additionally, what I don't get is this:
<?php
$a = 10;
echo("$a <br/>");
ref1(&$a);
echo("$a <br/>");
$a = 10;
echo("$a <br/>");
ref2($a);
echo("$a <br/>");
$a = 10;
echo("$a <br/>");
ref3($a);
echo("$a <br/>");
?>
<?php
function ref1($a)
{
$a--;
}
?>
<?php
function ref2(&$a)
{
$a--;
}
?>
<?php
function &ref3($a)
{
$a--;
}
?>
The first two functions work as I would expect. The last one is shown
in the documentation, but doesn't work as I expected. There doesn't
appear to be any difference between ref1 and ref3 -- so what's with
the "ampersand" in &ref3? What is an ampersand supposed to mean/do
when it precedes a function?
Thanks.
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
attached mail follows:
At 9:01 PM -0500 4/10/06, Richard Lynch wrote:
>On Sun, April 9, 2006 3:21 pm, Merlin wrote:
>> I am searching for a good upload framework that works with PHP and
>> AJAX
>> to provide an upload interface that uploads one picture instantly,
>> shows
>> the thumbnail and displays another upload formfield to select the next
>> picture for upload.
>>
>> Is there something like this, or similar around?
>
>I dunno where you plan to put the AJAX part...
-snip- code
Richard:
My understanding and experience (granted limited thus far) -- is that
it's not like you put ajax into something, but rather the other way
around. You use ajax to insert/inject code between specific html tags
(i.e., DOM) to preform certain operations within those tags. Nothing
else is changed.
As such, he could put the entire snip-it of code you just provided
under the direction of ajax to be used within portion of the form
that the loads images. That way only the loaded image would change
and not the entire form.
While the demo below is not uploading a picture from a desktop, it is
loading a picture from a file using ajax without reloading the entire
page.
http://www.xn--ovg.com/ajax_w_picts/
Replace the code that is "loading the picture from a file" with
"uploading the picture from the desktop", and you have what he's
asking.
However, using ajax here is not going to speed things up and by
comparison, a simple refresh will take much less time than uploading
an image -- so, what's the point other than not seeing a refresh?
HTH's
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
attached mail follows:
Hey,
-------------------------
[snip]
After a lot of searching through the page source I see that the first
"Try A
Teen" has a line break (after the "n" in "teen" whatevers there appears
on
the next line), thats why it seems different...but when I went into the
mySql db via phpmyadmin...there is no linebreak to be found
anywhere....and
all the other titles are working perfectly fine... what do you think is
the
problem? Bug? Something with the script? MySql?
[/snip]
Let's try an experiment, do a string replace to get rid of the newline
and report back what happens.------------------------------I did a
this:$flick_name = rtrim($row[5]);But no joy.... if I do a string replace
how do I specify the newline in the needle parameter of the str_replace?I'm
pretty sure I have to use chr() but not sure how...am looking at the ascii
table now...Thanks!
attached mail follows:
Hello All,
I have a problem with a Win2003 server, IIS6 and PHP 5.1.2. I have
Microsoft SQL Server tools installed. C:\PHP is on the path. Extension
dirs are configured correctly. The php_mssql.dll is present there.
Everything looks okay, except that the server does not load the
extension. If I do
var_dump(get_loaded_extensions())
then I get this:
array(23) { [0]=> string(6) "bcmath" [1]=> string(8) "calendar" [2]=>
string(10) "com_dotnet" [3]=> string(5) "ctype" [4]=> string(4) "date"
[5]=> string(3) "ftp" [6]=> string(5) "iconv" [7]=> string(4) "odbc"
[8]=> string(4) "pcre" [9]=> string(10) "Reflection" [10]=> string(7)
"session" [11]=> string(6) "libxml" [12]=> string(8) "standard" [13]=>
string(9) "tokenizer" [14]=> string(4) "zlib" [15]=> string(9)
"SimpleXML" [16]=> string(3) "dom" [17]=> string(3) "SPL" [18]=>
string(4) "wddx" [19]=> string(3) "xml" [20]=> string(9) "xmlreader"
[21]=> string(9) "xmlwriter" [22]=> string(5) "ISAPI" }
What am I doing wrong? Please help me. I was trying for a week and
nobody could help me on the hungarian PHP list. I'm lost.
Laszlo
attached mail follows:
>Here is an example Wez wrote years ago:
-snip code -
Years ago?
stream_socket_client() is php5.
How long ago did php5 launch?
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]