php-general Digest 29 Dec 2005 04:00:29 -0000 Issue 3876

Topics (messages 227936 through 227950):

Re: Location ....
        227936 by: Jay Blanchard

Re: mysqli module in php 4
        227937 by: M. Sokolewicz
        227938 by: John Nichel

ODBC question
        227939 by: Jeremy Schreckhise
        227940 by: Kristen G. Thorson

Re: Earlier versions hurt PHP 5
        227941 by: PHP Superman
        227944 by: Anas Mughal

operators
        227942 by: Henry Krinkle
        227943 by: M. Sokolewicz
        227945 by: Ligaya Turmelle

mysqli class not found
        227946 by: Erik Saline
        227947 by: PHP Superman

Re: a quick one, self submitting jump menu
        227948 by: Daevid Vincent

Variables and Strings
        227949 by: PHP Superman

Symbolic Folders and Content Translation
        227950 by: Dan Jallits

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
[snip]
Ok but there is something more strange.

I use "header location" in a switch/case. An header location by case. I
don't understand at the end of the case, the header location don't work and
I go through the others cases.

Any idea why ?
[/snip]

Not without seeing code.

--- End Message ---
--- Begin Message ---
John Nichel wrote:
M. Sokolewicz wrote:

Bagus Nugroho wrote:

Hi All,

Is mysqli module enable by default on php 4 as mysql module.


no

If not enable by default, where I can get this module(hopefully a direct link to download)


you can't, it *requires* PHP 5


I've been running mysqli on 4.3.x and 4.4

according to CVS it has a dependency on PHP 5

--- End Message ---
--- Begin Message ---
M. Sokolewicz wrote:
John Nichel wrote:

M. Sokolewicz wrote:

Bagus Nugroho wrote:

Hi All,

Is mysqli module enable by default on php 4 as mysql module.



no

If not enable by default, where I can get this module(hopefully a direct link to download)



you can't, it *requires* PHP 5



I've been running mysqli on 4.3.x and 4.4

according to CVS it has a dependency on PHP 5


Undocumented 'feature'.  ;)

Seriously though, I had no problem getting 4.x to compile with mysqli. Where I did run into trouble was getting both mysql and mysqli running together, happily.

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---


 
I have an Openlink Single Tier Driver on an XP pro machine with windows
installed on drive f: because I have a dual boot with Red Hat.  Database
is Progress 8.3c on a SCO Unixware 7.1.4 Dell Server.  I can connect to
all progress databases and pull data utilizing a System DSN via
Openlink, however when I try to connect via PHP I get the following
error:
 
            Warning: odbc_connect(): SQL error: [OpenLink][ODBC]Unable
to allocate server handle, SQL state S1000 in SQLConnect
 
Any suggestions?  I know the code is fine, because it works on another
box with a similar set up, but with windows installed on drive c:
 
Thanks in advance,
 
 
Jeremy Schreckhise

--- End Message ---
--- Begin Message ---
Jeremy Schreckhise wrote:



I have an Openlink Single Tier Driver on an XP pro machine with windows
installed on drive f: because I have a dual boot with Red Hat.  Database
is Progress 8.3c on a SCO Unixware 7.1.4 Dell Server.  I can connect to
all progress databases and pull data utilizing a System DSN via
Openlink, however when I try to connect via PHP I get the following
error:

           Warning: odbc_connect(): SQL error: [OpenLink][ODBC]Unable
to allocate server handle, SQL state S1000 in SQLConnect

Any suggestions?  I know the code is fine, because it works on another
box with a similar set up, but with windows installed on drive c:

Thanks in advance,


Jeremy Schreckhise



I did a search on that error + OpenLink and came up with this:

http://support.openlinksw.com/support/print_opie_article.vsp?OP_ID=299

I did this once a long time ago (PHP/ODBC/Progress), but I don't see that error in my notes. The only thing I can offer is that I had trouble making sure the proper Progress environment variables ($DLC and the like) were set and accessible to PHP/Apache.


If that doesn't help, try the OpenLink people. I had to place a support request with them before, and they were pretty helpful.



kgt

