|
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-help_at_lists.php.net
Date: Fri Jul 12 2002 - 13:17:36 CDT
php-general Digest 12 Jul 2002 18:17:36 -0000 Issue 1460
Topics (messages 107322 through 107411):
Can not delete file from the linux server
107322 by: Anan
Re: 1 Form, 2 Submit-Buttons
107323 by: César Aracena
107328 by: Johan Holst Nielsen
107329 by: Johan Holst Nielsen
107340 by: John Holmes
Re: Editing files by line
107324 by: Lord Loh.
107369 by: Analysis & Solutions
Re: Execute script then output image.
107325 by: JJ Harrison
Single website Unix + Windows servers
107326 by: olinux
107327 by: Matt Parlane
Can not delete files that were uploaded
107330 by: Anan
107338 by: Dyon Beaart
Re: Customise Index page using PHP????
107331 by: olinux
Re: how to know upload progress status
107332 by: Alberto Serra
Re: mysql question
107333 by: Alberto Serra
Re: Help a Header Headache!!
107334 by: Chris Hewitt
Re: Development Tools
107335 by: Matt Williams
gd ->1:image resolution 2:font quality
107336 by: robert
107345 by: Pekka Saarinen
107353 by: robert
107400 by: Andrew Chase
Re: http upload corrupts my file on apache and Win XP
107337 by: Mathias B
Displaying Database Results
107339 by: Mark Colvin
107341 by: John Holmes
Re: One more thing... e-mails format
107342 by: Chris Hewitt
107362 by: Miles Thompson
107368 by: Chris Hewitt
Re: Searching a Paradox Table with my PHP Script..
107343 by: Kondwani Spike Mkandawire
Weird :: behaviour
107344 by: Alberto Serra
Re: if syntax
107346 by: Ford, Mike [LSS]
107348 by: Ford, Mike [LSS]
107404 by: Chris Earle
107409 by: Chris Earle
Re: PHP and geographic maps
107347 by: Lowell Allen
107350 by: robert
107356 by: Stig Venaas
107361 by: Lowell Allen
107370 by: Analysis & Solutions
107371 by: Lowell Allen
107372 by: Lowell Allen
107403 by: Miguel Cruz
Re: Linux Newsgroup... ('continue');
107349 by: Scott Fletcher
107351 by: Scott Fletcher
107401 by: Miguel Cruz
107407 by: Scott Fletcher
help with mail() function!
107352 by: Thomas \"omega\" Henning
107359 by: Kondwani Spike Mkandawire
107366 by: Thomas \"omega\" Henning
Announcement: FUDforum 2.2.2 Released
107354 by: Ilia A.
107355 by: Jeff Lewis
107357 by: Ilia A.
PHP meetup
107358 by: jon roig
107360 by: Jay Blanchard
107384 by: Jay Blanchard
107389 by: jon roig
107399 by: Martin Clifford
Emulating Java Exceptions
107363 by: Garland Foster
107375 by: Alberto Serra
107376 by: Garland Foster
107391 by: Alberto Serra
A question of style ...
107364 by: Jay Blanchard
107365 by: Martin Clifford
rfc1867.c.diff-4.0.6 for php-4.0.4pl1
107367 by: Robert Covell
Re: using pdf template
107373 by: Tobias Talltorp
Write EXIF - is it possible?
107374 by: Victor Spång Arthursson
' giving problem while inserting in table.
107377 by: Anil Garg
107378 by: Martin Clifford
107392 by: John Holmes
107395 by: Anil Garg
107402 by: Anil Garg
Re: [PHP-WIN] More bzip woes! No file written...
107379 by: Michael Davey
Final Year Computer Science Project involving PHP
107380 by: Serdar Sokmen
107382 by: Martin Clifford
107383 by: Jay Blanchard
107386 by: Richard Black
107387 by: Matt Schroebel
107388 by: Garland Foster
107390 by: Alberto Serra
107398 by: Kondwani Spike Mkandawire
Moving the pointer in a file...
107381 by: Kondwani Spike Mkandawire
107408 by: Kondwani Spike Mkandawire
PHP and ORACLE
107385 by: Ricardo Fitzgerald
107394 by: Alberto Serra
107406 by: Miguel Cruz
PHP meetup [CROSS-POST] Meet other PHP Developers in Your Area
107393 by: Jay Blanchard
odbc_exec(), any way to validate whether it work or not?
107396 by: Scott Fletcher
Re: uploads work sometimes
107397 by: Jason Wong
PHP/cron fetching and processing email from a POP3 account
107405 by: D. Reid Wilson
PHP codes and variables
107410 by: J. Alden Gillespy
107411 by: Miguel Cruz
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:
Hello,
I use PHP to upload files to the web server via web browser. However, I can
not delete the files later cause the Redhat linux server running on safe
mode. Do I have to changed the owner of the file during the file uploading
time?
Please let me know how to solve this problems.
Anan
attached mail follows:
Look at the switch function
http://www.php.net/manual/en/control-structures.switch.php or make
decisions with using IF statements based on the variable's value sent
(button pressed).
C.
> -----Original Message-----
> From: Martin Thoma [mailto:martin
radiok2r.de]
> Sent: Friday, July 12, 2002 3:09 AM
> To: php-general
lists.php.net
> Subject: [PHP] 1 Form, 2 Submit-Buttons
>
> Hello! I want to make a form (a wizard) which has 2 Submit-Buttons
(Back
> & Next). The buttons should be images. How can I make php see, which
> button has been pressed?
>
> Martin
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
> Hello! I want to make a form (a wizard) which has 2 Submit-Buttons (Back
> & Next). The buttons should be images. How can I make php see, which
> button has been pressed?
<?php
if(isset($_POST["submit_back"])) {
//go back
}
else {
//go forward
}
?>
<form action="<?=$_SERVER["PHP_SELF"]?>" method="post">
<input type="submit" name="submit_back" value="Back">
<input type="submit" name="submit_next" value="Next">
</form>
attached mail follows:
Johan Holst Nielsen wrote:
>> Hello! I want to make a form (a wizard) which has 2 Submit-Buttons (Back
>> & Next). The buttons should be images. How can I make php see, which
>> button has been pressed?
>
>
>
> <?php
> if(isset($_POST["submit_back"])) {
> //go back
> }
> else {
> //go forward
> }
> ?>
> <form action="<?=$_SERVER["PHP_SELF"]?>" method="post">
> <input type="submit" name="submit_back" value="Back">
> <input type="submit" name="submit_next" value="Next">
> </form>
>
Oooh sorry... offcouse
<input type="image" src="image.png" name="submit_back...
attached mail follows:
> give a name to the buttons ie: Next
> <input name="Next" type="image" id="Next" src="whatever">
>
> and check in php
> <?
> if(isset($Next.x) && isset($Next.y)){
> // do somehting here
> }
> ?>
Actually, when an image is clicked on to submit the form, two variables
are created. If the image is named 'Next' like the example above, then
you'll have $Next_x and $Next_y (or the equiv. in the _GET or _POST
array). The variables will hold the x/y value of where the image was
clicked. You can just check to see if one of those variables is set.
---John Holmes...
attached mail follows:
int fseek (int fp, int offset [, int whence])
int ftell (int fp)
int rewind (int fp)
These syntaxes might be useful...
Read more in File System Functions of the PHP Docs.
Hope these help
Lord Loh.
attached mail follows:
On Fri, Jul 12, 2002 at 12:04:55PM +0530, Lord Loh. wrote:
> int fseek (int fp, int offset [, int whence])
> int ftell (int fp)
> int rewind (int fp)
> These syntaxes might be useful...
> Read more in File System Functions of the PHP Docs.
Unfortunately, if a file is opened for appending via fopen('name', 'a'),
the manual says the data is put at the end of the file regardless of using
fseek().
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
attached mail follows:
I found it.
I used header("Location: http://www.yoursite.com/images/stat.gif");
-- JJ Harrison webmastertececo.com www.tececo.com
"David Otton" <david.otton
overnetdata.com> wrote in message news:7ltqiu0e2i0guh3c87sesif0n3k7lpjfh1
4ax.com... > On Thu, 11 Jul 2002 22:01:03 +1000, you wrote: > > >> You need to output the correct content-type header for the image (eg > >> image/gif), take it's size and output it as content-length, and > >> suppress error reporting. Then output the image data. > > >There was a much simpler way. It just said the location of the file. > > > >I could use your method but the other one was much simpler. > > Is this what you meant? > > http://news.php.net/article.php?group=php.general&article=106348 > http://news.php.net/article.php?group=php.general&article=106370 > > Looks like the same thing I suggested to me... > > $filename = "your/file.gif"; > > // output the correct content-type header > header("Content-Type: image/gif"); > > // take it's size and output it as content-length > header("Content-length:".filesize($filename)); > > // Then output the image data > readfile($filename); > > djo >
attached mail follows:
I am working on integrating our current website to apache/redhat/php/mysql
Due to a recent investment in an ASP project I must have the windows / SQL server machine running this application.
Any suggestions to keeping the site 'seamless' or ideas that will help
Thank you, olinux
--- Matt Parlane <matt
zevi.net> wrote:
> Hi Brian...
>
> I have it set up just like Robert, and I really
> think it's the way to go -
> having Apache as the web-accessible server gives me
> much more peace of mind
> than having IIS sitting out there just waiting to be
> attacked.
>
> Do you realize you can have content served by IIS
> accessed without using the
> :8080 (or whatever) port number?
> I'm not sure if you're aware of this but here's the
> relevant parts of my
> httpd.conf:
>
> NameVirtualHost *
> LoadModule proxy_module modules/mod_proxy.so
> LoadModule proxy_connect_module
> modules/mod_proxy_connect.so
> LoadModule proxy_http_module
> modules/mod_proxy_http.so
>
> <VirtualHost *>
> ServerName zevi.net
> ServerAlias zevi.net www.zevi.net
> ProxyRequests Off
> ProxyPass / http://zevi.net:4040/
> ProxyPassReverse / http://zevi.net:4040/
> </VirtualHost>
>
> <VirtualHost *>
> ServerName newworkstudio.com
> ServerAlias newworkstudio.com www.newworkstudio.com
> DocumentRoot "C:/htdocs/newworkstudio.com"
> DirectoryIndex index.html
> </VirtualHost>
>
> So, for each ASP site (or for each site served by
> IIS), just add a
> VirtualHost entry using the ProxyPass directive to
> send it to the IIS
> server. The IIS server doesn't have to be on the
> same computer by the way -
> or even the same network...
>
> Hope that helps.
>
> Matt Parlane
> Zevi Interactive
> matt
zevi.net
>
> "Brian McGarvie" <bmcgarvie
lennox-mckinlay.co.uk>
> wrote in message
>
news:1E6C09BA9AA33E408D6531ADE236DD01060F5E
ad2.lan.lennox-mckinlay.co.uk...
> I will probably do this the other way round as we
> have a few sites...
>
> so if i have a single file with a frame and point
> contents of frame to
> apache this should work?
>
> > -----Original Message-----
> > From: Collins, Robert [mailto:RCollins
NORTA.COM]
> > Sent: 09 July 2002 4:41 PM
> > To: Brian McGarvie; php-windows
lists.php.net;
> > php-general
lists.php.net
> > Subject: RE: [PHP] Dual Server...
> >
> >
> > I have Apache and IIS coexisting on my intranet
> server and
> > the way I set
> > them up was to put each on a different port.
> (Apache serves
> > http://intranet
> > and IIS serves http://intranet:8080) this appears
> to work
> > fine. Hope this
> > helps
> >
> > Robert W. Collins II
> > Webmaster
> > New Orleans Regional Transit Authority
> > Phone : (504) 248-3826
> > Fax: (504) 248-3866
> > Email : rcollins
norta.com
> <mailto:rcollins
norta.com>
> >
> >
> >
> > -----Original Message-----
> > From: Brian McGarvie
> [mailto:bmcgarvie
lennox-mckinlay.co.uk]
> > Sent: Tuesday, July 09, 2002 10:39 AM
> > To: php-windows
lists.php.net;
> php-general
lists.php.net
> > Subject: [PHP] Dual Server...
> >
> >
> > OK following from my thread 'Browser Issues' I
> have found
> > that when serving
> > the site from apache, that the aforementioned
> errors go
> > away... mostly...
> >
> > OK so... What is the best way to setup so that
> IIS/Apache co-exist...
> >
> > I'd like to keep the 'entry' to the site on IIS as
> we have other sites
> > too... and use apache to serve the content of it.
> >
> > Any help mucho appreciated... also working to a
> deadline!
> >
> > --
> > PHP General 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
>
__________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
attached mail follows:
Try: http://www.phpbuilder.com/columns/banahan20010720.php3
I'd also try setting up Apache on your windows box - on a different port if you have to. It just moves you one step closer to what it would be like running on linux.
Matt
"Olinux" <olnx
yahoo.com> wrote in message
news:20020712064550.39626.qmail
web11801.mail.yahoo.com...
> I am working on integrating our current website to
> apache/redhat/php/mysql
>
> Due to a recent investment in an ASP project I must
> have the windows / SQL server machine running this
> application.
>
> Any suggestions to keeping the site 'seamless' or
> ideas that will help
>
> Thank you,
> olinux
>
>
> --- Matt Parlane <matt
zevi.net> wrote:
> > Hi Brian...
> >
> > I have it set up just like Robert, and I really
> > think it's the way to go -
> > having Apache as the web-accessible server gives me
> > much more peace of mind
> > than having IIS sitting out there just waiting to be
> > attacked.
> >
> > Do you realize you can have content served by IIS
> > accessed without using the
> > :8080 (or whatever) port number?
> > I'm not sure if you're aware of this but here's the
> > relevant parts of my
> > httpd.conf:
> >
> > NameVirtualHost *
> > LoadModule proxy_module modules/mod_proxy.so
> > LoadModule proxy_connect_module
> > modules/mod_proxy_connect.so
> > LoadModule proxy_http_module
> > modules/mod_proxy_http.so
> >
> > <VirtualHost *>
> > ServerName zevi.net
> > ServerAlias zevi.net www.zevi.net
> > ProxyRequests Off
> > ProxyPass / http://zevi.net:4040/
> > ProxyPassReverse / http://zevi.net:4040/
> > </VirtualHost>
> >
> > <VirtualHost *>
> > ServerName newworkstudio.com
> > ServerAlias newworkstudio.com www.newworkstudio.com
> > DocumentRoot "C:/htdocs/newworkstudio.com"
> > DirectoryIndex index.html
> > </VirtualHost>
> >
> > So, for each ASP site (or for each site served by
> > IIS), just add a
> > VirtualHost entry using the ProxyPass directive to
> > send it to the IIS
> > server. The IIS server doesn't have to be on the
> > same computer by the way -
> > or even the same network...
> >
> > Hope that helps.
> >
> > Matt Parlane
> > Zevi Interactive
> > matt
zevi.net
> >
> > "Brian McGarvie" <bmcgarvie
lennox-mckinlay.co.uk>
> > wrote in message
> >
>
news:1E6C09BA9AA33E408D6531ADE236DD01060F5E
ad2.lan.lennox-mckinlay.co.uk...
> > I will probably do this the other way round as we
> > have a few sites...
> >
> > so if i have a single file with a frame and point
> > contents of frame to
> > apache this should work?
> >
> > > -----Original Message-----
> > > From: Collins, Robert [mailto:RCollins
NORTA.COM]
> > > Sent: 09 July 2002 4:41 PM
> > > To: Brian McGarvie; php-windows
lists.php.net;
> > > php-general
lists.php.net
> > > Subject: RE: [PHP] Dual Server...
> > >
> > >
> > > I have Apache and IIS coexisting on my intranet
> > server and
> > > the way I set
> > > them up was to put each on a different port.
> > (Apache serves
> > > http://intranet
> > > and IIS serves http://intranet:8080) this appears
> > to work
> > > fine. Hope this
> > > helps
> > >
> > > Robert W. Collins II
> > > Webmaster
> > > New Orleans Regional Transit Authority
> > > Phone : (504) 248-3826
> > > Fax: (504) 248-3866
> > > Email : rcollins
norta.com
> > <mailto:rcollins
norta.com>
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Brian McGarvie
> > [mailto:bmcgarvie
lennox-mckinlay.co.uk]
> > > Sent: Tuesday, July 09, 2002 10:39 AM
> > > To: php-windows
lists.php.net;
> > php-general
lists.php.net
> > > Subject: [PHP] Dual Server...
> > >
> > >
> > > OK following from my thread 'Browser Issues' I
> > have found
> > > that when serving
> > > the site from apache, that the aforementioned
> > errors go
> > > away... mostly...
> > >
> > > OK so... What is the best way to setup so that
> > IIS/Apache co-exist...
> > >
> > > I'd like to keep the 'entry' to the site on IIS as
> > we have other sites
> > > too... and use apache to serve the content of it.
> > >
> > > Any help mucho appreciated... also working to a
> > deadline!
> > >
> > > --
> > > PHP General 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
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.yahoo.com
attached mail follows:
Hello,
I use PHP to upload files to the web server via web browser. However, I can not delete the files later cause the Redhat linux server running on safe mode. Do I have to changed the owner of the file during the file uploading time?
Please let me know how to solve this problems.
Anan
attached mail follows:
You can try to 'chmod' it first :
chmod ($myfile, 0777);
and then do an exec or passthru..
exec("rm -f $myfile");
Note the '
', if the chmod fails, he doesn't show it...
Good luck Dyon
"Anan" <anan
etcyber.net> schreef in bericht
news:20020712071858.54912.qmail
pb1.pair.com...
> Hello,
>
> I use PHP to upload files to the web server via web browser. However, I
can
> not delete the files later cause the Redhat linux server running on safe
> mode. Do I have to changed the owner of the file during the file uploading
> time?
>
> Please let me know how to solve this problems.
>
> Anan
>
>
attached mail follows:
you can change a setting in apache that will do that -
add 'Indexes' to the Options line under <Directory /home/*/public_html>
olinux
--- Craig <craig
sitedesign.net> wrote:
> Is there a way to create a customised version of the
> index directory
> structure using php?
>
> Eg listing all the pages in the specific directory
> when an index page isnt
> created?
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
attached mail follows:
ðÒÉ×ÅÔ!
John Holmes wrote: > Not possible with HTTP, as far as I know. The file is simply sent, > there's no communication back and forth. > > ---John Holmes...
That's from within a single script. But it becvomes possible if you have a page like this
+---------------+ ! +---+ ! ! main ! c ! ! ! +---+ ! +---------------+
where main is executing the upload and c runs by metarefresh a second script that watches how the temp file is growing on the server. So the guy is right in his second try to it.
Sadly the $_FILES variables will be available only after the upload is completed, so in order to have that up and running he will also need to:
1) create a uniquely identified dir to which only that user upload will be sent (that's done when dynamically creating the upload form) 2) pass the dir name along to the monitoring script. 3) clear the directory on upload successful completion 4) periodically clear the amount of temporary dirs that have remained on the server as a result for process failures.
If all you do is managing file uploads all the time you might want to limit your number of concurrent uploads by creating a pool of TMP dirs that you will share among users. When they are all got your users have to wait, but you don't freak out because of an exponential growth of abandoned dirs.
It *is* complicated. But if you really have to do it... I wish you not to need it, anyway.
ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ×
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is.......
attached mail follows:
ðÒÉ×ÅÔ! John Holmes wrote: > Gesundheit >>*if* that was on Oracle *and* the table was big you'd notice that your >>performance goes down. Don't ask me why. And I never checked it on >>MySql. But watch out for betweens. Check them. > > Yes, good point. I don't know if it matters in MySQL either, but always > test your queries and see which is faster. EXPLAIN may come in handy > here. I don't see why it would be different, it seems like both would be > interpreted the same...
Most PHP apps underlying storage simply does not reach the dimensions needed for the difference to show up (that is, when rows come in hundred of thousands and you have a fairly good normalized data structure, say at least in the third form). Yest if you don't normalize data you might see it degrade when you are just in the pale realm of thousands.
For what I could make out of it myself, it has to do with the fact that an SQL macro instruction (if you pardon the use of the "macro" term in this context) needs to be translated to some set of "and...or" clauses before the engine can actually execute it. Some engine does the translation on a "per row" basis, which is why they can end-up killing your performance.
That's just my own fantasy about it, no such assertion is in *any* docs that I saw. But if it was done just once the size of your query set should be irrilevant to performance, methinks.
ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ×
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is.......
attached mail follows:
Chris Knipe wrote:
>I just had a look through some of my source.... Here's what I use..
>
> /***************************************
> * Title.........: HTML Mime Mail class
> * Version.......: 1.26
> * Author........: Richard Heyes <richard.heyes
heyes-computing.net>
> * Filename......: html_mime_mail.class
> * Last changed..: 25/06/2000
> */
>
>A simple search on google / phpclasses.org should reveal the tarbal.
>
OK, I think we all thought you were using the mail function inbuilt
within php and one intended for html may have proven more suitable. I
have not used the one you have, you could give Manuel's a try if you
don't find a solution using the present one.
Chris
>
attached mail follows:
On Wednesday 10 July 2002 20:51, Matthew K. Gold wrote:
> Of course, Macromedia recently bought Allaire, so who knows what the next > version of Homesite will look like...
Dreamweaver MX
They seem to have merged all the editing bits of Homesite in with Dreamweaver.
I must say this is the is best incarnation of DW yet, I've been using it since v1.2 and find MX great, especially now they've improved there support for CSS positioning in the preview window.
I haven't had time to look into the php side of things on it.
I currently use Zend 2.5 which is a vast improvement over 2. The php/html code completion is very good. I got it cheap or I probably wouldn't have shelled out that much for it. Zend now have released 2.0.1 as freeware, but I'm not sure if this is a cutdown 2 or the full thing, but as I say, this really is not reflection of how much better 2.5 is.
I use Zend mainly due to the fact that most of my development is on linux and due to the fact that it is java, it looks and feels the same wheter I'm on doze or linux.
For a free windows php editor I like phpedit, which despite it's bugs is very good.
I also like ultraedit for general editing, etc...
I haven't tried any other as it would consume far too much time and I probably never get any work done.
matt
attached mail follows:
hi
Couldn't find a way for changing resolution, for png-image create with gd.
Default resolution of gd is 72dpi.
Created picture is a barcode. From TTF - Font.
thanks for help and hints. robert
attached mail follows:
At 7/12/2002, you wrote: >hi > >Couldn't find a way for changing resolution, >for png-image create with gd. > >Default resolution of gd is 72dpi. > >Created picture is a barcode. > From TTF - Font. > >thanks for help and hints. >robert
Hi Robert,
If your intention is to use dpi in order to offer different sizes for printing (from web browser): you can go around that by just recreating the images from TTF straight to correct pixel resolution, i.e you could ask user the target dpi and create a new image for that dpi.
Web browsers usually ignore dpi. Dpi is just a number which is attached to the photo in order to suggest a printing size (dots per inch). 100x100 photo with dpi 200 will print .5 inch on paper, and 100x100 photo with dpi 10 will print 10 inch on paper.
Personal computer monitors and internet browsers don't use dpi, they just place one pixel on selected resolution matrix. The talk "Mac is 72" and "PC is 96" has no meaning because screen dpi changes with resolution and monitor image size adjustments.
------------------------- Pekka Saarinen http://photography-on-the.net -------------------------
attached mail follows:
> Couldn't find a way for changing resolution, > for png-image create with gd.
My idea to solve the problem: 1:Picture to create with gd, scale up by factor 69.4[?] (for 600dpi ) Result is an huge 72 dpi picture. 2:Resize and convert result picture to 600dpi by an external program.
Next question: Which external program I can use? Have to work on windows 2. This is not the reason for my lack of english skills ;)
> Default resolution of gd is 72dpi. > > Created picture is a barcode. > From TTF - Font. > > thanks for help and hints. > robert >
attached mail follows:
The GIMP is free (as in speech), and I've found it to work quite well on windows: http://www.gimp.org/
The GIMP for Windows page: http://www.gimp.org/~tml/gimp/win32/
-Andy
> -----Original Message-----
> From: moppipost
web.de [mailto:moppipost
web.de]>
> My idea to solve the problem:
> 1:Picture to create with gd, scale up by factor 69.4[?] (for 600dpi )
> Result is an huge 72 dpi picture.
> 2:Resize and convert result picture to 600dpi by an external program.
>
> Next question:
> Which external program I can use?
> Have to work on windows 2.
> This is not the reason for my lack of english skills ;)
attached mail follows:
FYI: i solved the problem myself by simply installing Apache 2.0.39 instead of 2.0.36, and then downloading the appropriate php4apache2.dll from php.net (http://www.php.net/manual/en/install.apache.php)
Hope it helps someone else...
Mathias
"Mathias B" <mathiasb
email.dk> wrote in message
news:20020708120504.63279.qmail
pb1.pair.com...
> Hello
>
> I use: Apache 2.0.36 and PHP 4.2.1 on WinXP
>
> I have major problems when trying to upload files with the following code:
>
> HTML code:
>
> <form name="theForm" method="post" action="../Doc_List/"
> ENCTYPE="multipart/form-data">
> <input type="file" name="data" size="25">
> <input type="submit" name="Action" value="<? echo(__("Add")); ?>">
> </form>
>
> Going to the PHP handler:
>
> if (is_uploaded_file($data))
> {
> $realname = $_FILES['data']['name'];
>
> echo "data: $data
> run:".move_uploaded_file($_FILES['data']['tmp_name'],
> "c:\\windows\\temp\\php\\".$realname);
> }
>
> The program prints: data: C:\WINDOWS\TEMP\php19C.tmp run:1
> Everything goes fine if it is just a small text file. And everything seems
> to also go fine for larger binary files (e.g. a word document), the
document
> gets copied to the temp directory. The problem is just that the file gets
> completely scrambled on the way. The file almost doubles in size and the
> binary data is not the same at all. seems like there is put some kind of
> formatting in on the way. (Looks like it gets alot of \0 instead of NULL
> bytes everywhere like some others on this group and on php.net has
> experienced, but i just can't get it solved...)
>
> I have these set in the php.ini file
>
> magic_quotes_gpc = Off
> magic_quotes_runtime = Off
> magic_quotes_sybase = Off
>
> Please Help... :)
>
> /Mathias Bertelsen
>
>
>
attached mail follows:
I have a php script that queries a MySQL database and I loop through the results displaying them as follows:
echo "<td width='100'><input name='description' type='text' size='45' maxlength='20' value=".StripSlashes(mysql_result($badgedetails, $i, 'descr'))." tabindex='1'/></td>";
The problem is that as per the example above, the text displayed is "Name" but it should be "Name Badge". With all my fields, the text is displayed OK until it hits a space. Why does this occur?
**************************************************** This e-mail is intended for the recipient only and may contain confidential information. If you are not the intended recipient then you should reply to the sender and take no further ation based upon the content of the message. Internet e-mails are not necessarily secure and CCM Limited does not accept any responsibility for changes made to this message. Although checks have been made to ensure this message and any attchments are free from viruses the recipient should ensure that this is the case. ****************************************************
attached mail follows:
Put quotes around your value
<input name='description' value='Name Badge' ...
vs
<input name='description' value=Name Badge ...
HTML will see the Badge or anything after a space as an extra attribute to the tag.
---John Holmes...
> -----Original Message-----
> From: Mark Colvin [mailto:mark.colvin
ccmltd.co.uk]
> Sent: Friday, July 12, 2002 6:10 AM
> To: Php (E-mail)
> Subject: [PHP] Displaying Database Results
>
> I have a php script that queries a MySQL database and I loop through
the
> results displaying them as follows:
>
> echo "<td width='100'><input name='description' type='text' size='45'
> maxlength='20' value=".StripSlashes(mysql_result($badgedetails, $i,
> 'descr'))." tabindex='1'/></td>";
>
> The problem is that as per the example above, the text displayed is
"Name"
> but it should be "Name Badge". With all my fields, the text is
displayed
> OK
> until it hits a space. Why does this occur?
>
>
> ****************************************************
> This e-mail is intended for the recipient only and
> may contain confidential information. If you are
> not the intended recipient then you should reply
> to the sender and take no further ation based
> upon the content of the message.
> Internet e-mails are not necessarily secure and
> CCM Limited does not accept any responsibility
> for changes made to this message.
> Although checks have been made to ensure this
> message and any attchments are free from viruses
> the recipient should ensure that this is the case.
> ****************************************************
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Ce'sar Aracena wrote:
>It's me again... and not PHP related. Why is it that every piece of mail I >send to the list comes back as a *rich text" or sometime even "plain >text", when my M$ Outlook is set to send HTML messages? > It is always been the convention on mailing lists and newsgroups to post to it in plain text only. There are two reasons: 1. Some people will not be using html or rtf clients. 2. Someone pays for the disc storage space to archive them, so the fewer bytes the better. It is for this reason that snipping unnecessary parts of a previous posting when replying is considered good practice (OK, I'm not good at it). Short (or no) sig files too.
Chris
attached mail follows:
Cesar ... You've touched a nerve ...
For a start, because the list requires it.
Second, because we have no idea what kind of client the members are using.
Third, plain text is all that is needed to communicate the ideas and concepts necessary to this list.
Fourth, plain text renders blocks of code, indentation, etc. cleanly and consistently.
Fifth, "rich" email or HTML email is a crock promoted by Microsoft, and results in unnecessarily bloated messages.
Sixth, the "features" of HTML email are often employed to the detriment of clear and concise writing.
And I could probably come up with more, but those are just off the top of my head. I don't know if you were around when W95 first came out, but Outlook offered, and it still does, to make Word the default email editor. For about 6 mos life on mailing lists was hell until people were trained to turn that off. Can you imagine reading an HTML formatted message in Pegasus, mutt or pine?
Cheers - Miles Thompson
At 02:45 AM 7/12/2002 -0300, César Aracena wrote:
>It’s me again… and not PHP related. Why is it that every piece of mail I
>send to the list comes back as a *rich text” or sometime even “plain
>text”, when my M$ Outlook is set to send HTML messages? I think it would
>make sense if *EVERYBODY* e-mail where received like mine because of
>server’s settings, but some people letters appear as they intend to be.
>Any thoughts? Thanks,
>
>Cesar Aracena <mailto:webmaster
icaam.com.ar>
>CE / MCSE+I
>Neuquen, Argentina
>+54.299.6356688
>+54.299.4466621
>
attached mail follows:
Miles Thompson wrote:
> Cesar ... > You've touched a nerve ...
Yep, sure have.
> still does, to make Word the default email editor. For about 6 mos > life on mailing lists was hell until people were trained to turn that > off.
And I still work with some people that think using MS Word as an email editor is great!
Chris
attached mail follows:
I have a lot of things to change including the whole strategy... Thanks for the responses... It ended up being a whole number of factors that were slowing the Script down...
Thanks again...
"Miles Thompson" <milesthompson
ns.sympatico.ca> wrote in message
news:5.0.2.1.0.20020711170908.02b8d008
pop1.ns.sympatico.ca...
>
> Why are you building the array? Why not let SQL do the work?
>
> Select col1, col2, col3, ... coln from target_table where
> field_holding_target_value = '$target_value_i_want'
>
> If you have no records returned, then no match, otherwise you have one or
> more matches. In the second case you can proceed with your processing.
I've
> also noted Chris Hewitt's suggestions re number of connections, etc.;
> that's worth checking as well.
>
> See below as well ...
>
> Cheers - Miles Thompson
>
> At 04:00 PM 7/11/2002 -02-30, Kondwani Spike Mkandawire wrote:
> >Hallo folks: (Sorry for a repost on the same topic just
> >that my first one never got through)...
> >
> >I have a bit of an issue with Paradox Table Searching...
> >I have a fairly large table (4MB+), here is the problem:
> >
> >When I run a search for an element in the Table on
> >my localhost which is running Apache and php 4.1,
> >I have no issues with speed... However when I run it
> >on the Server at my work place, which is running IIS
> >Server (I am not sure which version), and the same
> >PHP version on my Workstation it takes ages to execute...
> >
> >I have gotten suggestions and have revised my Script
> >over and over using odbc_exec() with SQL commands
> >SELECT myColumn FROM myTable, I have used
> >a COUNT SQL command suggested on this forum,
> >My general algorithm is as follows...
> >
> >1) I create an Array using odbc_fetch_array this Array
> > contains one column from the Table I am searching...
>
> How are you populating the array?
>
> >2) Keep trying to matchup each element in the array
> > against the validation element being checked...
> > returning found within a sequential loop...
> > and eventually "Not Found"...
>
> Are you hitting the database each time through the loop, or stepping
> through the result set?
> How many elements in the array?
>
> >3) I suppose the sequential loop is whats killing me,
> > but the table is not ordered hence I am forced to
> > do a sequential search.. Does anyone else have
> > an idea for a quicker and much more efficient
> > algorithm...
>
> What reasons are there for not ordering the table? Indexes speed things up
> dramatically, for both the users on the LAN and those accessing via the
> 'Net. Use indexes, they're your friend!
>
>
> >Once again the issue of Speed is a non-factor on
> >my local machine running Apache but it does become a
> >factor when I run it on our Server, which is running an
> >IIS Server...
> >
> >Thanks in advance...
> >
> >Kondwani
>
>
attached mail follows:
ðÒÉ×ÅÔ!
<?php class a { function test() { return 1; } }
class b { function test() { return 2; } }
$myclass = 'a'; echo $myclass::test(); ?>
This will not work. It will produce in instead a: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting ',' or ';'
Funnily enough, the NEKUDOTA part looks slavian (sort of "nowhereToGo", not russian, maybe it's polish), so I suspect it means it cannot resolve a parametrized call. It might be a coincidence.
Everything else *does* support calling class methods by dynamically referencing a class name. For those working with plugins this a *serious* minus. Right now I found a way not to need the call, but please let me know if you ever met this thing.
For those who aren't into OOPHP the :: operator is supposed to execute a function call on a class, instead of doing it on an instance. So you do not need to create an instance and can use a class as a normal library when you need to do so. But this way your plugin classes cannot be used as libraries.
Static calls like a::test() or b::test() will work as expected.
ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ×
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is.......
attached mail follows:
> -----Original Message-----
> From: Chris Earle [mailto:chris
earleweb.com]
> Sent: 11 July 2002 18:28
> To: php-general
lists.php.net
> Subject: Re: [PHP] Re: if syntax
>
>
> > when it would be just as easy, and more functional, to
> write this (even
> > saves a few characters, too!):
> >
> > if (x):
> > while (y):
> > ...
> > endwhile;
> > ...
> > endif;
>
> You're adding characters...
>
> "{" + "}" opposed to ":" + "endif;"
No, no, no! Look again -- I was contrasting this with:
if (x) { while (y) { ... } // end while ... } // end if
which I see quite often in other people's scripts.
Then the difference is " {" and "} // end if" as opposed to ":" and "endif;", and indeed you are saving characters -- and it's more functional, because the PHP processor is getting to check the end* statements match the correct block opener, rather than just matching back to the next unclosed "{" regardless of whether it's on an appropriate block opener or not. To me, this is such a huge advantage that I just can't understand why people insist on sticking with the all-braces style, and that's regardless of the fact that I just think it's more readable.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford
lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
attached mail follows:
> -----Original Message-----
> From: Richard Lynch [mailto:rich
phpbootcamp.com]
> Sent: 11 July 2002 23:38
>
[....]
>
> I apologize profusely to the fans of the "alternative syntax"
> who are still
> using it.
>
> I personally find the endxxx; to be more of an eyesore, but that's a
> religious argument. :-)
Oh, yes, absolutely -- to me, braces all over the place are an eyesore, but I wouldn't argue your right to program the way you like. That's one of the plus points of PHP, it lets both of us do what we think is the beautiful thing!
> >I've pretty much lost count of the number of times I've seen > code written > >like this: > > > > if (x) { > > while (y) { > > ... > > } // end while > > ... > > } // end if > > Never in my code.
Glad to hear it -- nevertheless, it *is* fairly common in my experience.
> If you can't tell from the logic structure of the code what } > matches what > {, you're in trouble from the get-go. :-)
Well, yes. But not everyone writes that logically -- or even writes consistently-indented code!
> >Another advantage to the alternative syntax is that it can > improve error > >reporting (slightly). Consider the following: > > >PHP will tell you you have a syntax error on the very last > line of your > >file, and you have no option but to go back and laboriously > hand match all > >of your braces -- and with each ellipsis representing maybe > tens (or even > >hundreds!) > > Don't be ridiculous. Any decent editor will tell you where > the missing { or > } is. No need to search for it by hand.
Well, yes, but not the full story. If the only clue you have is that there's probably a brace missing somewhere in the 600 lines of your file, and some of your structures nest 7 or 8 levels deep, that's still an awful lot of braces that you potentially have to check for matching partners, even with a helpful editor to ease the task. (And we know that some people don't have helpful editors -- just look at the requests in this list for recommendations!!) If, on the other hand, you get a parse error at line 234 in one of the deeper levels of nested structures, your search is immediately much more focussed. This is just a plain fact, surely...?
> > Not to mention that if you've indented properly, it's trivial > to find it, > even in something as ill-suitable for Programming as NotePad.
Ah, indeed -- but, again, not everyone indents properly!!
> >Now PHP will throw an error at the endwhile, because it > knows there's an > >endfor missing -- and you've already cut out a large chunk > of your code to > >check; better yet, as you're checking you can see at a > glance what each > >"end" should be matching. And every "end" has to be there, too -- no > >cursing yourself for that lazy day when you left out a few > comments on some > >"unimportant" closing braces! > > None of my closing braces have comments. I never have a problem with > "missing" ones.
You must have much keener eyesight than me, then. I often have difficulty telling which } lines up under which { (when I'm reading code written in that style, that is!), especially if they're on different pages of a listing. When I code in a braced language, I *always* comment my closing braces for this reason. Even in PHP using end* statements, I often add comment to tell me *which* "if" an "endif" matches, just to be sure. (I do the same in VB, too!)
> YMMV.
I guess. But I think other people's probably varies more, and the number of occasions on this list when I think "but if you'd used alternative syntax style you'd *know* where the problem was" grows by the week.
Oh dear, I see I've got into rant mode once more. Right, I'll shut up now, and that really will be my last word on the topic. Well, at least until someone else brings it up again.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford
lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
attached mail follows:
"Mike Ford" <M.Ford
lmu.ac.uk> wrote in message
news:7E070107F405BA4790C43526CC4985A10132AB8B
lis-exchange3.lmu.ac.uk...
> > -----Original Message-----
> > From: Chris Earle [mailto:chris
earleweb.com]
> > Sent: 11 July 2002 18:28
> > To: php-general
lists.php.net
> > Subject: Re: [PHP] Re: if syntax
> >
> >
> > > when it would be just as easy, and more functional, to
> > write this (even
> > > saves a few characters, too!):
> > >
> > > if (x):
> > > while (y):
> > > ...
> > > endwhile;
> > > ...
> > > endif;
> >
> > You're adding characters...
> >
> > "{" + "}" opposed to ":" + "endif;"
>
> No, no, no! Look again -- I was contrasting this with:
>
> if (x) {
> while (y) {
> ...
> } // end while
> ...
> } // end if
>
> which I see quite often in other people's scripts.
>
> Then the difference is " {" and "} // end if" as opposed to ":" and
> "endif;", and indeed you are saving characters -- and it's more
functional,
> because the PHP processor is getting to check the end* statements match
the
> correct block opener, rather than just matching back to the next unclosed
> "{" regardless of whether it's on an appropriate block opener or not. To
> me, this is such a huge advantage that I just can't understand why people
> insist on sticking with the all-braces style, and that's regardless of the
> fact that I just think it's more readable.
Oh, just as the other guy said, I don't comment my braces because I tab in everything evenly (each if is another tab with the nested code tabed one further). I do comment my functions end braces because they can get pretty big and they're all at the same level of tabbing.
I think that most people (like me) use it because of their backgrounds in other programming languages. I learned PHP after I was doing a lot of C++ work ... so it came very naturely.
> Cheers!
>
> Mike
>
> ---------------------------------------------------------------------
> Mike Ford, Electronic Information Services Adviser,
> Learning Support Services, Learning & Information Services,
> JG125, James Graham Building, Leeds Metropolitan University,
> Beckett Park, LEEDS, LS6 3QS, United Kingdom
> Email: m.ford
lmu.ac.uk
> Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
attached mail follows:
> > >PHP will tell you you have a syntax error on the very last > > line of your > > >file, and you have no option but to go back and laboriously > > hand match all > > >of your braces -- and with each ellipsis representing maybe > > tens (or even > > >hundreds!) > > > > Don't be ridiculous. Any decent editor will tell you where > > the missing { or > > } is. No need to search for it by hand. > > Well, yes, but not the full story. If the only clue you have is that > there's probably a brace missing somewhere in the 600 lines of your file, > and some of your structures nest 7 or 8 levels deep, that's still an awful > lot of braces that you potentially have to check for matching partners, even > with a helpful editor to ease the task. (And we know that some people don't > have helpful editors -- just look at the requests in this list for > recommendations!!) If, on the other hand, you get a parse error at line 234 > in one of the deeper levels of nested structures, your search is immediately > much more focussed. This is just a plain fact, surely...?
I've never had a problem where it didn't give me a close estimate to where the "{" or "}" was missing. And I'm one of those ill-suited NotePad guys (my Visual Studio copy is at work and I reformatted this computer recently). :)
> > Not to mention that if you've indented properly, it's trivial > > to find it, > > even in something as ill-suitable for Programming as NotePad. > > Ah, indeed -- but, again, not everyone indents properly!!
I'm not sure that's a fair argument to make because you can say the same thing about code with the if (exp): endif; code, I'm sure a lot of people use it's simplicity (I do use it on occasion, but I indent like { }) and then don't indent.
> > >Now PHP will throw an error at the endwhile, because it > > knows there's an > > >endfor missing -- and you've already cut out a large chunk > > of your code to > > >check; better yet, as you're checking you can see at a > > glance what each > > >"end" should be matching. And every "end" has to be there, too -- no > > >cursing yourself for that lazy day when you left out a few > > comments on some > > >"unimportant" closing braces! > > > > None of my closing braces have comments. I never have a problem with > > "missing" ones.
If I miss one the PHP parser gives me a big enough clue for me to find it within 30 seconds. I can definitely understand that though and I bet that that is easier, especially in harder to read, uncommented code (that's a general statement, not a shot at anyone).
> You must have much keener eyesight than me, then. I often have difficulty > telling which } lines up under which { (when I'm reading code written in > that style, that is!), especially if they're on different pages of a > listing. When I code in a braced language, I *always* comment my closing > braces for this reason. Even in PHP using end* statements, I often add > comment to tell me *which* "if" an "endif" matches, just to be sure. (I do > the same in VB, too!)
I've got the same idea as him, but I wear glasses (not bad vision though ... next up from 20/20). I never added VB comments to my "End If" statements, I might comment inside about what's going on, but never what's being matched. I have the feeling your code is very readable, which is a good thing, but I like my way for my own selfish reasons (much of which cannot be explained to mere mortals!).
> > YMMV. > > I guess. But I think other people's probably varies more, and the number of > occasions on this list when I think "but if you'd used alternative syntax > style you'd *know* where the problem was" grows by the week.
You're probably right, but it is a religious and huge experience thing. I've been working with { } for quite, especially a while outside of PHP and I rarely have a problem (except when moving to ASP ... that normally takes a quick relearning curve because of the VB syntax).
> Oh dear, I see I've got into rant mode once more. Right, I'll shut up now, > and that really will be my last word on the topic. Well, at least until > someone else brings it up again.
Oops.
> Cheers! > > Mike >
-Chris
attached mail follows:
> From: "Peter J. Schoenster" <peter
schoenster.com>
>
> On 11 Jul 2002 at 16:42, Lowell Allen wrote:
>
[snip/]
>>
>> Can anyone direct me to info on PHP presentation of geographic maps --
>> tied to a database with locating coordinates?
>
> Well heck, you've peaked my interest. I don't see how javascript makes any
> difference. The power of the app MUST be some server-side app otherwise it
> would work in any Browser (or please correct me in any way).
>
> I'd like to hear more details about this. What kind of maps do they produce? I
> once worked with on a map site called pixxures.com and they had MANY servers
> that were SPECFICALLY designed
> to process requests and return images (ran on linux and solaris and might have
> worked on windows as the app itself was in java I believe). We only had to
> provide coordinates from the web form to
> these apps and they'd return a slice of an image.
>
The JavaScript demo I mentioned in my original post was presented to my
client by another company that specializes in GIS. It screened out my Mac,
noting incompatibility. I don't know why they chose to rely on JavaScript. I
wish I could provide the link to the demo, but I'm sure my client would not
approve. pixxures.com is an interesting site. It quickly brought up an image
of my downtown location -- cool.
-- Lowell Allen
attached mail follows:
Found by the way.
"MapServer is an OpenSource development environment for building spatially enabled Internet applications."
http://mapserver.gis.umn.edu/doc/phpmapscript-class-guide.html
hope it does help
robert
attached mail follows:
On Thu, Jul 11, 2002 at 04:26:38PM -0700, Lazor, Ed wrote: > I was just checking it out. That map is awesome! What's funny is that it > even has an option to display the picture of a house at the coordinates you > specify. > > Thanks for the compliment *grin* I have no idea why I didn't. Probably > just got lazy hehe My only excuse is that I think vacation mode has kicked > in - even though it doesn't technically start until tomorrow evening.
I'm also very interested in this stuff. I have some plans for storing geographical coordinates in a database (LDAP in my case) and plot locations on a map. I have some simple stuff misusing mapblast, see http://www.venaas.no/whereami/
Stig
attached mail follows:
> From: Martin Towell <martin.towell
world.net>
>
> I'm currently working on a system that grabs an image from a map server and,
> using html layers, overlays where the products are.
>
> Basically, this is how it's set up.
>
> The map server is running on a WinNT system.
>
> In the html code, I put am image tag that accesses the web server, passing
> the x,y coords (formatted as x meters from some origin) and zoom level (plus
> some other details). I then get the web server to access the map server
> (this is to shield the map server from the outside world) and basically do a
> fpassthru() on the data.
>
Can you comment on the technology of the map server? Is it a commercial
product or built for your application? I assume it creates the map images --
is that process fast enough for your needs?
> Meanwhile, the html doc has a layer placed over the map image. This layer > contains another image with just the products on it. I get php to generate > this second image on the fly by querying the database, filtering out all the > products that lay outside the image's area, then I plot the points onto the > image. > > Because there's a lot of other things that are happening on the page (due to > the client's requirements), when the user wants to zoom or pan the map, I > use js to update the images. > Are you using JavaScript to update the image without going back to the map server? If so, does that mean multiple maps are loaded during the interaction with the map server, then called as needed, or is one image created by the map server then modified with JavaScript or PHP for different zoom views and pans?
Thanks, I find your project description very helpful.
-- Lowell Allen
attached mail follows:
Lowell:
On Fri, Jul 12, 2002 at 09:25:56AM -0400, Lowell Allen wrote: > Are you using JavaScript to update the image without going back to the map > server?
Dude, Dynamic HTML / JavaScript are a poor idea... unless you don't care about your potential customers.
http://www.analysisandsolutions.com/code/weberror.htm?j=y
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
attached mail follows:
> From: "Richard Lynch" <rich
phpbootcamp.com>
>
>> A client wants a database-driven site that records information about real
>> estate properties and includes geographic maps of property locations
>> (throughout the US). The client has seen a presentation of a
>> JavaScript-powered, Windows-only product that doesn't seem to fit well with
>> my preference for PHP/MySQL. I've been Google-searching info on GIS and GPS
>> and GMT, but thought it might be worthwhile to ask this discussion list for
>> input.
>>
>> Can anyone direct me to info on PHP presentation of geographic maps -- tied
>> to a database with locating coordinates?
>
> You mean something like this (incomplete) project:
>
> http://chatmusic.com/maplocater.htm
>
[big snip]
>
> Ya know what? I've pretty much written all the tricky parts of this
> thing...
>
> You want to just license it or sub-contract me or something? I could save
> you a ton of time.
>
Definitely worth considering, sure.
> How many properties are we looking at? I've only got 1500 music venues in > the database... > The system would need to handle a few thousand properties.
> The one tricky part is getting public domain maps of the regions you want. > We may need to commission a graphic artist or cartographer to synthesize the > desired maps... > I don't think that will be a problem. We're heavy on graphic arts resources.
Thanks -- I'll get in touch off-list to discuss working with you.
-- Lowell Allen
attached mail follows:
> From: Analysis & Solutions <danielc
analysisandsolutions.com>
>
> On Fri, Jul 12, 2002 at 09:25:56AM -0400, Lowell Allen wrote:
>> Are you using JavaScript to update the image without going back to the map
>> server?
>
> Dude, Dynamic HTML / JavaScript are a poor idea... unless you don't care
> about your potential customers.
>
> http://www.analysisandsolutions.com/code/weberror.htm?j=y
>
> --Dan
>
My apathy is another issue entirely. :=)
I was asking about JavaScript in the context of determining how Martin's application worked.
-- Lowell Allen
attached mail follows:
On Thu, 11 Jul 2002, Richard Lynch wrote: > NOTE: End-user GPS units are "off" by like 30 meters (?) on purpose so Joe > Blow can't tell the "enemy" how to find the White House and blow it up. > Sigh. You're never gonna beat that error margin without a *LOT* of repeated > readings over a long period of time and statistical analysis...
This is completely off-topic, but the Selective Availability system that you describe has been discontinued by the Department of Defense a few years ago - after it began to be undermined by the proliferation of differential GPS beacons (these are transcievers at stationary points that listen to the GPS signal, calculate the difference between the delivered signal and their known location, and broadcast a corrective signal). Even the Coast Guard was running them.
So for the past few years consumer GPS is very accurate. This helps explain the recent rapid spread of consumer GPS devices.
DoD says they reserve the right to turn it on if they want to, but I doubt they would - especially now that the EU is planning its own competing system.
> But keeping all that junk in the database as 2-D mapping would only be > needed if you're going to be providing driving directions and keeping all > the highways and all that crap that MapQuest keeps (I assume). You almost > for sure don't need all that.
It seems to me like they still need street addresses, unless they have a database of the shapes of every private property parcel in the country.
miguel
attached mail follows:
I don't have ISP, I use T1, the local network I'm on is direct to the internet. I can type in www.cnn.com and it can go where it go quickly without a problem. The same goes for news.php.net Newsgroup.
"Miguel Cruz" <mnc
stoic.net> wrote in message
news:Pine.LNX.4.44.0207111730160.21100-100000
stoic.net...
> On Thu, 11 Jul 2002, Scott Fletcher wrote:
> > Are you sure these newsgroup work? I tried subscribing to it and got a
> > response saying newsgroup server could not be found. I didn't have that
> > problem with PHP Newsgroup or mozilla.org Newsgroup.
> >
> > --clip--
> > comp.os.linux.admin
> > comp.os.linux.misc
> > comp.os.linux.advocacy
> > comp.os.linux.network
> > comp.os.linux.alpha
> > comp.os.linux.networking
> > comp.os.linux.announce
> > comp.os.linux.portable
> > comp.os.linux.answers
> > comp.os.linux.powerpc
> > comp.os.linux.development.apps
> > comp.os.linux.development.system
> > comp.os.linux.questions
> > comp.os.linux.embedded
> > comp.os.linux.redhat
> > comp.os.linux.hardware
> > comp.os.linux.security
> > comp.os.linux.help
> > comp.os.linux.setup
> > comp.os.linux.m68k
> > comp.os.linux.x
>
> Yes, they all definitely work. Remember that different news servers carry
> different newsgroups. Your ISP should be running a news server that
> carries all of the above-listed groups, though, as they're in the main
> hierarchy. Just ask your ISP for the name of its news server.
>
> Alternatively, you can read them all in groups.google.com, though they're
> about 12 hours behind.
>
> miguel
>
attached mail follows:
I tried news.os.linux and it doesn't work, so I tried again with news.os.linux.questions and it doesn't work either. Same thing for news.os.
Thanks, FletchSOD
"Ed Lazor" <ELazor
providence.org> wrote in message
news:C8891DEC2698D411A91B00508BF9898806E11900
phsormsg04.phsor.org...
> Which news service are you connecting to?
>
> -----Original Message-----
> From: Scott Fletcher [mailto:scott
abcoa.com]
> Sent: Thursday, July 11, 2002 2:15 PM
> To: php-general
lists.php.net
> Subject: [PHP] Linux Newsgroup... ('continue');
>
>
> Are you sure these newsgroup work? I tried subscribing to it and got a
> response saying newsgroup server could not be found. I didn't have that
> problem with PHP Newsgroup or mozilla.org Newsgroup.
>
> --clip--
> comp.os.linux.admin
>
> comp.os.linux.misc
>
> comp.os.linux.advocacy
>
> comp.os.linux.network
>
> comp.os.linux.alpha
>
> comp.os.linux.networking
>
> comp.os.linux.announce
>
> comp.os.linux.portable
>
> comp.os.linux.answers
>
> comp.os.linux.powerpc
>
> comp.os.linux.development.apps
>
> comp.os.linux.development.system
>
> comp.os.linux.questions
>
> comp.os.linux.embedded
>
> comp.os.linux.redhat
>
> comp.os.linux.hardware
>
> comp.os.linux.security
>
> comp.os.linux.help
>
> comp.os.linux.setup
>
> comp.os.linux.m68k
>
> comp.os.linux.x
>
> --clip--
>
> Groan! I hate MS-Outlook!!
>
> Thanks,
>
> FletchSOD
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
****************************************************************************
> This message is intended for the sole use of the individual and entity to
> whom it is addressed, and may contain information that is privileged,
> confidential and exempt from disclosure under applicable law. If you are
> not the intended addressee, nor authorized to receive for the intended
> addressee, you are hereby notified that you may not use, copy, disclose or
> distribute to anyone the message or any information contained in the
> message. If you have received this message in error, please immediately
> advise the sender by reply email and delete the message. Thank you very
> much.
attached mail follows:
On Fri, 12 Jul 2002, Scott Fletcher wrote:
> Miguel Cruz <mnc
stoic.net> wrote in:
>> On Thu, 11 Jul 2002, Scott Fletcher wrote:
>>> Are you sure these newsgroup work? I tried subscribing to it and got a
>>> response saying newsgroup server could not be found. I didn't have that
>>> problem with PHP Newsgroup or mozilla.org Newsgroup.
>>>
>>> comp.os.linux.admin
>>> comp.os.linux.misc
>>> ...
>>
>> Yes, they all definitely work. Remember that different news servers carry
>> different newsgroups. Your ISP should be running a news server that
>> carries all of the above-listed groups, though, as they're in the main
>> hierarchy. Just ask your ISP for the name of its news server.
>>
>> Alternatively, you can read them all in groups.google.com, though they're
>> about 12 hours behind.
>
> I don't have ISP, I use T1, the local network I'm on is direct to the
> internet. I can type in www.cnn.com and it can go where it go quickly
> without a problem. The same goes for news.php.net Newsgroup.
You still have an ISP. You can't peer using something as tiny as a T1.
Just traceroute somewhere and you'll see what your ISP is. Then go
to their web site, look for the customer support page, and they should
list their NNTP server somewhere.
Alternatively, there is a free server in Germany you can use if your ISP doesn't provide decent news service. Go to http://news.cis.dfn.de/ for more information.
miguel
attached mail follows:
Alright! I'll give it my best shot!
"Miguel Cruz" <mnc
stoic.net> wrote in message
news:Pine.LNX.4.44.0207121225320.4614-100000
stoic.net...
> On Fri, 12 Jul 2002, Scott Fletcher wrote:
> > Miguel Cruz <mnc
stoic.net> wrote in:
> >> On Thu, 11 Jul 2002, Scott Fletcher wrote:
> >>> Are you sure these newsgroup work? I tried subscribing to it and got
a
> >>> response saying newsgroup server could not be found. I didn't have
that
> >>> problem with PHP Newsgroup or mozilla.org Newsgroup.
> >>>
> >>> comp.os.linux.admin
> >>> comp.os.linux.misc
> >>> ...
> >>
> >> Yes, they all definitely work. Remember that different news servers
carry
> >> different newsgroups. Your ISP should be running a news server that
> >> carries all of the above-listed groups, though, as they're in the main
> >> hierarchy. Just ask your ISP for the name of its news server.
> >>
> >> Alternatively, you can read them all in groups.google.com, though
they're
> >> about 12 hours behind.
> >
> > I don't have ISP, I use T1, the local network I'm on is direct to the
> > internet. I can type in www.cnn.com and it can go where it go quickly
> > without a problem. The same goes for news.php.net Newsgroup.
>
> You still have an ISP. You can't peer using something as tiny as a T1.
> Just traceroute somewhere and you'll see what your ISP is. Then go
> to their web site, look for the customer support page, and they should
> list their NNTP server somewhere.
>
> Alternatively, there is a free server in Germany you can use if your ISP
> doesn't provide decent news service. Go to http://news.cis.dfn.de/ for
> more information.
>
> miguel
>
attached mail follows:
Hello all,
I am trying to build a php driven mailing list where i can send an email to the whole list. Here is my code:
<?php
$to = "Henning Tamas <tomi
mediasoft.ro>" . ",";
$header = "From: Test List <irc
mediasoft.ro>";
include("pop3.php");
$user="irc"; $password="*****"; $apop=0; $pop3_connection=new pop3_class; $pop3_connection->hostname="localhost"; if(($error=$pop3_connection->Open())=="") { echo "<PRE>Connected to the POP3 server $pop3_connection->hostname</PRE>\n"; if(($error=$pop3_connection->Login($user,$password,$apop))=="") { echo "<PRE>User $user logged in.</PRE>\n";
if(($error=$pop3_connection->RetrieveMessage(1,&$headers,&$body,2))=="") { echo "<PRE>Message 1:\n---Message headers starts below---</PRE>\n";
for($line=0;$line<count($headers);$line++) { echo "<PRE>",HtmlSpecialChars($headers[$line]),"</PRE>\n"; $fullheader=$fullheader.$headers[$line]."\r\n"; }
echo "<PRE>---Message headers ends above---\n---Message body starts below---</PRE>\n"; for($line=0;$line<count($body);$line++) { echo "<PRE>",HtmlSpecialChars($body[$line]),"</PRE>\n"; $fullbody = $fullbody . $body[$line]; } echo "<PRE>---Message body ends above---</PRE>\n"; } } } if($error=="" && ($error=$pop3_connection->Close())=="") echo "<PRE>Disconnected from the POP3 server $pop3_connection->hostname</PRE>\n";
echo("$error");
$i1=strpos($fullheader,"Subject:");
$i2=strlen($fullheader)-$i1;
$subject=substr($fullheader,$i1,$i2);
$subject=substr($subject,9,strlen($subject));
$subject = "[MediaSoft] " . $subject;
//mail($to, $subject, $body, $headers) or die("tet");
mail($to, $subject, $fullbody, "From: test
mediasoft.ro");
?>
I got the pop3.php from www.weberdev.com its a class to download emails from
a POP3 server. My problem is:
When i send an email from a PHP emailer using mail() function to my mailing
list Message Subject is test, Message body is test. I run my script and my
message source looks like this:
Return-Path: <root
MediaSoft.ro>
Delivered-To: tomi
mediasoft.ro
Received: (qmail 30667 invoked by alias); 11 Jul 2002 13:04:08 -0000
Delivered-To: root
mediasoft.ro
Received: (qmail 30662 invoked by uid 99); 11 Jul 2002 13:04:08 -0000
Date: 11 Jul 2002 13:04:08 -0000
Message-ID: <20020711130408.30661.qmail
MediaSoft.ro>
To: Henning Tamas <tomi
mediasoft.ro>, Root <root
mediasoft.ro>,
Subject: [MediaSoft] test
//-------Header ends here -------- I added this line
From: Test List <irc
mediasoft.ro>
From: test
mediasoft.ro
test
And as you see From: test
mediasoft.ro is in the header section of the
mail() function.
What can I do to fix this problem?
Thomas Henning
P.S. I tryed these to fix it:
1)$header="From: test
mediasoft.ro \r\n";
2)$header="";
mail($to,$subject,$message,$header,-ftest
mediasoft.ro);
attached mail follows:
Try:
$header = "From: Test List <irc
mediasoft.ro>";
mail($to, $subject, $fullbody, $header."");
Note the extra Null String concatinated...
My php.ini is also configured to show:
sendmail_from= In the mail function... This is under WinNT... php 4.2.1 The Null String might work under UNIX too... I haven't tried it...
Spike...
"Thomas "Omega" Henning" <tomi
mediasoft.ro> wrote in message
news:20020712130010.93129.qmail
pb1.pair.com...
> Hello all,
>
> I am trying to build a php driven mailing list where i can send an email
to
> the whole list. Here is my code:
>
> <?php
> $to = "Henning Tamas <tomi
mediasoft.ro>" . ",";
> $header = "From: Test List <irc
mediasoft.ro>";
>
> include("pop3.php");
>
> $user="irc";
> $password="*****";
> $apop=0;
> $pop3_connection=new pop3_class;
> $pop3_connection->hostname="localhost";
> if(($error=$pop3_connection->Open())=="")
> {
> echo "<PRE>Connected to the POP3 server
> $pop3_connection->hostname</PRE>\n";
> if(($error=$pop3_connection->Login($user,$password,$apop))=="")
> {
> echo "<PRE>User $user logged in.</PRE>\n";
>
> if(($error=$pop3_connection->RetrieveMessage(1,&$headers,&$body,2))=="")
> {
> echo "<PRE>Message 1:\n---Message headers starts
below---</PRE>\n";
>
> for($line=0;$line<count($headers);$line++) {
> echo "<PRE>",HtmlSpecialChars($headers[$line]),"</PRE>\n";
> $fullheader=$fullheader.$headers[$line]."\r\n";
> }
>
> echo "<PRE>---Message headers ends above---\n---Message body
starts
> below---</PRE>\n";
> for($line=0;$line<count($body);$line++) {
> echo "<PRE>",HtmlSpecialChars($body[$line]),"</PRE>\n"; $fullbody
=
> $fullbody . $body[$line]; }
> echo "<PRE>---Message body ends above---</PRE>\n";
> }
> }
> }
> if($error==""
> && ($error=$pop3_connection->Close())=="")
> echo "<PRE>Disconnected from the POP3 server
> $pop3_connection->hostname</PRE>\n";
>
> echo("$error");
> $i1=strpos($fullheader,"Subject:");
> $i2=strlen($fullheader)-$i1;
> $subject=substr($fullheader,$i1,$i2);
> $subject=substr($subject,9,strlen($subject));
> $subject = "[MediaSoft] " . $subject;
> //mail($to, $subject, $body, $headers) or die("tet");
> mail($to, $subject, $fullbody, "From: test
mediasoft.ro");
> ?>
> I got the pop3.php from www.weberdev.com its a class to download emails
from
> a POP3 server. My problem is:
> When i send an email from a PHP emailer using mail() function to my
mailing
> list Message Subject is test, Message body is test. I run my script and my
> message source looks like this:
> Return-Path: <root
MediaSoft.ro>
> Delivered-To: tomi
mediasoft.ro
> Received: (qmail 30667 invoked by alias); 11 Jul 2002 13:04:08 -0000
> Delivered-To: root
mediasoft.ro
> Received: (qmail 30662 invoked by uid 99); 11 Jul 2002 13:04:08 -0000
> Date: 11 Jul 2002 13:04:08 -0000
> Message-ID: <20020711130408.30661.qmail
MediaSoft.ro>
> To: Henning Tamas <tomi
mediasoft.ro>, Root <root
mediasoft.ro>,
> Subject: [MediaSoft] test
> //-------Header ends here -------- I added this line
>
> From: Test List <irc
mediasoft.ro>
>
> From: test
mediasoft.ro
>
> test
>
> And as you see From: test
mediasoft.ro is in the header section of the
> mail() function.
> What can I do to fix this problem?
>
> Thomas Henning
>
> P.S. I tryed these to fix it:
> 1)$header="From: test
mediasoft.ro \r\n";
> 2)$header="";
> mail($to,$subject,$message,$header,-ftest
mediasoft.ro);
>
>
attached mail follows:
No it didn't work. I simply don't understand why its not working. I use it the same way in a nother php and it works perfectly.
"Kondwani Spike Mkandawire" <kondwani
cs.mun.ca> wrote in message
news:20020712131753.14316.qmail
pb1.pair.com...
> Try:
>
> $header = "From: Test List <irc
mediasoft.ro>";
>
> mail($to, $subject, $fullbody, $header."");
>
> Note the extra Null String concatinated...
>
> My php.ini is also configured to show:
>
> sendmail_from=
> In the mail function... This is under WinNT...
> php 4.2.1 The Null String might work under
> UNIX too... I haven't tried it...
>
> Spike...
>
> "Thomas "Omega" Henning" <tomi
mediasoft.ro> wrote in message
> news:20020712130010.93129.qmail
pb1.pair.com...
> > Hello all,
> >
> > I am trying to build a php driven mailing list where i can send an email
> to
> > the whole list. Here is my code:
> >
> > <?php
> > $to = "Henning Tamas <tomi
mediasoft.ro>" . ",";
> > $header = "From: Test List <irc
mediasoft.ro>";
> >
> > include("pop3.php");
> >
> > $user="irc";
> > $password="*****";
> > $apop=0;
> > $pop3_connection=new pop3_class;
> > $pop3_connection->hostname="localhost";
> > if(($error=$pop3_connection->Open())=="")
> > {
> > echo "<PRE>Connected to the POP3 server
> > $pop3_connection->hostname</PRE>\n";
> > if(($error=$pop3_connection->Login($user,$password,$apop))=="")
> > {
> > echo "<PRE>User $user logged in.</PRE>\n";
> >
> > if(($error=$pop3_connection->RetrieveMessage(1,&$headers,&$body,2))=="")
> > {
> > echo "<PRE>Message 1:\n---Message headers starts
> below---</PRE>\n";
> >
> > for($line=0;$line<count($headers);$line++) {
> > echo "<PRE>",HtmlSpecialChars($headers[$line]),"</PRE>\n";
> > $fullheader=$fullheader.$headers[$line]."\r\n";
> > }
> >
> > echo "<PRE>---Message headers ends above---\n---Message body
> starts
> > below---</PRE>\n";
> > for($line=0;$line<count($body);$line++) {
> > echo "<PRE>",HtmlSpecialChars($body[$line]),"</PRE>\n";
$fullbody
> =
> > $fullbody . $body[$line]; }
> > echo "<PRE>---Message body ends above---</PRE>\n";
> > }
> > }
> > }
> > if($error==""
> > && ($error=$pop3_connection->Close())=="")
> > echo "<PRE>Disconnected from the POP3 server
> > $pop3_connection->hostname</PRE>\n";
> >
> > echo("$error");
> > $i1=strpos($fullheader,"Subject:");
> > $i2=strlen($fullheader)-$i1;
> > $subject=substr($fullheader,$i1,$i2);
> > $subject=substr($subject,9,strlen($subject));
> > $subject = "[MediaSoft] " . $subject;
> > //mail($to, $subject, $body, $headers) or die("tet");
> > mail($to, $subject, $fullbody, "From: test
mediasoft.ro");
> > ?>
> > I got the pop3.php from www.weberdev.com its a class to download emails
> from
> > a POP3 server. My problem is:
> > When i send an email from a PHP emailer using mail() function to my
> mailing
> > list Message Subject is test, Message body is test. I run my script and
my
> > message source looks like this:
> > Return-Path: <root
MediaSoft.ro>
> > Delivered-To: tomi
mediasoft.ro
> > Received: (qmail 30667 invoked by alias); 11 Jul 2002 13:04:08 -0000
> > Delivered-To: root
mediasoft.ro
> > Received: (qmail 30662 invoked by uid 99); 11 Jul 2002 13:04:08 -0000
> > Date: 11 Jul 2002 13:04:08 -0000
> > Message-ID: <20020711130408.30661.qmail
MediaSoft.ro>
> > To: Henning Tamas <tomi
mediasoft.ro>, Root <root
mediasoft.ro>,
> > Subject: [MediaSoft] test
> > //-------Header ends here -------- I added this line
> >
> > From: Test List <irc
mediasoft.ro>
> >
> > From: test
mediasoft.ro
> >
> > test
> >
> > And as you see From: test
mediasoft.ro is in the header section of the
> > mail() function.
> > What can I do to fix this problem?
> >
> > Thomas Henning
> >
> > P.S. I tryed these to fix it:
> > 1)$header="From: test
mediasoft.ro \r\n";
> > 2)$header="";
> > mail($to,$subject,$message,$header,-ftest
mediasoft.ro);
> >
> >
>
>
attached mail follows:
A major upgrade of the 2.2X FUDforum with many bug fixes and a number of new features.
The official announcement can be found here: http://fud.prohost.org/forum/index.php?t=msg&th=724
Detailed ChangeLog: http://fud.prohost.org/CHANGELOG
Download Page: http://fud.prohost.org/download.php
Ilia Alshanetsky
FUDforum Core Developer
ilia
prohost.org
attached mail follows:
Tried going to the official announcement and got this:
query failed: %( SELECT fud_forum.id, fud_forum.name, fud_cat.name AS cat_name, fud_cat.id AS cat_id, fud_msg.post_stamp AS msg_post_stamp FROM fud_cat INNER JOIN fud_forum ON fud_cat.id=fud_forum.cat_id LEFT JOIN fud_msg ON fud_forum.last_post_id=fud_msg.id WHERE fud_forum.id IN (,,,,,,,,,,,,,,,) ORDER BY fud_cat.view_order, fud_forum.view_order )% because %( You have an error in your SQL syntax near ',,,,,,,,,,,,,,) ORDER BY fud_cat.view_order, fud_forum.view_order ' at line 14 )%
----- Original Message -----
From: "Ilia A." <ilia
prohost.org>
To: <php-general
lists.php.net>
Sent: Friday, July 12, 2002 9:23 AM
Subject: [PHP] Announcement: FUDforum 2.2.2 Released
> A major upgrade of the 2.2X FUDforum with many bug fixes and a number of
new
> features.
>
> The official announcement can be found here:
> http://fud.prohost.org/forum/index.php?t=msg&th=724
>
> Detailed ChangeLog:
> http://fud.prohost.org/CHANGELOG
>
> Download Page:
> http://fud.prohost.org/download.php
>
> Ilia Alshanetsky
> FUDforum Core Developer
> ilia
prohost.org
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
attached mail follows:
Oops... This is what I get for making a release before finishing the upgrade of the support forum, heh..
Thanks for letting me know about the problem, it has been resolved.
Ilia
On July 12, 2002 09:07 am, Jeff Lewis wrote:
> Tried going to the official announcement and got this:
>
> query failed: %( SELECT fud_forum.id, fud_forum.name, fud_cat.name AS
> cat_name, fud_cat.id AS cat_id, fud_msg.post_stamp AS msg_post_stamp FROM
> fud_cat INNER JOIN fud_forum ON fud_cat.id=fud_forum.cat_id LEFT JOIN
> fud_msg ON fud_forum.last_post_id=fud_msg.id WHERE fud_forum.id IN
> (,,,,,,,,,,,,,,,) ORDER BY fud_cat.view_order, fud_forum.view_order )%
> because %( You have an error in your SQL syntax near ',,,,,,,,,,,,,,) ORDER
> BY fud_cat.view_order, fud_forum.view_order ' at line 14 )%
>
>
> ----- Original Message -----
> From: "Ilia A." <ilia
prohost.org>
> To: <php-general
lists.php.net>
> Sent: Friday, July 12, 2002 9:23 AM
> Subject: [PHP] Announcement: FUDforum 2.2.2 Released
>
> > A major upgrade of the 2.2X FUDforum with many bug fixes and a number of
>
> new
>
> > features.
> >
> > The official announcement can be found here:
> > http://fud.prohost.org/forum/index.php?t=msg&th=724
> >
> > Detailed ChangeLog:
> > http://fud.prohost.org/CHANGELOG
> >
> > Download Page:
> > http://fud.prohost.org/download.php
> >
> > Ilia Alshanetsky
> > FUDforum Core Developer
> > ilia
prohost.org
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Hey...
Want to meet other PHP developers in your area? Check out:
Pretty nifty idea... especially given the lack of user groups in the U.S. -- jon
-------------
jon roig (jon
jonroig.com)
developer, openRealty
http://jonroig.com/freecode/openrealty/
attached mail follows:
[snip] Want to meet other PHP developers in your area? Check out:
Pretty nifty idea... especially given the lack of user groups in the U.S. [/snip]
Excellent idea Jon! I have set up for the San Antonio area and I have invited some other developers (some who haven't done PHP yet) to the gig.
Jay
attached mail follows:
[snip] Want to meet other PHP developers in your area? Check out:
Pretty nifty idea... especially given the lack of user groups in the U.S. [/snip]
I thought for others who had not seen this I would post this. There is probably already a user group in your area if you live near a major city. According to the PHPusergroups.org web site [http://www.phpusergroups.org/groups.phtml?menu=groups] there 189 PHP user groups in 52 countries.
While there is nothing in my area (closest is Houston, over 3 hours away :^[ , and I thought there would be one in Austin, even if I don't want to drive an hour to go drink an adult beverage or two.) but you may find one already exists in your area. Meetup is a cool idea, and appears to be gaining ground slowly. Jon, did you cross-post to all PHP lists?
Jay
"Code! Yes. A programmer's strength flows from code maintainability. But beware of Perl. Terse syntax... more than one way to do it...default variables. The dark side of code maintainability are they. Easily they flow, quick to join you when code you write. If once you start down the dark path, forever will it dominate your destiny, consume you it will." -- Yoda (or maybe Coda)
attached mail follows:
Nope... didn't crosspost anywhere... (I'm only subscribed to the general list.)
My problem is similar -- I'm in Philadelphia and there doesn't appear to be a group here at all. There's some crossover with the local linux users group, but not a lot.
-- jon
-----Original Message-----
From: Jay Blanchard [mailto:jay.blanchard
niicommunications.com]
Sent: Friday, July 12, 2002 11:48 AM
To: php-general
lists.php.net
Subject: RE: [PHP] PHP meetup
[snip] Want to meet other PHP developers in your area? Check out:
Pretty nifty idea... especially given the lack of user groups in the U.S. [/snip]
I thought for others who had not seen this I would post this. There is probably already a user group in your area if you live near a major city. According to the PHPusergroups.org web site [http://www.phpusergroups.org/groups.phtml?menu=groups] there 189 PHP user groups in 52 countries.
While there is nothing in my area (closest is Houston, over 3 hours away :^[ , and I thought there would be one in Austin, even if I don't want to drive an hour to go drink an adult beverage or two.) but you may find one already exists in your area. Meetup is a cool idea, and appears to be gaining ground slowly. Jon, did you cross-post to all PHP lists?
Jay
"Code! Yes. A programmer's strength flows from code maintainability. But beware of Perl. Terse syntax... more than one way to do it...default variables. The dark side of code maintainability are they. Easily they flow, quick to join you when code you write. If once you start down the dark path, forever will it dominate your destiny, consume you it will." -- Yoda (or maybe Coda)
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
I just signed up for this, as I would LOVE to be able to talk and interact (in person) with some PHP Developers. As I'm still learning (as we all are), it would be a great opportunity for me to be able to meet up and discuss this wonderful language with my peers. Hopefully that'll come to pass! :o)
I emplore all PHP Developers to sign up for MEETUP. You have nothing to loose, and everything to gain!
Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/
>>> "Jay Blanchard" <jay.blanchard
niicommunications.com> 07/12/02 11:48AM >>>
[snip]
Want to meet other PHP developers in your area? Check out:
Pretty nifty idea... especially given the lack of user groups in the U.S. [/snip]
I thought for others who had not seen this I would post this. There is probably already a user group in your area if you live near a major city. According to the PHPusergroups.org web site [http://www.phpusergroups.org/groups.phtml?menu=groups] there 189 PHP user groups in 52 countries.
While there is nothing in my area (closest is Houston, over 3 hours away :^[ , and I thought there would be one in Austin, even if I don't want to drive an hour to go drink an adult beverage or two.) but you may find one already exists in your area. Meetup is a cool idea, and appears to be gaining ground slowly. Jon, did you cross-post to all PHP lists?
Jay
"Code! Yes. A programmer's strength flows from code maintainability. But beware of Perl. Terse syntax... more than one way to do it...default variables. The dark side of code maintainability are they. Easily they flow, quick to join you when code you write. If once you start down the dark path, forever will it dominate your destiny, consume you it will." -- Yoda (or maybe Coda)
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Hi All,
I'm porting Java Code to PHP, my question is: What is the best approach to emulate Java exceptions in PHP4? (I know ZE2 adds exceptions but I can't wait).
When a Java method "throws" an exception it is difficult to handle as a "return" of an exception object since then I'd have to check in every sinlge line that calls a method if the returned value is an exception and then return and exception etc etc. (Chaning that up to the user would be a nightmare).
So I need some clever ideas ;-)
Thanks, Garland.
attached mail follows:
ðÒÉ×ÅÔ!
Garland Foster wrote: > Hi All, > > I'm porting Java Code to PHP, my question is: What is the best approach > to emulate Java exceptions in PHP4? (I know ZE2 adds exceptions but I > can't wait).
If the exceptions you have to manage are code generated at runtime you actually may simply write your own manager. Have a root class with a method called
Function exception($yourparms) { treat exception here; }
Game over, since everybody inherits from your root class you can manage whatever you want your own way. It's objects, so work in OO and forget about java lingo.
Mind you, it won't manage a parse error, that's for sure.
ðÏËÁ áÌØÂÅÒÔÏ ëÉÅ×
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is.......
attached mail follows:
Alberto,
I might have expressed the problem wrongly, if you have lets suposse you have: $obj = new foo(); $obj->some(); And some might return an "exception" object.
The problem is that some may call a lot of other methods from foo and I don't want to check if the return value of each method call is an exception.
Example:
function some() { $x = $this->other_method(); }
If other_method produces an exception then I want the exception returned directly to the "some" caller without the need to check in the "Some" method if "other_method" returned a normal "x" or an exception object...
Alberto Serra wrote:
> ðÒÉ×ÅÔ!
>
> Garland Foster wrote:
>
>> Hi All,
>>
>> I'm porting Java Code to PHP, my question is: What is the best
>> approach to emulate Java exceptions in PHP4? (I know ZE2 adds
>> exceptions but I can't wait).
>
>
> If the exceptions you have to manage are code generated at runtime you
> actually may simply write your own manager. Have a root class with a
> method called
>
> Function exception($yourparms) {
> treat exception here;
> }
>
> Game over, since everybody inherits from your root class you can manage
> whatever you want your own way. It's objects, so work in OO and forget
> about java lingo.
>
> Mind you, it won't manage a parse error, that's for sure.
>
> ðÏËÁ
> áÌØÂÅÒÔÏ
> ëÉÅ×
>
>
>
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
>
> LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
> lOrD i'M sHiNiNg...
> YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
> tHe TeSt, YeS iT iS
> ThE tEsT, yEs It Is
> tHe TeSt, YeS iT iS
> ThE tEsT, yEs It Is.......
>
attached mail follows:
ðÒÉ×ÅÔ!
Garland Foster wrote: > Alberto, > > I might have expressed the problem wrongly, if you have lets suposse you > have: > $obj = new foo(); > $obj->some(); > And some might return an "exception" object. > > The problem is that some may call a lot of other methods from foo and I > don't want to check if the return value of each method call is an > exception. > > Example: > > function some() { > $x = $this->other_method(); > } > > If other_method produces an exception then I want the exception returned > directly to the "some" caller without the need to check in the "Some" > method if "other_method" returned a normal "x" or an exception object...
Well, *what* exactly you will do depends on your class architechture (which I don't know). But I suppose you want your exception to behave as an object, while parameters (and returned values) are mostly scalars.
So, you either 1) avoid using scalars at all and spend some time in implementing the base classes you need to emulate scalars (after that you can just do what you asked for as all types will be consistent and you are basically writing smalltalk code, and also performing like a sleeping polar bear accordingly). I'd never do that, personally. 2) create an "exception server" (as we do) to whom you delegate all exception management. When you create a new instance of *any* class of yours you pass it in the constructor a reference to this "exception server" and from then on you can have your exception solved by themselves, while your methods still do not break the chain and continue to return whatever they needed to return (that is, mostly quick scalars).
It's going to take you months of careful planning, though (as always when playing with classes) and 99% of what you do depends on what you really need. You probably will need to "register" your client ($obj in your example) on the server when you issue the call, so that client and server can talk on a peer-to-peer basis, but that again is an architecture dependant issue.
ðÏËÁ áÌØÂÅÒÔÏ ëÉÅ×
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is.......
attached mail follows:
Howdy group,
Over the past couple of days I have come under some fire for my "style" of coding, most particularly the use of PHP scripts to process information between "pages" or interfaces shown to various users. An example;
An agent goes to an interface that reveals a list of customers from a database. These customers have provided referrals which now reside in a database. The agent selects a referral which is processed by an intermediary script which sets a flag in the database saying that "this agent" is, has,or will be contacting this referral (to prevent duplicate contact). Then this redirects to the referral's interface where the details about this referral are revealed.
Interface A +------------+ | Customer | | Submitted | | Referral | +------------+ | +------------------+ +------->| PHP Script | | (for processing) | +------------------+ | Interface B | +------------+ | | Referral | | | Info |<----------+ +------------+
While this is a rather simplistic example (I use some intermediary scripts that are much more complex, some that call other script if the situation warrents it) I have found that for many applications this makes the code easier to maintain, gives me a way ID certain processes when something breaks (I use a lot of error logging), and also prevents some code from being aborted by the user when the results of doing something like that might be undesirable.
I know that this might start a holy war, but it is likely that discussion on this would enhance all of our coding styles. I realize that this may not help me strengthen my position with regards to the fire I have come under, but I had to ask. Thoughts?
Thanks!
Jay
************************************* * Want to meet other PHP developers * * in your area? Check out: * * http://php.meetup.com/ * * No developer is an island ... * *************************************
attached mail follows:
I see no problems whatsoever in utilizing an intermediary script to do processing of information. However, there IS a problem when this script sets flags that are unwanted by the client. An example of a good intermediary script application would be as below.
Person A and Person B both remotely log into their website's Content Management System. They both navigate to the same file on the server, because their boss told them it needs updating. Person A clicks on the link to edit the file first, thereby setting an intermediary script into action which sets a flag, say "checked_out" to true. Person B across the hall is denied access to this file because Person A already has it "checked out". This is much in the tradition of DreamWeaver FTP.
The above is a great example of how intermediary scripts can be used to help avoid critical misunderstandings. You do NOT want two people to edit the same file at the same time, otherwise it'll get messed up REALLY fast.
In your example, though, if the agent simply wishes to view the customer's information, but has no interest in contacting the person at all (perhaps for research purposes), then the flag that says that the agent is, has or will be contacting the customer is obtrusive.
Overall, I think the coding style is very good, and you're right that it does in fact make code much easier to interpret. However, there is a big difference between an intermediary script being helpful, and it being a hinderance.
Just my $20.00 (big mouth, you know)
Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/
>>> "Jay Blanchard" <jay.blanchard
niicommunications.com> 07/12/02 09:40AM >>>
Howdy group,
Over the past couple of days I have come under some fire for my "style" of coding, most particularly the use of PHP scripts to process information between "pages" or interfaces shown to various users. An example;
An agent goes to an interface that reveals a list of customers from a database. These customers have provided referrals which now reside in a database. The agent selects a referral which is processed by an intermediary script which sets a flag in the database saying that "this agent" is, has,or will be contacting this referral (to prevent duplicate contact). Then this redirects to the referral's interface where the details about this referral are revealed.
Interface A +------------+ | Customer | | Submitted | | Referral | +------------+ | +------------------+ +------->| PHP Script | | (for processing) | +------------------+ | Interface B | +------------+ | | Referral | | | Info |<----------+ +------------+
While this is a rather simplistic example (I use some intermediary scripts that are much more complex, some that call other script if the situation warrents it) I have found that for many applications this makes the code easier to maintain, gives me a way ID certain processes when something breaks (I use a lot of error logging), and also prevents some code from being aborted by the user when the results of doing something like that might be undesirable.
I know that this might start a holy war, but it is likely that discussion on this would enhance all of our coding styles. I realize that this may not help me strengthen my position with regards to the fire I have come under, but I had to ask. Thoughts?
Thanks!
Jay
************************************* * Want to meet other PHP developers * * in your area? Check out: * * http://php.meetup.com/ * * No developer is an island ... * *************************************
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Does a patch exist for php-4.0.4pl1? If not, can I use rfc1867.c from 4.0.6 with 4.0.4pl1?
-Bob
attached mail follows:
From what I can understand, I can only use PDI to put PDFs in the background, not use the actual elements from the PDF?
Example: I have created a PDF with a table with two cells in one row. The cells have the text "cell1" and "cell2". I run this PDF through the PDI. Now, can I replace the texts "cell1" and "cell2" with "tobias" and "talltorp", or do I have to place this text "on top of" the original PDF?
Hope this explanation makes any sence :)
// Tobias
> Only using the commercial PDI library from pdflib.com
> > Is it possible to produce a PDF, use it as a template and populate > > predefined sections of it from a database? > > The PDFs I want to create are a little too complex for me to produce from > > scratch.
attached mail follows:
Is it possible to write to exif-headers in pictures?
Wonders:
Victor
attached mail follows:
Hi, I am making a faq maintenance system using mysql and php. To insert a entry in to a faq table i am using the following query: --------- INSERT INTO faq_table_netvd (id,question, answer,netvcr,netdetector,add_date,mod_date,keyword,category,display,attach_ id) VALUES ('0','$frm[question]', '$frm[answer]','$frm[netvcr]','$frm[netdetector]','$frm[add_date]','$frm[mod _date]','$frm[keyword]','$frm[category]','$frm[display]','$frm[attach_id]') "); ----------- now the problem is when $frm[question] has some string like: "why i can't eat". i get the following error: MySQL Error: You have an error in your SQL syntax near 't eat?' ,answer = 'Please recheck the power of your specs:)' ' at line 3.Putting a '\' before ' (e.g. \')solves my problem...but when i open the same quesion to edit it, again i have to put backslashes where ever i find " ' " in the quesion or answer.
Can anyone please suggest a solution to this.
thanx and regards
anil
[please ask if i havent explained the problem fully]
attached mail follows:
Use addslashes() on ALL strings before inserting them into your database. Then, on your frontend, extract the data and use stripslashes() on all strings.
Hope to help!
Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/
>>> "Anil Garg" <anilg
niksun.com> 07/12/02 10:45AM >>>
Hi,
I am making a faq maintenance system using mysql and php.
To insert a entry in to a faq table i am using the following query:
---------
INSERT INTO faq_table_netvd (id,question,
answer,netvcr,netdetector,add_date,mod_date,keyword,category,display,attach_
id)
VALUES ('0','$frm[question]',
'$frm[answer]','$frm[netvcr]','$frm[netdetector]','$frm[add_date]','$frm[mod
_date]','$frm[keyword]','$frm[category]','$frm[display]','$frm[attach_id]')
");
-----------
now the problem is when $frm[question] has some string like: "why i can't
eat".
i get the following error:
MySQL Error: You have an error in your SQL syntax near 't eat?' ,answer =
'Please recheck the power of your specs:)' ' at line 3.Putting a '\' before
' (e.g. \')solves my problem...but when i open the same quesion to edit it,
again i have to put backslashes where ever i find " ' " in the quesion or
answer.
Can anyone please suggest a solution to this.
thanx and regards
anil
[please ask if i havent explained the problem fully]
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
You DON'T have to use stripslashes() on data coming out of a database. The slashes were there to escape certain characters so they could make it into the database. The actual slashes do not go into the database. If they are in your case, then you're using addslashes() twice, somehow. The only time you have to use stripslashes on database data is if your magic_quotes_runtime setting is on in php.ini.
---John Holmes...
----- Original Message -----
From: "Martin Clifford" <MLC1
nrc.gov>
To: <php-general
lists.php.net>; <anilg
niksun.com>
Sent: Friday, July 12, 2002 10:49 AM
Subject: Re: [PHP] ' giving problem while inserting in table.
Use addslashes() on ALL strings before inserting them into your database. Then, on your frontend, extract the data and use stripslashes() on all strings.
Hope to help!
Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/
>>> "Anil Garg" <anilg
niksun.com> 07/12/02 10:45AM >>>
Hi,
I am making a faq maintenance system using mysql and php.
To insert a entry in to a faq table i am using the following query:
---------
INSERT INTO faq_table_netvd (id,question,
answer,netvcr,netdetector,add_date,mod_date,keyword,category,display,attach_
id)
VALUES ('0','$frm[question]',
'$frm[answer]','$frm[netvcr]','$frm[netdetector]','$frm[add_date]','$frm[mod
_date]','$frm[keyword]','$frm[category]','$frm[display]','$frm[attach_id]')
");
-----------
now the problem is when $frm[question] has some string like: "why i can't
eat".
i get the following error:
MySQL Error: You have an error in your SQL syntax near 't eat?' ,answer =
'Please recheck the power of your specs:)' ' at line 3.Putting a '\' before
' (e.g. \')solves my problem...but when i open the same quesion to edit it,
again i have to put backslashes where ever i find " ' " in the quesion or
answer.
Can anyone please suggest a solution to this.
thanx and regards
anil
[please ask if i havent explained the problem fully]
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Hi, addslashes() works fine for me( and as John said i dint need to use stripslashes) NOW( :( ) whats happening is if i *want* to add a backslash in the string that also gets stripped off (as i have to specify many windows paths e.g. c:\niksun\config\ ). Is there any fix to this of its a trade off between ',",... and \ ?
Note: putting a \\ to add \ doesnt help coz for one time it works one i open the entry in edit mode again i have to put \ before all the \. please help regards anil
----- Original Message -----
From: "1LT John W. Holmes" <holmes072000
charter.net>
To: "Martin Clifford" <MLC1
nrc.gov>; <php-general
lists.php.net>;
<anilg
niksun.com>
Sent: Friday, July 12, 2002 12:12 PM
Subject: Re: [PHP] ' giving problem while inserting in table.
> You DON'T have to use stripslashes() on data coming out of a database. The
> slashes were there to escape certain characters so they could make it into
> the database. The actual slashes do not go into the database. If they are
in
> your case, then you're using addslashes() twice, somehow. The only time
you
> have to use stripslashes on database data is if your magic_quotes_runtime
> setting is on in php.ini.
>
> ---John Holmes...
>
> ----- Original Message -----
> From: "Martin Clifford" <MLC1
nrc.gov>
> To: <php-general
lists.php.net>; <anilg
niksun.com>
> Sent: Friday, July 12, 2002 10:49 AM
> Subject: Re: [PHP] ' giving problem while inserting in table.
>
>
> Use addslashes() on ALL strings before inserting them into your database.
> Then, on your frontend, extract the data and use stripslashes() on all
> strings.
>
> Hope to help!
>
> Martin Clifford
> Homepage: http://www.completesource.net
> Developer's Forums: http://www.completesource.net/forums/
>
>
> >>> "Anil Garg" <anilg
niksun.com> 07/12/02 10:45AM >>>
> Hi,
> I am making a faq maintenance system using mysql and php.
> To insert a entry in to a faq table i am using the following query:
> ---------
> INSERT INTO faq_table_netvd (id,question,
>
answer,netvcr,netdetector,add_date,mod_date,keyword,category,display,attach_
> id)
> VALUES ('0','$frm[question]',
>
'$frm[answer]','$frm[netvcr]','$frm[netdetector]','$frm[add_date]','$frm[mod
>
_date]','$frm[keyword]','$frm[category]','$frm[display]','$frm[attach_id]')
> ");
> -----------
> now the problem is when $frm[question] has some string like: "why i can't
> eat".
> i get the following error:
> MySQL Error: You have an error in your SQL syntax near 't eat?' ,answer =
> 'Please recheck the power of your specs:)' ' at line 3.Putting a '\'
before
> ' (e.g. \')solves my problem...but when i open the same quesion to edit
it,
> again i have to put backslashes where ever i find " ' " in the quesion or
> answer.
>
> Can anyone please suggest a solution to this.
>
> thanx and regards
>
> anil
>
> [please ask if i havent explained the problem fully]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
thanx, its working perfect now
anil :)
----- Original Message -----
From: "1LT John W. Holmes" <holmes072000
charter.net>
To: "Anil Garg" <anilg
niksun.com>; "Martin Clifford" <MLC1
nrc.gov>;
<php-general
lists.php.net>
Sent: Friday, July 12, 2002 12:46 PM
Subject: Re: [PHP] ' giving problem while inserting in table.
> If you're using addslashes, then a string like this:
>
> It's going to be a good \ bad day
>
> Will be converted to
>
> It\'s going to be a good \\ bad day
>
> And then you can safely put that into your database. So I don't see why
> using a \ in your string is causing you problems.
>
> ---John Holmes...
>
> ----- Original Message -----
> From: "Anil Garg" <anilg
niksun.com>
> To: "1LT John W. Holmes" <holmes072000
charter.net>; "Martin Clifford"
> <MLC1
nrc.gov>; <php-general
lists.php.net>
> Sent: Friday, July 12, 2002 12:30 PM
> Subject: Re: [PHP] ' giving problem while inserting in table.
>
>
> > Hi,
> > addslashes() works fine for me( and as John said i dint need to use
> > stripslashes)
> > NOW( :( ) whats happening is if i *want* to add a backslash in the
string
> > that also gets stripped off (as i have to specify many windows paths
e.g.
> > c:\niksun\config\ ). Is there any fix to this of its a trade off between
> > ',",... and \ ?
> >
> > Note: putting a \\ to add \ doesnt help coz for one time it works one i
> open
> > the entry in edit mode again i have to put \ before all the \.
> > please help
> > regards
> > anil
> >
> > ----- Original Message -----
> > From: "1LT John W. Holmes" <holmes072000
charter.net>
> > To: "Martin Clifford" <MLC1
nrc.gov>; <php-general
lists.php.net>;
> > <anilg
niksun.com>
> > Sent: Friday, July 12, 2002 12:12 PM
> > Subject: Re: [PHP] ' giving problem while inserting in table.
> >
> >
> > > You DON'T have to use stripslashes() on data coming out of a database.
> The
> > > slashes were there to escape certain characters so they could make it
> into
> > > the database. The actual slashes do not go into the database. If they
> are
> > in
> > > your case, then you're using addslashes() twice, somehow. The only
time
> > you
> > > have to use stripslashes on database data is if your
> magic_quotes_runtime
> > > setting is on in php.ini.
> > >
> > > ---John Holmes...
> > >
> > > ----- Original Message -----
> > > From: "Martin Clifford" <MLC1
nrc.gov>
> > > To: <php-general
lists.php.net>; <anilg
niksun.com>
> > > Sent: Friday, July 12, 2002 10:49 AM
> > > Subject: Re: [PHP] ' giving problem while inserting in table.
> > >
> > >
> > > Use addslashes() on ALL strings before inserting them into your
> database.
> > > Then, on your frontend, extract the data and use stripslashes() on all
> > > strings.
> > >
> > > Hope to help!
> > >
> > > Martin Clifford
> > > Homepage: http://www.completesource.net
> > > Developer's Forums: http://www.completesource.net/forums/
> > >
> > >
> > > >>> "Anil Garg" <anilg
niksun.com> 07/12/02 10:45AM >>>
> > > Hi,
> > > I am making a faq maintenance system using mysql and php.
> > > To insert a entry in to a faq table i am using the following query:
> > > ---------
> > > INSERT INTO faq_table_netvd (id,question,
> > >
> >
>
answer,netvcr,netdetector,add_date,mod_date,keyword,category,display,attach_
> > > id)
> > > VALUES ('0','$frm[question]',
> > >
> >
>
'$frm[answer]','$frm[netvcr]','$frm[netdetector]','$frm[add_date]','$frm[mod
> > >
> >
>
_date]','$frm[keyword]','$frm[category]','$frm[display]','$frm[attach_id]')
> > > ");
> > > -----------
> > > now the problem is when $frm[question] has some string like: "why i
> can't
> > > eat".
> > > i get the following error:
> > > MySQL Error: You have an error in your SQL syntax near 't eat?'
,answer
> =
> > > 'Please recheck the power of your specs:)' ' at line 3.Putting a '\'
> > before
> > > ' (e.g. \')solves my problem...but when i open the same quesion to
edit
> > it,
> > > again i have to put backslashes where ever i find " ' " in the
quesion
> or
> > > answer.
> > >
> > > Can anyone please suggest a solution to this.
> > >
> > > thanx and regards
> > >
> > > anil
> > >
> > > [please ask if i havent explained the problem fully]
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
>
attached mail follows:
> Use full path for every filename.
I have now changed my code to do this, see below.
> Use ls -als to figure the permissions on each file.
I am running this on a windows box for now, and although I have cygwin and can run ls and chmod, they don't seem to have any affect on the actual permissions. From an NT perpsective, I have given the local system account (which Apache runs as) full permissions on the folder in question. Thing is, I am running a tar command before I run bzip and this manages to create a file in this folder without any problems - wouldn't that too fail if it was apermissions problem?
> If the "World" user (last of the three) can't do the thing to the file > (read/write/execute) that you want PHP to do, then PHP can't do it.
This appears to be the case, but as I have said, I can't seem to get write perms set via cygwin :-(
Here is my modified code...
$data = implode ("", file ("$filename.tar")); if ($DEBUG) echo "BZip filename: ".$SITE_ROOT."/$filename.bz2<br>"; $bz = bzopen ($SITE_ROOT."/$filename.bz2", "wb"); bzwrite ($bz, $data); bzclose ($bz);
regards,
Mikey
attached mail follows:
Hi,
Please read the rest of this email if you're interested in helping final year
Computer Science student (yes, that's me...) by giving him some ideas on his final
year project very possible involving PHP and SQL...
I will start next autumn my third year of Computer Science studies. I have to carry
out a large programming project in this final year. These projects are supervised
and assessed via a dissertation and an oral presentation. The project alone counts
for 20% of my whole degree, so it is quite important.
A variety of project proposals have been made available for our consideration
already but they all look very dull and boring. We are also encouraged to come up
with our own project ideas.
The onus is on us to define the problem boundaries, to investigate possible
solutions, and to present the results verbally, in writing and (possibly) to
demonstrate in action. They like having projects that find solutions (or improve a
current sloution) real life problems.
This summer, I am doing an internship in a Swiss IT company, working on a Content
Management System implemented with PHP and MySQL. This will obviously give me some
valuable experience with these languages (I sort of already learn them quite
well...) and most of our tuition in Uni is based on Java.
If you can think of an interestin final year project involving hese languages, it
would be very kind to share it with me... In order to obtain a very high mark, the
project needs to be challenging. For example, having an e-commerce web-site using a
Database is seen as a "weak", non-innovative project...
Many Thanks for your time
Serdar Sokmen
ssn
elca.ch
attached mail follows:
If completely developing a fully functional and optimized E-commerce site isn't good enough, I don't know what is. I can understand how it may not necessarily be innovative (though it could have innovative features), but designing such a site would prove to anyone I know that you have a great knowledge of the language the site was created in.
As for original ideas, good luck. You'll come to find that anything you can think to do has already been done. You're best bet may be to look around some sites on the 'Net and try to vastly improve what has already been done.
Projects that find solutions? That could be anything from a Weight Loss Tracking System to an advanced encryption/decryption algorithm.
Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/
>>> "Serdar Sokmen" <ssn
elca.ch> 07/12/02 11:14AM >>>
Hi,
Please read the rest of this email if you're interested in helping final year
Computer Science student (yes, that's me...) by giving him some ideas on his final
year project very possible involving PHP and SQL...
I will start next autumn my third year of Computer Science studies. I have to carry
out a large programming project in this final year. These projects are supervised
and assessed via a dissertation and an oral presentation. The project alone counts
for 20% of my whole degree, so it is quite important.
A variety of project proposals have been made available for our consideration
already but they all look very dull and boring. We are also encouraged to come up
with our own project ideas.
The onus is on us to define the problem boundaries, to investigate possible
solutions, and to present the results verbally, in writing and (possibly) to
demonstrate in action. They like having projects that find solutions (or improve a
current sloution) real life problems.
This summer, I am doing an internship in a Swiss IT company, working on a Content
Management System implemented with PHP and MySQL. This will obviously give me some
valuable experience with these languages (I sort of already learn them quite
well...) and most of our tuition in Uni is based on Java.
If you can think of an interestin final year project involving hese languages, it
would be very kind to share it with me... In order to obtain a very high mark, the
project needs to be challenging. For example, having an e-commerce web-site using a
Database is seen as a "weak", non-innovative project...
Many Thanks for your time
Serdar Sokmen
ssn
elca.ch
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
[snip] Computer Science student (yes, that's me...) by giving him some ideas on his final year project very possible involving PHP and SQL... [/snip]
How about a billing system? Accepts orders, processes invoicing, tracks customer trends and habits, has a method for tracking "aged" bills (over 30, over 60, over 90, etc.), a method for collections, etc. Billing systems can be quite complex and require extensive planning, they must tie in with inventory systems, sales systems, etc. You could do the whole integration.
HTH!
Jay
attached mail follows:
It was a few years ago, waaaaaaay back in 96, but if its any kind of help my final year project was to design a hypertext documentation system for Java.
All it did was take Java source files, and parse them to produce html output, where instances were linked to take you to the definition of that class, and class definitions were linked to take you to a list of instances of that class. 2 way linkage. Similarly for methods etc. I also added in code colorisation, so comments came up green, strings in blue etc.
Doesn't sound that innovative now, but it was quite cool at the time. AND most of the things I had in there can now be seen in any good IDE. Ahead of my time... :-)
One thing I did, and I assume you have to do something similar, is an evaluation in your project report. I made the source code available on my web page at university, and got folk on various java newsgroups to evaluate it for me. So not only did that section of the report get virtually written for me, but I got some fantastic feedback and ideas.
Just my 2p...
==========================================
Richard Black
Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 435 3504
Email: rblack
datavisibility.co.uk
attached mail follows:
A couple projects that I have thought of doing at are quite large would be: 1. A network monitor, like Big Brother, but written in php. Completely db driven, with an easy to use web interfaces for monitoring/adding systems and has uptime graphs, etc. It can be quite complex if you try to add heirachies connections, so for instance, you'd only alert on the router, and not on all of the systems behind the router -- although you'd show them as down, it isn't reported that they're down.
2. A front end interface to jpgraph that lets you do data mining over any db, allowing you to choose the tables, x-axis, y-axis, labels, overlay another plot over existing ones, etc in an easy to use interface.
3. An access like front end to mysql.
attached mail follows:
Hi Serdar,
Let me check my bag of "sadly archived" projects.... mmmh....yes....
I have a good idea for an "A" project: A RELAX NG validator for PHP. You can base your work on "Jing", a RNG validator in Java. The advantages are clear
a) 100% feasible (if everything fails just watch how Jing does it) b) Lot of CS theory to cover (Nullable patterns, ambiguous grammars, tree grammars, derivatives, etc) c) Good documentation d) Really useful for the PHP community e) Original f) Technically challenging g) You can get some support/help from the PHP community (I guess)
What do you think?
Garland.
> Hi,
>
> Please read the rest of this email if you're interested in helping final
> year
>
> Computer Science student (yes, that's me...) by giving him some ideas on his
> final
>
> year project very possible involving PHP and SQL...
>
> I will start next autumn my third year of Computer Science studies. I have
> to carry
>
> out a large programming project in this final year. These projects are
> supervised
>
> and assessed via a dissertation and an oral presentation. The project alone
> counts
>
> for 20% of my whole degree, so it is quite important.
>
> A variety of project proposals have been made available for our
> consideration
>
> already but they all look very dull and boring. We are also encouraged to
> come up
>
> with our own project ideas.
>
> The onus is on us to define the problem boundaries, to investigate possible
>
> solutions, and to present the results verbally, in writing and (possibly) to
>
> demonstrate in action. They like having projects that find solutions (or
> improve a
>
> current sloution) real life problems.
>
> This summer, I am doing an internship in a Swiss IT company, working on a
> Content
>
> Management System implemented with PHP and MySQL. This will obviously give
> me some
>
> valuable experience with these languages (I sort of already learn them quite
>
> well...) and most of our tuition in Uni is based on Java.
>
> If you can think of an interestin final year project involving hese
> languages, it
>
> would be very kind to share it with me... In order to obtain a very high
> mark, the
>
> project needs to be challenging. For example, having an e-commerce web-site
> using a
>
> Database is seen as a "weak", non-innovative project...
>
>
> Many Thanks for your time
>
> Serdar Sokmen
> ssn
elca.ch
>
>
>
>
>
attached mail follows:
ðÒÉ×ÅÔ!
Martin Clifford wrote: > If completely developing a fully functional and optimized E-commerce site isn't good enough, >I don't know what is. I can understand how it may not necessarily be innovative (though it could >have innovative features), but designing such a site would prove to anyone I know that you have a >great knowledge of the language the site was created in.
The uni env tends to rate real life as "vulgar" :) I suggest you concentrate on demonstrating something more "cultural". It will be of no use in real life but it's going to get you good grades, which is what you mostly need at the moment, right?
Something like an automatic translator from Klingon to Elvish will do. I AM SERIOUS AND SOBER, keep reading. Just make sure your implemented versions of Klingon and Elvish have sufficiently *mad* grammars to allow some linguist to step in and join the project team. You may wanna check W3c docs about the two x-languages in question. They *do* exist.
At that point you'll be doing a cross-speciality work, none of your tuitors will have the skills required to judge the project without insulting a collegue and they will be all forced to give you guys good grades just to get rid of the problem ASAP.
If Klings and Elves won't do (which I doubt, since Tolkien is still a-la-page) you may wanna protect some linguistic minority in the Amazonas or in the deepest parts of the central Siberian plains... Won't keep you from killing them by printing your work on the paper made with their trees, but it will look soooo politically correct ;)
You think I'm joking? I am not. But if you miss the guts to go straight and cheat them, then make a Linux online updater that will work. What? You like Klingon better? I had no doubts :)
ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ×
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is.......
attached mail follows:
Hey Serdar:
Have you ever heard of a piece of Software called 1st Place... You can create a simulation of that... It is used for Cooperative Education Services... We have it in place here at Memorial University (Canada)... It gives coordinators of various cooperative education programmes a decent way of keeping track of Employers for Interns participating in their programmes, Students enrolled as interns, schedules for job interviews... e.t.c A similar type of software is Place Pro...
Here is what happens: There is a user friendly front end... When an Employer enlists to the program (i.e. when they want to contact students from a particular field they contact our office and are entered into the DataBase) All relevant info. is stored... Queries are in the form of forms... and are made against a couple of Databases in our Case Student.db (holding Students), Company.db (holding Company info), Schedule (I am not sure what table that one is held in)... Noticably they are all Paradox Tables... There are Lock Mechanisms that prevent Overwriting of a particular Row given two people are logged on at the same time... Such a project would depend on the ability to which your mind can conjure up pictures relating to such a project... Alot of features are taken into account... p/s: when engaging in such a project you ought to take into account security... You don't want every Tom, Dick and Harry to get at your Data (Hence the User Friendly Front End Should be straight Forward as well as Secure)...
Good Luck in Your final decision...
Spike...
"Garland Foster" <garland_foster
salutia.com> wrote in message
news:3D2EFF5B.1000708
salutia.com...
> Hi Serdar,
>
> Let me check my bag of "sadly archived" projects.... mmmh....yes....
>
> I have a good idea for an "A" project: A RELAX NG validator for PHP. You
> can base your work on "Jing", a RNG validator in Java. The advantages
> are clear
>
> a) 100% feasible (if everything fails just watch how Jing does it)
> b) Lot of CS theory to cover (Nullable patterns, ambiguous grammars,
> tree grammars, derivatives, etc)
> c) Good documentation
> d) Really useful for the PHP community
> e) Original
> f) Technically challenging
> g) You can get some support/help from the PHP community (I guess)
>
> What do you think?
>
> Garland.
>
>
>
> > Hi,
> >
> > Please read the rest of this email if you're interested in helping final
> > year
> >
> > Computer Science student (yes, that's me...) by giving him some ideas on
his
> > final
> >
> > year project very possible involving PHP and SQL...
> >
> > I will start next autumn my third year of Computer Science studies. I
have
> > to carry
> >
> > out a large programming project in this final year. These projects are
> > supervised
> >
> > and assessed via a dissertation and an oral presentation. The project
alone
> > counts
> >
> > for 20% of my whole degree, so it is quite important.
> >
> > A variety of project proposals have been made available for our
> > consideration
> >
> > already but they all look very dull and boring. We are also encouraged
to
> > come up
> >
> > with our own project ideas.
> >
> > The onus is on us to define the problem boundaries, to investigate
possible
> >
> > solutions, and to present the results verbally, in writing and
(possibly) to
> >
> > demonstrate in action. They like having projects that find solutions (or
> > improve a
> >
> > current sloution) real life problems.
> >
> > This summer, I am doing an internship in a Swiss IT company, working on
a
> > Content
> >
> > Management System implemented with PHP and MySQL. This will obviously
give
> > me some
> >
> > valuable experience with these languages (I sort of already learn them
quite
> >
> > well...) and most of our tuition in Uni is based on Java.
> >
> > If you can think of an interestin final year project involving hese
> > languages, it
> >
> > would be very kind to share it with me... In order to obtain a very high
> > mark, the
> >
> > project needs to be challenging. For example, having an e-commerce
web-site
> > using a
> >
> > Database is seen as a "weak", non-innovative project...
> >
> >
> > Many Thanks for your time
> >
> > Serdar Sokmen
> > ssn
elca.ch
> >
> >
> >
> >
> >
>
>
attached mail follows:
I am trying to read and write to a file on Line 5 and line 5 alone... $file = fopen($fileName, "r+"); Places the pointer at the beginning of the file I have tried the following...
$line = fgets($file, 255); $line = fgets($file, 255); $line = fgets($file, 255); $line = fgets($file, 255); fputs($file, "the Line I want to write;"); but nothing is happening... Please Help...
Kondwani
attached mail follows:
Figured it out:
I just rewrote the first 3 lines with a few new Line Characters and place respat the Line I wanted Changed with its Variable...
fputs($file, "<?\nline1\nline2....etc");
The reason I was trying to read it at first was that I had a Cookie Set at the very top and I thought it would reset this each time it rewrites it... Since my code is running on Sessions that doesn't really matter... However just for Interests Sake...
Given that I was not using sessions, and I wanted the Cookie Maintained, would rewriting it to self file on each try, reset the cookie hence elongating the Cookie expiration Time?
Spike...
"Kondwani Spike Mkandawire" <kondwani
cs.mun.ca> wrote in message
news:20020712152856.25591.qmail
pb1.pair.com...
> I am trying to read and write to a file on Line 5 and line 5 alone...
> $file = fopen($fileName, "r+");
> Places the pointer at the beginning of the file I have tried the
> following...
>
> $line = fgets($file, 255);
> $line = fgets($file, 255);
> $line = fgets($file, 255);
> $line = fgets($file, 255);
> fputs($file, "the Line I want to write;");
> but nothing is happening... Please Help...
>
> Kondwani
>
>
attached mail follows:
Hi,
I started with PHP and MYSQL a while ago and now I've been involved in a huge database project with ORACLE. My point is I never used it nor develop with ORACLE, so I want to know where and what kind of information I need to port my web application developed with php and mysql to port it to ORACLE, and where can I find information regarding HUGE database applications design using php.
So far I only have the book Designing Web Applications using PHP and MySQL by Luke Wellington, and MySQL by Paul Dubois.
And i don't have any kind of experience with Oracle, so I would appreciate any recommendations from experienced developers.
TIA, Regards, Ricardo Fitzgerald
attached mail follows:
ðÒÉ×ÅÔ!
I hope you are not really living in the early 70's, are you?
Ricardo Fitzgerald wrote: > Hi, > > I started with PHP and MYSQL a while ago and now I've been involved in > a huge database project with ORACLE.
Have the Oracle box do most of it. Make sure that: 1) there is a well defined API for external application (including your PHP client) to access data. This *must* written an paper and documented. No code writing prior to this. 2) all about referential integrity is done within Oracle 3) use triggers and SPs to enforce data consistency (handle with care, they load the db server if used unproperly) 4) find a good DBA to maintain the system (Oracle can degrade quite dramatically if not properly maintained) 5) interact very little with the DB, to avoid loading its server. (That is, call an SP, get the result set from a tmp table) 6) avoid locking as much as you can 7) Prey the current Oracle bugs are not too evil. 8) get ready to say good bye to your vacations. 9) ask for a paycheck raise
ðÏËÁ áÌØÂÅÒÔÏ ëÉÅ×
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is.......
attached mail follows:
On Fri, 12 Jul 2002, Alberto Serra wrote: > Ricardo Fitzgerald wrote: >> I started with PHP and MYSQL a while ago and now I've been involved in >> a huge database project with ORACLE. > > Have the Oracle box do most of it. Make sure that: > 1) there is a well defined API for external application (including your > PHP client) to access data. This *must* written an paper and documented. > No code writing prior to this. > 2) all about referential integrity is done within Oracle > 3) use triggers and SPs to enforce data consistency (handle with care, > they load the db server if used unproperly) > 4) find a good DBA to maintain the system (Oracle can degrade quite > dramatically if not properly maintained) > 5) interact very little with the DB, to avoid loading its server. (That > is, call an SP, get the result set from a tmp table) > 6) avoid locking as much as you can > 7) Prey the current Oracle bugs are not too evil. > 8) get ready to say good bye to your vacations. > 9) ask for a paycheck raise
This is all very good advice (especially 4 and 8).
Oracle can do amazing things but if you just pretend it's MySQL you'll have a pretty miserable time. Learn about triggers and stored procedures and views and you will be amazed at how quickly and scalably you can do very complicated things.
Don't learn about indexing and table optimization and you will be amazed at how slow your application is.
miguel
attached mail follows:
No, it's not a dating service.... :) Want to meet other PHP developers in your area? Check out:
Pretty nifty idea... especially given the lack of user groups in the U.S. [/snip]
I thought for others who had not seen this I would post this. There is probably already a user group in your area if you live near a major city. According to the PHPusergroups.org web site [http://www.phpusergroups.org/groups.phtml?menu=groups] there 189 PHP user groups in 52 countries.
Jay
"Chaos, panic & disorder…my work here is done!"
attached mail follows:
For the odbc_exec(), is there a way to validate whether this return a true or false. If false, then the error message?
I really hate PHP_SELF now, this one web page is written to be repeated 3 times. With the global register turned off, everything was really a mess and I'm close to being done in cleaning it up. Now, the odbc_exec() doesn't work.
attached mail follows:
On Friday 12 July 2002 03:27, Tyler Longren wrote: > Hi, > > I have a form: > <input type=file name=pdfFile> > > And the code that processes the form: > if ($_FILES['pdfFile']['name'] == "") { > print "You must select a file to upload"; > } > else { > // code to add data to db > } > > This works on my server at home (when I select a file to upload, it sees > the filename in $_FILES['pdfFile']['name'], but on a server at work, > it's blank so I see the error "You must select a file to upload". > > Any ideas on why this might happen? Is there anything in php.ini that > could be wrong (it works here at home when register_globals is set to on > or off)?
What would help is what version(s) of php are you using?
Things to check:
If php < 4.1.X then $_FILES[] is not available, use $HTTP_POST_FILES[],
If upload fails for any reason then (I believe), $_FILES['pdfFile']['name'] would be empty. So:
php.ini --> upload enabled? Are the other settings governing uploads set to reasonable values? Check manual > Handling file uploads > Common Pitfalls to see what these settings are.
-- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development */* Machines that have broken down will work perfectly when the repairman arrives. */
attached mail follows:
I would like to write a PHP script that fetchs email from a POP3 account and then processes it based on the content of the email, such as writing it to a CRM database or confirming an ezine subscription. I would then run the PHP script via a cron job every ten minutes or so.
I've looked at the PHP documentation some and I could write a script completely from scratch if needed, but I'm wondering if anyone could point me to a reference where doing this with PHP (or Perl for that matter) is discussed. I don't seem to recall having ever seen such an article.
Any ideas?
Thanks,
Reid Wilson
reidw
uta.edu
University of Texas at Arlington
attached mail follows:
Anyone know how to do have a variable equal the contents of a file? I tried the include function, but it just prints the file out on the screen rather than including the contents in the variable itself. I need help with this ASAP. Thanks.
J. Alden Gillespy (DJ Rage) Broadcasting on Test Pattern Radio Shock Rock! Every Sunday 5-8pm edt (21-0 gmt) http://www.thetestpattern.com
attached mail follows:
On Fri, 12 Jul 2002, J. Alden Gillespy wrote: > Anyone know how to do have a variable equal the contents of a file? I tried > the include function, but it just prints the file out on the screen rather > than including the contents in the variable itself. I need help with this > ASAP. Thanks.
$variable = join('', file('path/to/file'));
miguel
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]