php-windows Digest 31 May 2007 23:03:13 -0000 Issue 3247
Topics (messages 28015 through 28029):
Re: javascript :close()
28015 by: Stut
Re: Configuring and send mails in winxp??
28016 by: Jody Williams
Re: How to use Windows Authentication (SSPI) with mssql_connect command ?
28017 by: Dan Shirah
28027 by: Frank M. Kromann
28028 by: Dan Shirah
28029 by: Frank M. Kromann
CMS?
28018 by: Gustav Wiberg
28019 by: Moore, Joshua
28020 by: Bill Bolte
28021 by: Gustav Wiberg
28022 by: Bill Bolte
28023 by: Gustav Wiberg
Re: Printing via webapp
28024 by: Moore, Joshua
28025 by: Moore, Joshua
28026 by: Niel Archer
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 ---
chandar wrote:
I have a webpage with frames,i have provided a link and when the user
clicks the link i am closing the window.
For closing i am using javascript:window.close();
when i click the link in IE i get a command window telling you are going
to close this window.
Is there anyway to supress this alert?
That would be a javascript question on a PHP list. In future please
direct your questions to an appropriate list.
IE will ask the user if it's ok to close a window unless the script
asking to close it also opened it. This prevents scripts from closing
windows they don't own.
-Stut
--- End Message ---
--- Begin Message ---
I had a similar situation. As a result, I switched to Pear::Mail.
On 5/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Do you have a firewall rule that prevents incoming email from this particular
host? I tried to ping the server smtp.fibertel.com.ar and could not receive a
reply. It may be our firewall is preventing a response from that server, or it
may be that the email provider has limited the access to web-only access.
Does your network allow outward transmission of email from your intranet
server? It may need to be set up in your ACLs or other wrappers.
Is the email being caught by spam filters?
Neil
-----Original Message-----
From: Alejandro G. [mailto:[EMAIL PROTECTED]
Sent: 31 May 2007 03:31
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Configuring and send mails in winxp??
Neil, I'm doing this, I wrote some code with a basic use of the function mail,
the code itself its sending the mail (the function finish ok) but I never
receive the mail.
Here's my php.ini configuration the the mail function.
[mail function]
; For Win32 only.
SMTP = smtp.fibertel.com.ar
; for Win32 only
smtp_port = 25
sendmail_from= [EMAIL PROTECTED]
; For Unix only. You may supply arguments as well (default:
"sendmail -t -i").
sendmail_path = "c:\windows\system32\sendmail -t -i"
; Force the addition of the specified parameters to be passed as extra
parameters ; to the sendmail binary. These parameters will always replace the
value of ; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
and here is the basic php code
<?
$body="<em>HTML</em> formatted <strong>PRUEBA</strong";
$headers = "From: [EMAIL PROTECTED] \r\n"; $headers.= "Content-Type: text/html; charset=ISO-8859-1 "; $headers .=
"MIME-Version: 1.0 "; $mail_sent = mail("[EMAIL PROTECTED]", "An HTML Message", $body, $headers); echo $mail_sent ?
"Mail sent" : "Mail failed";
?>
<[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED]
If you are using a Windows version of PHP, the mail facility is pre-compiled.
All you need to do is set the PHP.INI directives below.
[mail function]
; For Win32 only.
SMTP = [EMAIL PROTECTED]
smtp_port = 25
; For Win32 only.
sendmail_from = [EMAIL PROTECTED]
Regards,
Neil
-----Original Message-----
From: Alejandro G. [mailto:[EMAIL PROTECTED]
Sent: 30 May 2007 01:19
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Configuring and send mails in winxp??
Hi Everybody! I need to configure the mail option in PHP because I want to use
the function mail( ) with the smtp of my ISP.
My machine is the server of an Intranet and the mail had to go to the Internet.
This server is using Apache 2.x
How can I configure php to do that??
I read the documentation and I write some code but the mail is sent but is
going nowhere because I send to another mail direction (mine,
obviously) and it never arrive.
HELP!!!
--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
If you set mssql.secure_connection = On, is there a way in PHP where you can
then retrieve the username of the person that is trying to update the
database?
On 5/30/07, Frank M. Kromann <[EMAIL PROTECTED]> wrote:
use the mssql.secure_connection = On in your php.ini file and make sure
the
IIS users has access to the database.
- Frank
> Hi,
>
> Does someone knows how to use the Windows Authentication (SSPI) with
> mssql_connect() ?
>
> Here's my trouble :
> I'm using an MS SQL Server 2000 and use the windows credential to
log...
> I can logon SSPI with ASP and Javascript using ADO...
> But it doesn't seems to work with PHP
>
> My Server is a Windows 2003 with MS SQL 2000 and IIS 6.0 and PHP
5.2.2.2
>
> I changed the following value to use the NT authentication ...
> mssql.secure_connection = On
> But when i try to connect supplying only the server... i get the
following
> error :
> Warning: mssql_connect() [function.mssql-connect]: message: Login failed
for
> user '(null)'. Reason: Not associated with a trusted SQL Server
connection.
> (severity 14) in C:\Inetpub\wwwroot\portail\Outils\functions.php on line
280
>
> And here's my authentication options in IIS ( see attachment )
>
> Could someone explain to me how to supply windows credential to PHP
using
> mssql_connect method
>
> Thanks
>
> Mat
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
that will be the user configured under IIS (IUSR_<host name>). You don't
need that information to update the database you should be able to cal
mssql_connect() without any parameters.
- Frank
> If you set mssql.secure_connection = On, is there a way in PHP where you
can
> then retrieve the username of the person that is trying to update the
> database?
>
> On 5/30/07, Frank M. Kromann <[EMAIL PROTECTED]> wrote:
> >
> > use the mssql.secure_connection = On in your php.ini file and make
sure
> > the
> > IIS users has access to the database.
> >
> > - Frank
> >
> > > Hi,
> > >
> > > Does someone knows how to use the Windows Authentication (SSPI)
with
> > > mssql_connect() ?
> > >
> > > Here's my trouble :
> > > I'm using an MS SQL Server 2000 and use the windows credential to
> > log...
> > > I can logon SSPI with ASP and Javascript using ADO...
> > > But it doesn't seems to work with PHP
> > >
> > > My Server is a Windows 2003 with MS SQL 2000 and IIS 6.0 and PHP
> > 5.2.2.2
> > >
> > > I changed the following value to use the NT authentication ...
> > > mssql.secure_connection = On
> > > But when i try to connect supplying only the server... i get the
> > following
> > > error :
> > > Warning: mssql_connect() [function.mssql-connect]: message: Login
failed
> > for
> > > user '(null)'. Reason: Not associated with a trusted SQL Server
> > connection.
> > > (severity 14) in C:\Inetpub\wwwroot\portail\Outils\functions.php on
line
> > 280
> > >
> > > And here's my authentication options in IIS ( see attachment )
> > >
> > > Could someone explain to me how to supply windows credential to PHP
> > using
> > > mssql_connect method
> > >
> > > Thanks
> > >
> > > Mat
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
--- End Message ---
--- Begin Message ---
I know you don't need it to connect/update the database. I was thinking
more along the lines of using it for an event logging type of scenario.
User A opens and processes an order. Upon completion User A saves the order
with its new status. Would it be possible to extract who User A is by
pulling the name out of the NT authentication required to access the server?
Almost like how a session works by storing the username after someone logs
in. But instead of them having to log in, it would just pull the "username"
from their NT account.
On 5/31/07, Frank M. Kromann <[EMAIL PROTECTED]> wrote:
that will be the user configured under IIS (IUSR_<host name>). You don't
need that information to update the database you should be able to cal
mssql_connect() without any parameters.
- Frank
> If you set mssql.secure_connection = On, is there a way in PHP where you
can
> then retrieve the username of the person that is trying to update the
> database?
>
> On 5/30/07, Frank M. Kromann <[EMAIL PROTECTED]> wrote:
> >
> > use the mssql.secure_connection = On in your php.ini file and make
sure
> > the
> > IIS users has access to the database.
> >
> > - Frank
> >
> > > Hi,
> > >
> > > Does someone knows how to use the Windows Authentication (SSPI)
with
> > > mssql_connect() ?
> > >
> > > Here's my trouble :
> > > I'm using an MS SQL Server 2000 and use the windows credential to
> > log...
> > > I can logon SSPI with ASP and Javascript using ADO...
> > > But it doesn't seems to work with PHP
> > >
> > > My Server is a Windows 2003 with MS SQL 2000 and IIS 6.0 and PHP
> > 5.2.2.2
> > >
> > > I changed the following value to use the NT authentication ...
> > > mssql.secure_connection = On
> > > But when i try to connect supplying only the server... i get the
> > following
> > > error :
> > > Warning: mssql_connect() [function.mssql-connect]: message: Login
failed
> > for
> > > user '(null)'. Reason: Not associated with a trusted SQL Server
> > connection.
> > > (severity 14) in C:\Inetpub\wwwroot\portail\Outils\functions.php on
line
> > 280
> > >
> > > And here's my authentication options in IIS ( see attachment )
> > >
> > > Could someone explain to me how to supply windows credential to PHP
> > using
> > > mssql_connect method
> > >
> > > Thanks
> > >
> > > Mat
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
--- End Message ---
--- Begin Message ---
Yes that is possible.
If the web server allows anonymous access to the script it will use the
generic account, but if anonymous access is disabled you can get the auth
method and name from the $_SERVER array. I think it's called
$_SERVER['AUTH_USER']. You can test that by creating a small script the
spit's put phpinfo(); and remove anonumous access to the script.
- Farnk
> I know you don't need it to connect/update the database. I was
thinking
> more along the lines of using it for an event logging type of scenario.
>
> User A opens and processes an order. Upon completion User A saves the
order
> with its new status. Would it be possible to extract who User A is by
> pulling the name out of the NT authentication required to access the
server?
>
> Almost like how a session works by storing the username after someone
logs
> in. But instead of them having to log in, it would just pull the
"username"
> from their NT account.
>
>
> On 5/31/07, Frank M. Kromann <[EMAIL PROTECTED]> wrote:
> >
> > that will be the user configured under IIS (IUSR_<host name>). You
don't
> > need that information to update the database you should be able to
cal
> > mssql_connect() without any parameters.
> >
> > - Frank
> >
> > > If you set mssql.secure_connection = On, is there a way in PHP where
you
> > can
> > > then retrieve the username of the person that is trying to update
the
> > > database?
> > >
> > > On 5/30/07, Frank M. Kromann <[EMAIL PROTECTED]> wrote:
> > > >
> > > > use the mssql.secure_connection = On in your php.ini file and
make
> > sure
> > > > the
> > > > IIS users has access to the database.
> > > >
> > > > - Frank
> > > >
> > > > > Hi,
> > > > >
> > > > > Does someone knows how to use the Windows Authentication (SSPI)
> > with
> > > > > mssql_connect() ?
> > > > >
> > > > > Here's my trouble :
> > > > > I'm using an MS SQL Server 2000 and use the windows credential
to
> > > > log...
> > > > > I can logon SSPI with ASP and Javascript using ADO...
> > > > > But it doesn't seems to work with PHP
> > > > >
> > > > > My Server is a Windows 2003 with MS SQL 2000 and IIS 6.0 and
PHP
> > > > 5.2.2.2
> > > > >
> > > > > I changed the following value to use the NT authentication ...
> > > > > mssql.secure_connection = On
> > > > > But when i try to connect supplying only the server... i get
the
> > > > following
> > > > > error :
> > > > > Warning: mssql_connect() [function.mssql-connect]: message:
Login
> > failed
> > > > for
> > > > > user '(null)'. Reason: Not associated with a trusted SQL Server
> > > > connection.
> > > > > (severity 14) in C:\Inetpub\wwwroot\portail\Outils\functions.php
on
> > line
> > > > 280
> > > > >
> > > > > And here's my authentication options in IIS ( see attachment )
> > > > >
> > > > > Could someone explain to me how to supply windows credential to
PHP
> > > > using
> > > > > mssql_connect method
> > > > >
> > > > > Thanks
> > > > >
> > > > > Mat
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > PHP Windows Mailing List (http://www.php.net/)
> > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > > >
> > > > >
> > > >
> > > > --
> > > > PHP Windows Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > > >
> > >
> >
> >
> >
> >
>
--- End Message ---
--- Begin Message ---
Hi there!
Anyone know a good CMS for handling documents and adding/deleting news in
diffrent categorys. Mambo/Joomla or Sharepoint Server would be great, BUT in
these systems documents are stored in ONE map on the server (and through the db
- the site shows respective document is shown in diffrent categories).
But I'm looking for a CMS that stores documents in physical paths, like
this...
Category
Cars
-file1.jpg
Boats
-file2.doc
-file3.doc
Buses
-file4.doc
In for example this files are stored like this:
mambodocuments/file1.jpg, file2.jpg, file2.jpg, file3, file4.jpg
I want the CMS to store the files like this
mambodocuments/cars/file1.jpg
mambodocuments/boats/file2.jpg
mambodocuments/boats/file3.jpg
mambodocuments/buses/file4.jpg
Anyone? Help :-)
Best regards
/Gustav Wiberg
--- End Message ---
--- Begin Message ---
Ok well sorry, I don't know of anything else :(
-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 6:08 AM
To: Moore, Joshua
Subject: RE: [PHP-WIN] CMS?
Hi there!
I could an application of my own that does this, but I'm just wondering if
there is some CMS out there that stores the documents in diffrent folders.
The customer asks for this, and it's because they want to access the files
throught the local network as well as through their intranet... (In one big
folder there is absolutly no structure)
Best regards
/Gustav Wiberg
-----Original Message-----
From: Moore, Joshua [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 3:10 PM
To: Gustav Wiberg
Subject: RE: [PHP-WIN] CMS?
Hmmm, well the CMS I use is Seditio www.neocrome.net
However it does store its documents in one big folder and marks it by the DB
to determine the categories. If you tell me why you need it to be in its own
folder maybe we can figure another way for you?
-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 5:40 AM
To: 'php windows' ([EMAIL PROTECTED])
Subject: [PHP-WIN] CMS?
Hi there!
Anyone know a good CMS for handling documents and adding/deleting news in
diffrent categorys. Mambo/Joomla or Sharepoint Server would be great, BUT in
these systems documents are stored in ONE map on the server (and through the
db - the site shows respective document is shown in diffrent categories).
But I'm looking for a CMS that stores documents in physical paths, like
this...
Category
Cars
-file1.jpg
Boats
-file2.doc
-file3.doc
Buses
-file4.doc
In for example this files are stored like this:
mambodocuments/file1.jpg, file2.jpg, file2.jpg, file3, file4.jpg
I want the CMS to store the files like this
mambodocuments/cars/file1.jpg
mambodocuments/boats/file2.jpg
mambodocuments/boats/file3.jpg
mambodocuments/buses/file4.jpg
Anyone? Help :-)
Best regards
/Gustav Wiberg
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
With Joomla! it really depends on what you're doing. Media Manager will
allow you to store your images in the way you describe. The add-on
component, DocMan stores them all in one folder. Get the JoomlaExplorer
add-on and it allows you to upload files to any folder you want (as well
as create those folders).
The categories things shouldn't be an issue either...
Bill
-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 7:40 AM
To: 'php windows' ([EMAIL PROTECTED])
Subject: [PHP-WIN] CMS?
Hi there!
Anyone know a good CMS for handling documents and adding/deleting news
in diffrent categorys. Mambo/Joomla or Sharepoint Server would be great,
BUT in these systems documents are stored in ONE map on the server (and
through the db - the site shows respective document is shown in diffrent
categories).
But I'm looking for a CMS that stores documents in physical paths, like
this...
Category
Cars
-file1.jpg
Boats
-file2.doc
-file3.doc
Buses
-file4.doc
In for example this files are stored like this:
mambodocuments/file1.jpg, file2.jpg, file2.jpg, file3, file4.jpg
I want the CMS to store the files like this
mambodocuments/cars/file1.jpg
mambodocuments/boats/file2.jpg
mambodocuments/boats/file3.jpg
mambodocuments/buses/file4.jpg
Anyone? Help :-)
Best regards
/Gustav Wiberg
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi there!
Can this JoomlaExplorer be a replacement for Docman? I'm using Mambo 4.5.1
Best regards
/Gustav Wiberg
-----Original Message-----
From: Bill Bolte [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 3:39 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] CMS?
With Joomla! it really depends on what you're doing. Media Manager will
allow you to store your images in the way you describe. The add-on
component, DocMan stores them all in one folder. Get the JoomlaExplorer
add-on and it allows you to upload files to any folder you want (as well
as create those folders).
The categories things shouldn't be an issue either...
Bill
-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 7:40 AM
To: 'php windows' ([EMAIL PROTECTED])
Subject: [PHP-WIN] CMS?
Hi there!
Anyone know a good CMS for handling documents and adding/deleting news
in diffrent categorys. Mambo/Joomla or Sharepoint Server would be great,
BUT in these systems documents are stored in ONE map on the server (and
through the db - the site shows respective document is shown in diffrent
categories).
But I'm looking for a CMS that stores documents in physical paths, like
this...
Category
Cars
-file1.jpg
Boats
-file2.doc
-file3.doc
Buses
-file4.doc
In for example this files are stored like this:
mambodocuments/file1.jpg, file2.jpg, file2.jpg, file3, file4.jpg
I want the CMS to store the files like this
mambodocuments/cars/file1.jpg
mambodocuments/boats/file2.jpg
mambodocuments/boats/file3.jpg
mambodocuments/buses/file4.jpg
Anyone? Help :-)
Best regards
/Gustav Wiberg
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
No, not really. it's more of an enhanced media manager allowing ftp,
editing of files and folder/file permissions, etc.
But as was asked before, why the need for the specific paths?
-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 8:46 AM
To: Bill Bolte; '[EMAIL PROTECTED]'
Subject: RE: [PHP-WIN] CMS?
Hi there!
Can this JoomlaExplorer be a replacement for Docman? I'm using Mambo
4.5.1
Best regards
/Gustav Wiberg
-----Original Message-----
From: Bill Bolte [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 3:39 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] CMS?
With Joomla! it really depends on what you're doing. Media Manager will
allow you to store your images in the way you describe. The add-on
component, DocMan stores them all in one folder. Get the JoomlaExplorer
add-on and it allows you to upload files to any folder you want (as well
as create those folders).
The categories things shouldn't be an issue either...
Bill
-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 7:40 AM
To: 'php windows' ([EMAIL PROTECTED])
Subject: [PHP-WIN] CMS?
Hi there!
Anyone know a good CMS for handling documents and adding/deleting news
in diffrent categorys. Mambo/Joomla or Sharepoint Server would be great,
BUT in these systems documents are stored in ONE map on the server (and
through the db - the site shows respective document is shown in diffrent
categories).
But I'm looking for a CMS that stores documents in physical paths, like
this...
Category
Cars
-file1.jpg
Boats
-file2.doc
-file3.doc
Buses
-file4.doc
In for example this files are stored like this:
mambodocuments/file1.jpg, file2.jpg, file2.jpg, file3, file4.jpg
I want the CMS to store the files like this
mambodocuments/cars/file1.jpg
mambodocuments/boats/file2.jpg
mambodocuments/boats/file3.jpg
mambodocuments/buses/file4.jpg
Anyone? Help :-)
Best regards
/Gustav Wiberg
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi!
Ok. It's because the customer wants to explore the documents when logging into
the network as "network-user". And NOT just in the intranet-portal.
Best regards
/Gustav Wiberg
-----Original Message-----
From: Bill Bolte [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 3:59 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] CMS?
No, not really. it's more of an enhanced media manager allowing ftp,
editing of files and folder/file permissions, etc.
But as was asked before, why the need for the specific paths?
-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 8:46 AM
To: Bill Bolte; '[EMAIL PROTECTED]'
Subject: RE: [PHP-WIN] CMS?
Hi there!
Can this JoomlaExplorer be a replacement for Docman? I'm using Mambo
4.5.1
Best regards
/Gustav Wiberg
-----Original Message-----
From: Bill Bolte [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 3:39 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] CMS?
With Joomla! it really depends on what you're doing. Media Manager will
allow you to store your images in the way you describe. The add-on
component, DocMan stores them all in one folder. Get the JoomlaExplorer
add-on and it allows you to upload files to any folder you want (as well
as create those folders).
The categories things shouldn't be an issue either...
Bill
-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 7:40 AM
To: 'php windows' ([EMAIL PROTECTED])
Subject: [PHP-WIN] CMS?
Hi there!
Anyone know a good CMS for handling documents and adding/deleting news
in diffrent categorys. Mambo/Joomla or Sharepoint Server would be great,
BUT in these systems documents are stored in ONE map on the server (and
through the db - the site shows respective document is shown in diffrent
categories).
But I'm looking for a CMS that stores documents in physical paths, like
this...
Category
Cars
-file1.jpg
Boats
-file2.doc
-file3.doc
Buses
-file4.doc
In for example this files are stored like this:
mambodocuments/file1.jpg, file2.jpg, file2.jpg, file3, file4.jpg
I want the CMS to store the files like this
mambodocuments/cars/file1.jpg
mambodocuments/boats/file2.jpg
mambodocuments/boats/file3.jpg
mambodocuments/buses/file4.jpg
Anyone? Help :-)
Best regards
/Gustav Wiberg
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Well I just found out most of the Zebra barcode printers have their own code
(ZPL code). So I try and send that data to the printer but still no luck.
Heres my code:
<?
function getPrinter($SharedPrinterName) {
global $REMOTE_ADDR;
$host = getHostByAddr($REMOTE_ADDR);
return "\\\\".$host."\\".$SharedPrinterName;
}
$printtest = "^XA";
$printtest = "^FO50,50^ADN,36,20^FDjoshmoore";
$printtest = "^FS";
$printtest = "^XZ";
$handle = printer_open(getPrinter("ZebraZ4M"));
printer_set_option($handle, PRINTER_MODE, "RAW");
printer_write($handle, $printtest);
printer_close($handle);
?>
This would be the printer code to print a name:
^XA
^FO50,50^ADN,36,20^FDjoshmoore
^FS
^XZ
Is my php correct? I still seem to have the same problem. It will send to the
printjob list but nothing prints from the printer. Might be still
permissions? Maybe printer settings?
Thanks
-----Original Message-----
From: Moore, Joshua [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 30, 2007 7:56 AM
To: Juan Ignacio Borda
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Printing via webapp
I'll give that a try. But when you goto FILE<Print from a web browser, that
isn't a RAW print mode?
My user account owns the print job when it enters the list.
________________________________
From: Juan Ignacio Borda [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 30, 2007 7:08 AM
To: Moore, Joshua
Subject: Re: [PHP-WIN] Printing via webapp
may be you have to send special codes to printer some printers lacks the
ability to print direct from raw (ie Epson LX 300 has a lot of special codes,
escape codes, that can be sent before start printing) did you check the
manual to see if it's the case?
----------------------------------
One more thing,
When I run my php script I see that the printjob gets put into the windows
printing list for that printer however it pops up, says its spolling under
the status then disappears and nothing prints...
:(
-----Original Message-----
From: Moore, Joshua [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 30, 2007 6:24 AM
To: Juan Ignacio Borda; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Printing via webapp
Yes it is a printer on LPT1. Well IF it is indeed a permissions problem then
I would guess its permissions on the barcode printer im trying to print too
because if I change the printer to my LaserJet it prints fine with no
warnings or errors.
However looked on the PHP manual comments it said this:
"If you need printer_write you must to change the datatype:
printer_set_option($handle, PRINTER_MODE, "RAW"); "
so my code:
<?
function getPrinter($SharedPrinterName) {
global $REMOTE_ADDR;
$host = getHostByAddr($REMOTE_ADDR);
return "\\\\".$host."\\".$SharedPrinterName;
}
$handle = printer_open(getPrinter("ZebraZ4M"));
printer_set_option($handle, PRINTER_MODE, "RAW");
printer_write($handle, "Text to print");
printer_close($handle);
?>
The warning goes away but it doesn't print!! :( Nothing in the apache2 error
logs :(
Im stuck, any ideas?
-----Original Message-----
From: Juan Ignacio Borda [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 30, 2007 5:44 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Printing via webapp
I'm intrested on this function too, did you tried to print locally let's
say to LPT1 ? this will jelp you debug if it's the case that you can't
print or acces a shared resource.
In that case I really can't help you since I've never heard
of Uniform
Server.
Uniform Server is a WAMP package. It was mentioned on this or the Db
list recently. Presumably then, Apache's permissions would be the
determining factor?
http://www.uniformserver.com/
Niel
--- End Message ---
--- Begin Message ---
Well ive got some new information and I need some suggestions.
I can print to the printer via this ZPL code. The ZPL code is just in a
textfile with the extension .zpl. To print successfully to the barcode
printer all I have to do is copy the zpl file to the printer using a
commandline:
Copy test.zpl LPT1
So I was thinking I could use a batch script and call it with exec() however
the zpl file would have to be generated via PHP when the user clicks submit
on the form. I am using a mysql DB which stores the data for the barcodes and
then have the PHP pull the information from the DB that the user typed in
then create the zpl file with that info.
That's what ive come up with. Does anyone have any better solutions? Now I
don't expect people to be printing labels at the same time so im not too
worried about that. But still doesn't seem quite like the best way to
accomplish this task.
Thanks for your help guys!
Oh and one more question. Can php create a text file with the exenstion of
.zpl instead of txt?
-----Original Message-----
From: Moore, Joshua
Sent: Thursday, May 31, 2007 9:34 AM
To: Moore, Joshua; Juan Ignacio Borda
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Printing via webapp
Well I just found out most of the Zebra barcode printers have their own code
(ZPL code). So I try and send that data to the printer but still no luck.
Heres my code:
<?
function getPrinter($SharedPrinterName) {
global $REMOTE_ADDR;
$host = getHostByAddr($REMOTE_ADDR);
return "\\\\".$host."\\".$SharedPrinterName;
}
$printtest = "^XA";
$printtest = "^FO50,50^ADN,36,20^FDjoshmoore";
$printtest = "^FS";
$printtest = "^XZ";
$handle = printer_open(getPrinter("ZebraZ4M"));
printer_set_option($handle, PRINTER_MODE, "RAW");
printer_write($handle, $printtest);
printer_close($handle);
?>
This would be the printer code to print a name:
^XA
^FO50,50^ADN,36,20^FDjoshmoore
^FS
^XZ
Is my php correct? I still seem to have the same problem. It will send to the
printjob list but nothing prints from the printer. Might be still
permissions? Maybe printer settings?
Thanks
-----Original Message-----
From: Moore, Joshua [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 30, 2007 7:56 AM
To: Juan Ignacio Borda
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Printing via webapp
I'll give that a try. But when you goto FILE<Print from a web browser, that
isn't a RAW print mode?
My user account owns the print job when it enters the list.
________________________________
From: Juan Ignacio Borda [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 30, 2007 7:08 AM
To: Moore, Joshua
Subject: Re: [PHP-WIN] Printing via webapp
may be you have to send special codes to printer some printers lacks the
ability to print direct from raw (ie Epson LX 300 has a lot of special codes,
escape codes, that can be sent before start printing) did you check the
manual to see if it's the case?
----------------------------------
One more thing,
When I run my php script I see that the printjob gets put into the windows
printing list for that printer however it pops up, says its spolling under
the status then disappears and nothing prints...
:(
-----Original Message-----
From: Moore, Joshua [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 30, 2007 6:24 AM
To: Juan Ignacio Borda; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Printing via webapp
Yes it is a printer on LPT1. Well IF it is indeed a permissions problem then
I would guess its permissions on the barcode printer im trying to print too
because if I change the printer to my LaserJet it prints fine with no
warnings or errors.
However looked on the PHP manual comments it said this:
"If you need printer_write you must to change the datatype:
printer_set_option($handle, PRINTER_MODE, "RAW"); "
so my code:
<?
function getPrinter($SharedPrinterName) {
global $REMOTE_ADDR;
$host = getHostByAddr($REMOTE_ADDR);
return "\\\\".$host."\\".$SharedPrinterName;
}
$handle = printer_open(getPrinter("ZebraZ4M"));
printer_set_option($handle, PRINTER_MODE, "RAW");
printer_write($handle, "Text to print");
printer_close($handle);
?>
The warning goes away but it doesn't print!! :( Nothing in the apache2 error
logs :(
Im stuck, any ideas?
-----Original Message-----
From: Juan Ignacio Borda [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 30, 2007 5:44 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Printing via webapp
I'm intrested on this function too, did you tried to print locally let's
say to LPT1 ? this will jelp you debug if it's the case that you can't
print or acces a shared resource.
In that case I really can't help you since I've never heard
of Uniform
Server.
Uniform Server is a WAMP package. It was mentioned on this or the Db
list recently. Presumably then, Apache's permissions would be the
determining factor?
http://www.uniformserver.com/
Niel
--- End Message ---
--- Begin Message ---
> Oh and one more question. Can php create a text file with the exenstion of
> zpl instead of txt?
Easily
Niel
--- End Message ---