php-windows Digest 20 Sep 2003 21:48:49 -0000 Issue 1919
Topics (messages 21462 through 21471):
Re: PHP Apache (GLOBALS) question
21462 by: dimitrios seitz
Re: Problem with $PHP_SELF and possibly some others
21463 by: dimitrios seitz
Slashdot:: PHP usage in the Enterprise - results
21464 by: Alexandru COSTIN
Auto Refresh
21465 by: ascll
21467 by: Donatas
21468 by: Dean Hayes
21469 by: Paul Menard
Re: generate img with fonts...
21466 by: Bobo Wieland
Using PHP to compile uploaded sourcecode with cygwins gcc?
21470 by: DvDmanDT
php, excel - release problem
21471 by: Grzegorz Godlewski
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 ---
Look at this snippet.
$globalize include all variable which will be globalized.
http://www.network-site.de/net/snippets.php?include=0
"Frank Tudor" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> I have installed Mandrake Linux and it comes standard with
> Apache PHP and MySQL. You can install all these rpms through
> the server selection....Anyway.
>
> In my test environment it is function city and of course
> register globals were on.
>
> Now I have Taked my PHP.INI-DIST set the globals to on and
> copied it to my /etc directory.
>
> It worked like a charm....but guess what. I can't create a
> connection string to my database. Now I have to find a solution
> to get this website to work with globals on and mysql.
>
> I have tried adding an .htacess with the php globals override
> thing
>
>
> php_value "register_globals" "1"
>
> Ok this didn't work.
>
> So I found the Mysql-PHP RPM on my mandrake cd (of course
> enabling my php.ini file) and it didn't work.
>
> I'm getting closer to a solution but I am stuck. Why won't the
> htaccess file work? I would like to use my php.ini file but it
> is not configured for mysql, how could I fix this? Is there
> anything I can do for either of these two questions to get my
> globals on?
>
> I swear I will never use functions again if someone helps me.
>
> :)
>
> Frank
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
--- End Message ---
--- Begin Message ---
Look at this snippet.
$globalize include all variable which will be globalized.
http://www.network-site.de/net/snippets.php?include=0
"Nms&ío{óÊ" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> i just recently installed apache2 on my computer and then php4.3.3, so i
> could test my scripts (im learnin) and I think im missing something
> configuring php, i was trying out my scripts and this message came up:
>
> Forbidden
> You don't have permission to access /<br /><b>Notice</b>: Undefined
> variable: PHP_self in <b>C:/site/assignement5advanced.php</b> on line
> <b>26</b><br /> on this server.
>
> i cant find anything related to php_self funtion on the php.net site, or
at
> least the search engine cant :P, someone has a clue on what it could be?
>
> _________________________________________________________________
> MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com
--- End Message ---
--- Begin Message ---
Hello,
We have published the results of the Enterprise PHP research on our website.
See the link to InterAKT and Zend survey, together with lots of insightful
comments, here:
http://developers.slashdot.org/article.pl?sid=03/09/19/2133204&mode=thread&tid=126&tid=169
We would like to get a link to our survey from www.php.net - There is a link
to the Zend Survey, and our is a complementary one.
Whom should we contact? We've tried before and we've never been successful
:)
Alexandru
--
Alexandru COSTIN
Chief Operating Officer
http://www.interakt.ro/
+4021 312 5312
--- End Message ---
--- Begin Message ---
Greetings,
Could someone please teach me how to configure my .php page to auto refresh,
say every 5 seconds?
Thanks in advance and I'm using PHP ver 4.3.3
Regards,
ascll
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I would also like to know how to do that.... it would be nice to make
script that sends emails on a certain preset time. Like Birthday
notifications, etc...
ascll wrote:
Greetings,
Could someone please teach me how to configure my .php page to auto refresh,
say every 5 seconds?
Thanks in advance and I'm using PHP ver 4.3.3
Regards,
ascll
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
For a refresh i use a meta tag
<META HTTP-EQUIV=Refresh CONTENT="time in seconds; URL=file name">
Works every time for me
Dean "The Insane Guy" Hayes
Mystical Web Designs
http://www.mystical-sector.com
<-- I design and i redesign but still i never designed true beauty like you
-->
From: Donatas <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Auto Refresh
Date: Sat, 20 Sep 2003 14:18:32 +0200
I would also like to know how to do that.... it would be nice to make script
that sends emails on a certain preset time. Like Birthday notifications,
etc...
ascll wrote:
Greetings,
Could someone please teach me how to configure my .php page to auto
refresh,
say every 5 seconds?
Thanks in advance and I'm using PHP ver 4.3.3
Regards,
ascll
[EMAIL PROTECTED]
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________
ninemsn Premium transforms your e-mail with colours, photos and animated
text. Click here http://ninemsn.com.au/premium/landing.asp
--- End Message ---
--- Begin Message ---
You could use a standard HTML technique which is
putting a meta statement into the <HEAD> of your HTML
Like so
<HEAD>
<meta http-equiv="Refresh" content="120">
</HEAD>
The 'content' variable could be set to 5. In the
example I have provided the page will auto-refresh
every 120 seconds (2 minutes).
Paul
--- Donatas <[EMAIL PROTECTED]> wrote:
> I would also like to know how to do that.... it
> would be nice to make
> script that sends emails on a certain preset time.
> Like Birthday
> notifications, etc...
>
> ascll wrote:
>
> >Greetings,
> >
> >Could someone please teach me how to configure my
> .php page to auto refresh,
> >say every 5 seconds?
> >
> >Thanks in advance and I'm using PHP ver 4.3.3
> >
> >
> >Regards,
> >ascll
> >[EMAIL PROTECTED]
> >
> >
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
--- End Message ---
--- Begin Message ---
Thanks for your replay. But, why do I have to install freetype? As I've come
to understand you can just use the built in php functions with any server
installed font. No extra software necessary... Please enlighten me :)
.bobo [EMAIL PROTECTED]
----- Original Message -----
From: "Sek-Mun Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 20, 2003 2:22 AM
Subject: [PHP-WIN] Re: generate img with fonts...
> Yes yes, you guys are hilarious but at least try to answer his question!
:)
>
> Bobo, I assume you're using Win32 and true type fonts, try this chunk of
> code:
>
> You *will* need to install freetype (www.freetype.org) and enable gd/gd2
> (depending on your version of php) extensions on your php install.
>
> ref: http://www.php.net/manual/en/function.imagettftext.php
>
> <?php
> Header("Content-type: image/jpeg");
> $outputtext = "Welcome";
> $fontfilename = "BlissIf Caps BoldItalic.ttf"; // whatever the actual
> filename is called
> $im = ImageCreate(240, 30);
> $black = ImageColorAllocate($im, 0, 0, 0);
> $white = ImageColorAllocate($im, 255, 255, 255);
> if (strpos(strtoupper($HTTP_SERVER_VARS["SERVER_SOFTWARE"]),"WIN",0)
> === false) {
> /* UNIX OS, use unix style paths and fontsize */
> $fontsize = 60;
> $fontpath = "/usr/local/apache/htdocs/fonts/";
> } else {
> /* Windows OS, use windows style paths and fontsize */
> $fontsize = 8;
> $fontpath = 'C:\\windows\fonts\\';
> }
> ImageTTFText($im, $fontsize, 0, 20, 20, $white, $fontpath. $fontfilename,
> $outputtext);
> ImageJpeg($im);
> ImageDestroy($im);
> ?>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hello, I have an intresting problem: I want to let users upload sourcecode
and then compile it using my cygwin gcc... But one thing at a time... I
can't get that gcc to execute...
shell_exec("gcc temp.c"); # Doesn't work as that will use MinGW
shell_exec("D:\\cygwin\\bin\\gcc.exe temp.c"); /* Gives some error about dll
stuff (procedure not found I think)*/
So my next though was to open "bash.exe --login -I" and fwrite the
commands... But that still tries to use the mingw compiler it seems...Guess
there's some environiment problem... So I figured I could use virtual() to a
cgi script with this as first line:
#!D:/cygwin/bin/perl
and then use the perl open(), with |/cygdrive/d/bin/gcc.exe temp.c as
argument... Seems like it executes the right compiler then, but then I get
millions of errors caused by *.h can't be opened (yes, the source tries to
include them), so I though about passing -B /usr/include to it... But those
errors still appear... Also, it feels somewhat bad to use virtual() to call
perl scripts, so I was wondering if you ppl have some nice idea on how I
would do it?
Paths:
Cygwin: d:\cygwin
PHP: C:\PHP (4.3.3, zip from php.net, installed as Apache 1.3.28 module)
Apache: D:\Apache (installed using .msi package, as service)
Perl: D:\perl\bin\perl.exe (or D:\cygwin\bin\perl.exe)
Script: D:\www2\compile.php, D:\www2\compiling\compile_cyg.cgi
Sourcecode: D:\www2\compiling\temp.c (yes, only one file yet, that's a later
problem)
pwd returns I'm in the 'compiling' folder, in the php script, I chdir() to
get into that folder...
Can anyone help, please? Security is not a concern, it's private, and it's
for learning purposes mostly... I use winXP home... I can install stuff like
I want, that's not a problem... Thanks in advance!
--
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hello
I have following script:
$MyEx = new COM("Excel.Application",null,CP_UTF8) or Die ("Did not connect");
$xls = &$MyEx->application->Workbooks->Open(getcwd()."\\arkusz.xls") or Die ();
$xls->close(false);
$xls->release();
unset($xls);
$MyEx->quit();
$MyEx->release();
unset($MyEx);
After exiting php (4.3.3) excel is still in memory.
Does it correctly work for anybody?
Without opening xls it's ok (however useless):
$MyEx = new COM("Excel.Application",null,CP_UTF8) or Die ("Did not connect");
$MyEx->quit();
$MyEx->release();
unset($MyEx);
BTW. is there a way to use Excel constants - eg. for borderaround method?
BR
--
\ Grzegorz Godlewski /
/ Mail: ggodlewski()pld-linux.org GG: 1600799 ICQ UIN: 118261503 \
--- End Message ---