--- End Message ---
--- Begin Message ---
On 12/28/05, PHP Superman <[EMAIL PROTECTED]> wrote:
>
> I agree with Greg, if you guys don't care about new versions lets all
> downgrade to Pentium 1 computers using dial up, if we don't move from PHP 4
> to PHP 5 now, then when PHP 6 comes with a truckload of new features and
> changes to programming standard people who use PHP 4 will have a lot of
> problems with their PHP 4 compatible code. I'm not trying to be harsh to you
> guys because it's really the web hosting company's fault but we should all
> upgrade to PHP 5 unless you are using PHP-Nuke or something like that.
>
> On 12/19/05, Greg Donald <[EMAIL PROTECTED]> wrote:
> >
> > On 12/19/05, PHPDiscuss - PHP Newsgroups and mailing lists
> > < [EMAIL PROTECTED]> wrote:
> > > As a developer, I would love to use PHP 5+ for applications but I am
> > > afraid to do so because 90% of web hosting companies do not offer it.
> > The
> > > biggest reason that that they do not offer it is because there is
> > little
> > > demand for it. The reason why there is little demand for it is that
> > > developers do not use it because webhosts do not support it. A classic
> > > catch 22 situation!
> >
> > I fail to see what this has to do with a 1961 novel.  Do you mean
> > chicken-egg perhaps?  There's nothing keeping _you_ from using one of
> > those 10% who are supporting PHP5.  If you aren't part of the
> > solution..
> >
> > > I think that continuing to offer prominent download links for PHP 4
> > > versions on the same page as download links for php 5 on the php.netand
> > > Zend sites is a major contributor to this problem.
> >
> > Doubtful.  I gotta think most people who use PHP do not install it
> > themselves.  Those who do install it themselves are probably smart
> > enough to find the older versions no matter where you hide them on the
> > site.
> >
> > > To get PHP 5 accepted,
> > > links to download earlier versions should be hidden away in some
> > obsure
> > > area.
> >
> > PHP4 does what most people need it to do.  No reason to upgrade.  You
> > can't really fix that since there's nothing broken.
> >
> > What is in PHP5 that you _need_ exactly?  If it's OO then there are
> > much, much better places to get your OO fix.  Not to mention I have
> > never once had a client ask for PHP specifically, much less PHP5.  I
> > use PHP 5 because I want to stay current with my skills, not because I
> > need language functionality that's missing in PHP4.  Same with Apache
> > 2, PostgreSQL 8, and MySQL 5.
> >
> >
> > --
> > Greg Donald
> > Zend Certified Engineer
> > MySQL Core Certification
> > http://destiney.com/
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> Hi Everyone, I am running PHP 5 on Windosws XP SP2 with MySQL5, Bye Now!




--
Hi Everyone, I am running PHP 5 on Windosws XP SP2 with MySQL5, Bye Now!

--- End Message ---
--- Begin Message ---
Here is a PHP5 hosting company:
http://www.a2hosting.com/

(Please try Google to find more PHP5 hosting companies.)


Please don't make comments like removing older versions of PHP from the
download page. We have delivered solutions to clients that run on PHP4.
Those clients need the ability to conveniently download PHP4 in order to run
our code.

Happy New Year!!!
--
Anas Mughal






On 12/19/05, PHPDiscuss - PHP Newsgroups and mailing lists <
[EMAIL PROTECTED]> wrote:
>
>
>
> As a developer, I would love to use PHP 5+ for applications but I am
> afraid to do so because 90% of web hosting companies do not offer it. The
> biggest reason that that they do not offer it is because there is little
> demand for it. The reason why there is little demand for it is that
> developers do not use it because webhosts do not support it. A classic
> catch 22 situation!
>
> I think that continuing to offer prominent download links for PHP 4
> versions on the same page as download links for php 5 on the php.net and
> Zend sites is a major contributor to this problem. To get PHP 5 accepted,
> links to download earlier versions should be hidden away in some obsure
> area.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Anas Mughal

--- End Message ---
--- Begin Message ---
 I have some experience with PHP, but not with these operators:

->
=> 

Can someone explain how they are working in this snippet from Yahoo's search API

    foreach($xml->Result[$i] as $key=>$value) 

I don't see anything about them in the "Array Operators" documentation..

Thanks


                
---------------------------------
Yahoo! for Good - Make a difference this year. 

