php-windows Digest 15 Nov 2003 07:30:09 -0000 Issue 2000

Topics (messages 22096 through 22101):

Re: Fatal error, but include_path seems correct?
        22096 by: Roderick Martin
        22101 by: toby z

script to update file names
        22097 by: dsig.teleport.com
        22099 by: Luis Moreira

Re: MS-SQL / FreeTDS - charsets ?
        22098 by: Frank M. Kromann

NewComer Code
        22100 by: Rocco CAstoro

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 --- Toby,

Maybe this is something.

$cfg['PmaAbsoluteUri'] is set to "http://www.myserver.com/phpMyAdmin254"; (of course, myserver being my real server)
$cfg['Servers'][$i]['host'] = 'localhost';


Both of these were set this way already (before your suggestion).

Now, mysql runs locally in a console with its setting pointing to "localhost". Might the problem be that PmaAbsoluteUri is not set to the "localhost" equivalent, but the "external" URL?

If so, how do I figure out where "http://localhost/"; points to so I can complete the path? I tried entering "http://localhost/"; in IE on the source computer, but I got an error.

thanks!!!

On Nov 13, 2003, at 11:54 PM, toby z wrote:

hay rod

locate $cfgPmaAbsoluteUri in ur phpmyadmin config.inc file
and put the path by which ur trying to access myadmin ..... like

'http://localhost/myadmin/';

then
$cfgServers[$i]['host'] = 'localhost';

and 3rd .... u need-not include path to myadmin in ur include_path in
php.ini :)

good luck

toby

configurtion is a rather hair-tearing and mind-repairing process ....
bare with it :)

 --- Roderick Martin <[EMAIL PROTECTED]> wrote: > Tried it.
Same error message...