--- End Message ---
--- Begin Message ---
please read
http://www.php.net/manual/en/language.oop.php
explaining what Objects are exactly (since it's looping over an object property which just so happens to be an array)
http://www.php.net/manual/en/control-structures.foreach.php
explains what => is (part of foreach())

- tul

Henry Krinkle wrote:
 I have some experience with PHP, but not with these operators:

->
=>
Can someone explain how they are working in this snippet from Yahoo's search API

foreach($xml->Result[$i] as $key=>$value)
I don't see anything about them in the "Array Operators" documentation..

Thanks


                
---------------------------------
Yahoo! for Good - Make a difference this year.

--- End Message ---
--- Begin Message ---

$xml->Result[$i]  - a method call for object $xml
$key=>$value      - array notation

Henry Krinkle wrote:
 I have some experience with PHP, but not with these operators:

->
=>
Can someone explain how they are working in this snippet from Yahoo's search API

foreach($xml->Result[$i] as $key=>$value)
I don't see anything about them in the "Array Operators" documentation..

Thanks


                
---------------------------------
Yahoo! for Good - Make a difference this year.

--

life is a game... so have fun.

--- End Message ---
--- Begin Message ---
----- Original Message ----- 
From: Erik Saline 
To: [email protected] 
Sent: Wednesday, December 28, 2005 1:08 PM


I installed Apache, PHP, and Mysql during the Fedora Core 4 installation.

PHP 5.0.4
MYSQL 4.1.14

I used php -i to show that mysql and mysqli were installed.
Configure Command => './configure' '--build=i386-redhat-linux' 
'--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/bin/mysql_config' '

Here is the code.

$result = new mysqli_connect('localhost', 'nobody', 'test', 'godisdead');

Here is the error.

PHP Fatal error: Class 'mysqli' not found in /var/www/cgi-bin/db_connect.php on 
line 4, 



What am I missing?



Erik

--- End Message ---
--- Begin Message ---
you are not missing anything, you are actually adding to much. Using "new"
is for making objects, if you take away the "new" in the $result variable
declaration it should work fine.
On 12/28/05, Erik Saline <[EMAIL PROTECTED]> wrote:
>
>
> ----- Original Message -----
> From: Erik Saline
> To: [email protected]
> Sent: Wednesday, December 28, 2005 1:08 PM
>
>
> I installed Apache, PHP, and Mysql during the Fedora Core 4 installation.
>
> PHP 5.0.4
> MYSQL 4.1.14
>
> I used php -i to show that mysql and mysqli were installed.
> Configure Command => './configure' '--build=i386-redhat-linux'
> '--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/bin/mysql_config' '
>
> Here is the code.
>
> $result = new mysqli_connect('localhost', 'nobody', 'test', 'godisdead');
>
> Here is the error.
>
> PHP Fatal error: Class 'mysqli' not found in
> /var/www/cgi-bin/db_connect.php on line 4,
>
>
>
> What am I missing?
>
>
>
> Erik
>
>


--
Hi Everyone, I am running PHP 5 on Windosws XP SP2 with MySQL5, Bye Now!

--- End Message ---
--- Begin Message ---
While not PHP, this is a JS question..

        <FORM NAME="JumpForm">
          <SELECT NAME="JumpItem" onChange="jump_page();">
                  <OPTION VALUE='login_me_main.php'>My Account
                  <OPTION VALUE='login_new_main.php'>Sign Up!
          </SELECT>
        </FORM>  


<SCRIPT>
function jump_page() {
        with ( document.JumpForm ) {
                if ( JumpItem.value != "" ) 
                        document.location = JumpItem.value;
        }
} //jump_page()
</SCRIPT> 

> -----Original Message-----
> From: Ross [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, December 22, 2005 3:02 AM
> To: [email protected]
> Subject: [PHP] a quick one, self submitting jump menu
> 
> 
> How can I self submit a page whne registered globals are off. 
> Is there a way 
> to use $_SERVER?
> 
> What I am ultimately trying to do is use values from a jump menu...
> 
> <form name="form2" id="form2" action=">">
>   <select name="menu1" onchange="MM_jumpMenu('parent',this,0)">
>     <option >option1</option>
> <option >option2</option>
> 
>   </select>
> </form>
> 
> 
> to self submit and use the submitted values in a if-else or 
> CASE statement. 
> This is all on the same page.
> 
> 
> Ross 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
Hey everyone, is there a way to return all the variables from a string into
an array, for example
$Var1="Yo";
$Var2="Man";
$SQL="SELECT * FROM tblname WHERE 4=$Var1 AND WHERE 3=$Var2";
$AllVars=MySpecialFunction($SQL);
print_r($AllVars);

would ideally print an array like:
{
array
$Var1="Yo"
$Var2="Man"

}
i think i should use an ereg or preg replace but I don't know much about
them or how to use them, thanks in advance

--- End Message ---
--- Begin Message ---
I want to be able to determine the browser language and
redirect to the correct web folder. However, I want this folder to be
symbolic, since I do not want multiple copies of the same information.
Then the next step would be to pass the browser language to a service
like Google Translate!

--
Best regards,



Daniel C. Jallits
100 E. Oneida Avenue
Elmhurst, Illinois 60126-4465
United States of America
T: 630.279.2798 | M: 630.670.3775
Email - [EMAIL PROTECTED]
Weblog - http://jallits.wordpress.com
Del.icio.us - http://del.icio.us/rss/jallits
Technorati - http://www.technorati.com/profile/jallits

--- End Message ---

Reply via email to