Fatal error: Failed opening required './libraries/grab_globals.lib.php' (include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D: \Netscape\SuiteSpot\docs\phpMyAdmin254') ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9

On Nov 13, 2003, at 10:15 AM, Eric COLINET wrote:

Try :
        D: \Netscape\SuiteSpot\docs\phpMyAdmin254
Instead of :
        D: \Netscape\SuiteSpot\docs\phpMyAdmin254\libraries
for your include path.

Eric

At 16:34 13/11/2003, Roderick Martin wrote:
My setup:
PHP 4.0.6
Windows NT 4.0
Netscape-Enterprise/3.6 SP3

Installed phpMyAdmin to the root of the server, which is
d:/Netscape/SuiteSpot/docs/phpMyAdmin254/

I get the error: Fatal error: Failed opening required
'./libraries/grab_globals.lib.php'
(include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D:
\Netscape\SuiteSpot\docs\phpMyAdmin254\libraries')
ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9

As you can see, I've added the path to phpMyAdmin in my
include_path,
but it still errors out.

Yes, there is a /libraries folder containing
grab_globals.lib.php.

Any suggestions?

-- PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





_______________________________________________________________________ _
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
hay rod 
im sorry im lost .....


from what i understand .....

u want to point ur url to www.myserver.com/phpMyAdmin254

:S

mmmm

well ..... u can give the ip instead of localhost or
www.myserver.com/phpMyAdmin254

like 
$cfgPmaAbsoluteUri = 'xxx.yyy.z.a';

or even with a port as i do since im runnin both iis n apache on ma
machine ->

$cfgPmaAbsoluteUri = 'xxx.yyy.z.a:8095/myadmin/';

or even ur machine name ->

$cfgPmaAbsoluteUri = 'http://shagg:8095/myadmin/';

im sorry if i havent answerd ur question ..... :$

ping me again if yes .....

toby



--- Roderick Martin <[EMAIL PROTECTED]> wrote: > Toby,
> 
> Maybe this is something.
> 
> $cfg['PmaAbsoluteUri'] is set to  
> "http://www.myserver.com/phpMyAdmin254";  (of course, myserver being
> my  
> real server)
> $cfg['Servers'][$i]['host']          = 'localhost';
> 
> Both of these were set this way already (before your suggestion).
> 
> Now, mysql runs locally in a console with its setting pointing to  
> "localhost". Might the problem be that PmaAbsoluteUri is not set to
> the  
> "localhost" equivalent, but the "external" URL?
> 
> If so, how do I figure out where "http://localhost/"; points to so I
> can  
> complete the path? I tried entering "http://localhost/"; in IE on
> the  
> source computer, but I got an error.
> 
> thanks!!!
> 
> On Nov 13, 2003, at 11:54 PM, toby z wrote:
> 
> > hay rod
> >
> > locate $cfgPmaAbsoluteUri in ur phpmyadmin config.inc file
> > and put the path by which ur trying to access myadmin ..... like
> >
> >  'http://localhost/myadmin/';
> >
> > then
> > $cfgServers[$i]['host'] = 'localhost';
> >
> > and 3rd .... u need-not include path to myadmin in ur
> include_path in
> > php.ini :)
> >
> > good luck
> >
> > toby
> >
> > configurtion is a rather hair-tearing and mind-repairing process
> ....
> > bare with it :)
> >
> >  --- Roderick Martin <[EMAIL PROTECTED]> wrote: > Tried
> it.
> > Same error message...
> >>
> >> Fatal error: Failed opening required
> >> './libraries/grab_globals.lib.php'
> >> (include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D:
> >> \Netscape\SuiteSpot\docs\phpMyAdmin254')
> >> ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9
> >>
> >> On Nov 13, 2003, at 10:15 AM, Eric COLINET wrote:
> >>
> >>> Try :
> >>>         D: \Netscape\SuiteSpot\docs\phpMyAdmin254
> >>> Instead of :
> >>>         D: \Netscape\SuiteSpot\docs\phpMyAdmin254\libraries
> >>> for your include path.
> >>>
> >>> Eric
> >>>
> >>> At 16:34 13/11/2003, Roderick Martin wrote:
> >>>> My setup:
> >>>> PHP 4.0.6
> >>>> Windows NT 4.0
> >>>> Netscape-Enterprise/3.6 SP3
> >>>>
> >>>> Installed phpMyAdmin to the root of the server, which is
> >>>> d:/Netscape/SuiteSpot/docs/phpMyAdmin254/
> >>>>
> >>>> I get the error: Fatal error: Failed opening required
> >>>> './libraries/grab_globals.lib.php'
> >>>> (include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D:
> >>>> \Netscape\SuiteSpot\docs\phpMyAdmin254\libraries')
> >>>> ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9
> >>>>
> >>>> As you can see, I've added the path to phpMyAdmin in my
> >> include_path,
> >>>> but it still errors out.
> >>>>
> >>>> Yes, there is a /libraries folder containing
> >> grab_globals.lib.php.
> >>>>
> >>>> Any suggestions?
> >>>
> >>> --  
> >>> PHP Windows Mailing List (http://www.php.net/)
> >>> To unsubscribe, visit: http://www.php.net/unsub.php
> >>>
> >>>
> >>
> >
> >
>
_______________________________________________________________________
> 
> > _
> > Want to chat instantly with your online friends?  Get the FREE
> Yahoo!
> > Messenger http://mail.messenger.yahoo.co.uk
> >
> > -- 
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>  

________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk

--- End Message ---
--- Begin Message ---
I have a db in mysql which has all of my mp3s listed (approx 180 gig
worth).

I have need to restructure the physical location and so need to change
the info in the db.

if table looks like
ID       (seq)
filename (x:\my music\artist - album\01. my song.mp3)

I need to change at least the x and hopefully the x:\my music

I have tried several things and does not *seem* to work.  Not sure why I am having 
this problem .. seems pretty straight forward <g>

anyone with a simple script I could use / pilfer / modify ?

--- End Message ---
--- Begin Message ---
The syntax look something like this

UPDATE tablename SET filename=desired_filename WHERE first_two_equal_X:

Luis


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 14, 2003 4:26 PM
Subject: [PHP-WIN] script to update file names


> I have a db in mysql which has all of my mp3s listed (approx 180 gig
> worth).
>
> I have need to restructure the physical location and so need to change
> the info in the db.
>
> if table looks like
> ID       (seq)
> filename (x:\my music\artist - album\01. my song.mp3)
>
> I need to change at least the x and hopefully the x:\my music
>
> I have tried several things and does not *seem* to work.  Not sure why I
am having this problem .. seems pretty straight forward <g>
>
> anyone with a simple script I could use / pilfer / modify ?
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Hi Lars,

The windows version of the MSSQL extension is not (yet) based on the
FreeTDS library but is based on Microsofts own library, and the latest
version of the FreeTFS library is 0.62.

What is your problem with charsets ? Perhaps there is a solution ?

- Frank

> I'm having problem with charsets in connection with MS SQL Server 2000.
> 
> I've read that it requires version 8.0 of the FreeTDS library - which is
at
> the heart of the php_mssql extension, as I understand it.
> 
> I'm using php 4.3.2, i.e. using a php_mssql extension based on FreeTDS
v7
> (phpinfo() tells me).
> 
> Which version of PHP has / is planned to have version 8.0 of FreeTDS
> included in the mssql extension ?
> 
> TIA
> Lars V. Nielsen
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
Would this be the best and most efficent way to create a function that
accepts four string variables and returns a string that contains an HTML
table element, enclosing each of the variables in its own cell :

<?php
function table4Strings( $string1, $string2, $string3, $string4  )
 {
 print "<table border=1>";
 print "<tr>";
 print "<td>$string1</td>";
 print "<td>$string2</td>";
 print "<td>$string3</td>";
 print "<td>$string4</td>";
 print "</tr>";
 print "</table>";
 }
table4Strings(1, 2, 3, 4);
?>

Thanks much, reading Sams teach yourself PHP4 in 24 Hours.. Pretty
informative..

--- End Message ---

Reply via email to