Re: [PHP] filtering filename.ext on file-upload.

2004-01-15 Thread daniel
> On Friday 16 January 2004 10:10, Louie Miranda wrote: >> How can you filter the extension for files being uploaded on a system >> via form. > > Use pathinfo() to get the file extension. > > -- I suggest you check out the pear Upload class, its exactly what you need. -- PHP General Mailing List

Re: [PHP] filtering filename.ext on file-upload.

2004-01-15 Thread daniel
>> On Friday 16 January 2004 10:10, Louie Miranda wrote: >>> How can you filter the extension for files being uploaded on a system >>> via form. >> >> Use pathinfo() to get the file extension. >> >> -- > > I suggest you check out the pear Upload class, its exactly what you > need. > http://pear.ph

Re: [PHP] help with form

2004-01-17 Thread daniel
> I'm creating a form that puts data into two different tables in the > database. I was wondering how to get the "ID" from the first table > and, in the "background", associate it with the second table? > > any help is GREATLY appreciated! > Firstly you never said which db ? I'll assume mysql, ch

[PHP] Report Server

2004-01-18 Thread daniel
Hi there, i was wondering if there was a good report designer/server out there which is open source and runs perfectly on a linux machine connecting to mysql, which can do pdf or excel and maybe charts. There have been too many i have tried out but either dont work or isnt what i wanted. Please let

Re: [PHP] dreaded sessions

2004-01-19 Thread daniel
sorry i missed this thread, but what seems to be the problem with php sessions ? I had to use phplib sessions on the works php3 server, which one is better disk based sessions or database based sessions ? I have no problem whatsoever with 60 concurrent users on a php session based system but what a

RE: [PHP] Generating an Excel file?

2004-01-19 Thread daniel
Geez what really bad advice, giving an end user a totally useless unfriendly csv file is bad bad bad. I suggest you check out http://pear.php.net/package/Spreadsheet_Excel_Writer , its a pain to get the layout perfect, but once its done you have what you need. I've also been trying to hassle to get

Re: [PHP] Re: Generating an Excel file?

2004-01-19 Thread daniel
> Alright. You've all given some great suggestions, and I'm going to > track them down. But, for now, I'm settling for creating a CSV file. > > My next question: How do I get the file to download without the ".php" > extension on the end? It's downloading it as "filename.csv.php". > > The code

RE: [PHP] Odd Code Error.

2004-01-20 Thread daniel
i've never had a problem doing if ($var=="test") ?? > I've come across this recently too. I think what's happening is that > PHP is converting "NFH" to an integer, which would be zero in this > case. Thus zero == zero is true... > > Try doing type checking too: > if ($EA === "NFH") > > Marti

Re: [PHP] Odd Code Error.

2004-01-20 Thread daniel
> Interesting. I wouldn't have expected that. However, that is how it > should work. Check out table K-2 on this page: > > http://us4.php.net/manual/en/types.comparisons.php > > '==' is a loose comparison. You can use '===' instead which will give > you the results you are looking for. > > if ($EA

Re: [PHP] thumbnail

2004-01-20 Thread daniel
> How I can create thumbnail with php? using the GD libray? Of course u answered your own question, http://us4.php.net/manual/en/function.imagecopyresampled.php Make sure you have GD2 though you dont want crappy pixelated images. If you want a class already made up check out http://pear.php.ne

Re: [PHP] thumbnail

2004-01-20 Thread daniel
> [snip] > How I can create thumbnail with php? using the GD libray? > [/snip] > > yes. > > Also I hear imagemagick works well. > I included a imagemagick rotate feature into my photo gallery application as gd just cant seem to do it well ?? -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] Odd Code Error.

2004-01-20 Thread daniel
>> Hmm after all this time, are you saying its best to use === instead of >> == in any application ? > > I would recommend using it whenever you can. It may require a few extra > lines of code here and there, but you know for sure what 'type' you are > dealing with. This is especially good when de

Re: [PHP] Re: Flash-PHP Socket Connection

2004-01-20 Thread daniel
check out http://www.php.net/manual/en/ref.ircg.php and http://www.schumann.cx/ircg/ > I am doing the same thing at the moment, > > I'm building a Flash/PHP/MySQL chat system capable of handling over > 1000 users online at one time. > > GET and POST just doesn't cut it, so I began to explore ot

Re: [PHP] PHPSESSIONID altering each time the page is loaded in IE

2004-01-20 Thread daniel
> As the subject says, I posted this bug report on the official php bugs > page http://bugs.php.net/bug.php?id=26950 and have now changed my > storing of user information to use cookies as such: > > setcookie("cookie_auth_memberID", $row['id'], time()+604800,'/'); > setcookie("cookie_auth_Username"

Re: [PHP] PHP 5 Book

2004-01-21 Thread daniel
> Hi > > > > Anyone know if Rasmus (or anyone for that matter) is writing a book on > PHP 5? And when it might be available? > > There was a showcase posted here before, i dont know about a book, but a pdf reference would be good. Dan (cant wait for the release of both PHP5 and Mysql 4.1) -- PH

Re: [PHP] Re: PHP FuseBox

2004-01-21 Thread daniel
> > Thanks, that was my next question...I was told to look at PEAR from > the beginning. All I can say is PEAR looks very exciting for me. > > Some good coding structure ideas that have been brought into the > Lasso developer circles over the years: > > 1) FrameWork...(incredible piece of work) I

Re: [PHP] PHP 5 Book

2004-01-21 Thread daniel
> Speaking of MySQL, I heard tale that 5.0 would include VIEWS, but I > can't find that in any of the new features logs. Anyone know about > this? It'd be a great feature to have. Unless, of course, anyone > knows how to do this without a "CREATE VIEW" statement. > > -Ben Its a terrible annoya

Re: [PHP] Odd Code Error.

2004-01-21 Thread daniel
> I agree with Chris... > > In contrast you can also see a common problem in many of the > downloadable scripts from different collections on the net, like > hotscripts.com, where the programmers start building control structures > whitout having the different variables they use set. > > For insta

Re: [PHP] Odd Code Error.

2004-01-21 Thread daniel
> > So do you recommend using isset($name) instead of ($name) ? And what > are you meaning by setting the var as in var $name ? i usually set them > in classes but how about in normal scripts and functions ? > Hmm i was checking out a pear class, what about the variables within a function ? like

Re: [PHP] PHP FuseBox

2004-01-21 Thread daniel
> I've developed my own methodology and coding practices over the past > 3-5 years, but summarising them into a few lines and code snippets is > impossible :) > I think we all have, maybe there should be a posting place to submit our methodology and frameworks, and then maybe just maybe come up w

Re: [PHP] Odd Code Error.

2004-01-21 Thread daniel
> Yes, if you want to examine if a variable is set or not, then you > should use isset(). Ok i'll start using it > Exactly how a variable should be set, well it could be for instance var > $age:int; > Where on the php site does it tell you to set it like that ? I've never seent that before ?

Re: [PHP] Odd Code Error.

2004-01-21 Thread daniel
> [EMAIL PROTECTED] wrote: > >> Hmm i was checking out a pear class, what about the variables within a >> function ? like function >> >> foo($name) { >> if ($name) { >> >> } >> } >> >> or >> >> foo($name) { >> if (isset($name)) { >> >> } >> } >> >> it uses isset on variables coming outside the

Re: [PHP] Odd Code Error.

2004-01-21 Thread daniel
> > And $bar === true will only become true, if $bar is true, look at table > K-3 here http://www.php.net/manual/en/types.comparisons.php > Ok i tested it out function foo($bar = null) { if (isset($bar)) die("yes"); } foo("test"); will die where foo(); wont -- PHP General Mailing

Re: [PHP] Odd Code Error.

2004-01-21 Thread daniel
> On Wed, 2004-01-21 at 20:19, Chris W wrote: >> Robert Cummings wrote: May i ask how you handle your error handling Robert ? I'm considering moving my class error handling to pear but then it'll need a custom class or function anyway to handle the errors in different ways for different applicatio

Re: [PHP] PHP 5 Book

2004-01-21 Thread daniel
> I'm using 4.1 alpha now - It is stable enough for a dev box - Nested > queries are good fun. > > Yes i meant for production use, i run a few machines at home, the main internet gateway is a bsd box which serves to the net. I have an internal dev box on knoppix, both are running apache 2, php 4.3

Re: [PHP] Odd Code Error.

2004-01-21 Thread daniel
Ok i found something very interesting , i have a session var setup to check for a groupID which is an integer, if ($_SESSION['groupID']==1) { this was working, then when i changed it to if ($_SESSION['groupID']===1) { per recomendation, it does not now ! i was going through my code and changing t

Re: [PHP] Odd Code Error.

2004-01-21 Thread daniel
> Ok i found something very interesting > , i have a session var setup to check for a groupID which is an > integer, > > if ($_SESSION['groupID']==1) { this was working, then when i changed it > to > > if ($_SESSION['groupID']===1) { per recomendation, it does not now ! i > was going through my cod

Re: [PHP] Re: XSL

2004-01-25 Thread daniel
May i ask, what is a good purpose for xsl apart from syndication, is it worth it for building an entire site in or a content management system ? Like i found generating the xml, then having to do loops and stuff in xsl, having no control in php a real pain. > Ahh fantastic. Thanks very much for th

[PHP] Netscape Enterprise Server + PHP ?= possible

2001-04-24 Thread Daniel
Hi! I'm going to use PHP with Netscape Enterprise Server 3.5.1 (HP-UX). Is it possible and what should I do? As I understood from the documentation JSP is only one way. Do not want to believe in it. :-) Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [

[PHP] PHP Books

2001-05-08 Thread Daniel
ooks which you would recommend?? Thanks in advance Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] PHP Editor

2001-05-10 Thread Daniel
Hi, Just wondering whether you guys use any type of editor when programming in PHP? if so what have you found to be useful? Thanks Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] function scope question

2002-01-24 Thread daniel
LY within a particular class, then it should be created in that class, otherwise, it should be created outside of any class, and is therefore available globally. I can't say whether it SHOULD be the way it is or not... but I can tell you that the behaviour you are describing is accurate and inte

Re: [PHP] How can the Surfer download

2002-01-24 Thread daniel
e, make the word "inline" read as "attachment" so it'll force the user to download, as opposed to displaying in the browser. Daniel J. Lashua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] using a text file for variables in a form?

2002-01-24 Thread daniel
w to make the text file pass the variables > into the form that i use to edit the text file... confusing? First, you need to get the data from the file and make the items useful: Now your values are accessible as $data["SAVINGS"], etc. So... when building the HTML... "; ?>

Re: [PHP] How can the Surfer download

2002-01-24 Thread daniel
me you hit the page, it will be cached (in it's incorrect form) in your browser. Therefore, after making these changes, you should dump the Disk and Memory cache in your browser, and close and restart your browser just to be safe. Daniel -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] using a text file for variables in a form?

2002-01-24 Thread daniel
; > print '"; > ?> Yeah. I typoed. It is just BASIC outputting of HTML, though. You can do it a million different ways. If you wanted to do it my way... you should use this: "; ?> but... of course it takes MUCH more than that to have anything working. You need FORM

Re: [PHP] Uploading a file

2002-01-24 Thread daniel
t example. Pay special attention to the text UNDER the first example. Daniel J. Lashua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Uploading a file

2002-01-24 Thread daniel
MAX_FILE_SIZE field. Daniel J. Lashua On Thu, Jan 24, 2002 at 02:31:03PM -0800, Todd Cary wrote: > Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm > Date: Thu, 24 Jan 2002 14:31:03 -0800 > From: Todd Cary <[EMAIL PROTECTED]> > X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) &g

Re: [PHP] Building my site... again

2002-01-25 Thread daniel
nes like you and your pages, you can make your URLs appear more normal by doing something like this: URL= http://you.com/index.php/cars/ferrari Then... in your code you can access the additional data by looking at the $PATH_INFO variable: Hope this helps, Daniel J. Lashua -- PHP Gene

Re: [PHP] Building my site... again

2002-01-25 Thread daniel
p Put... that step is really for "cleanliness" of the URL, as the spiders don't care at all. Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Building my site... again

2002-01-25 Thread daniel
Andrew- > Note, > > This will not work with PHP as a CGI. I honestly don't know, as I don't run PHP as a CGI. However... if there is a problem with this, I would be inclined to think that it was Apaches fault, and not PHPs. Daniel -- PHP General Mailing List (http

Re: [PHP] Must results from MySQL fetches always be an Array??

2002-01-25 Thread daniel
> ...Rene function mysql_get_one_field($stmt,$db) { $res = mysql_query($stmt,$db); $series = mysql_fetch_array($res); mysql_free_result($res); return $series[0]; } Daniel J. Lashua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] use linux commands within php

2002-01-25 Thread daniel
f lines in a file... do this: This offers the advantage of having the file loaded into an array, since... chances are you want to do something with it after you spit out how many lines are in it. Daniel J. Lashua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Getting the HTML Name Value in Forms(newbie)

2002-05-09 Thread Daniel
it to list the product's Name (name="") field? I've looked around and can't work out how to do this. Theres 800 items at the moment and i don't want to have to type out all the names, just get the names on the ones selected.. Can someone help? Regards, Daniel Madde

[PHP] opendir security hole

2002-05-23 Thread daniel
hi i am creating a webbased filemanager for uploading files to the database, to determin which dir i upload to i have the directory in the query string ie ?dir=blah , i have found a security flaw where if you type dir=../../../../ it will show you the root dir of the server , how can i lock into a

Re: [PHP] opendir security hole

2002-05-24 Thread daniel
unfortunatly it still happens "Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, May 23, 2002 at 11:22:28PM +1000, daniel wrote: > > dir=../../../../ it will show you the root dir of the server ,

Re: [PHP] opendir security hole

2002-05-24 Thread daniel
scuse my ignorance i had it after opendir, thanks for that "Daniel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > unfortunatly it still happens > "Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message >

[PHP] server side games question

2001-11-13 Thread Daniel
for this? I am open to suggestions and constructive criticism. Cheers, Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Need a functional equivilant to the ASP QueryString collection

2001-04-09 Thread Daniel
I'm writting a web application that is building a web form dynamically, and upon submission by the user, it needs to save all of the user inputs to a database. The problem is, I don't know what the names of the input elements will be. In ASP, I would iterate through the QueryString collection (e.

Re: [PHP] Need a functional equivilant to the ASP QueryString collection

2001-04-09 Thread Daniel
Way to easy. I should have investigated further. :/ Thanks! Daniel "Alexander Wagner" <[EMAIL PROTECTED]> wrote in message 01040921221307.02806@zahna">news:01040921221307.02806@zahna... > You should find all you need in the global variables $HTTP_POST_VARS > an

[PHP] Limitation of redirecting using header()?

2001-04-10 Thread Daniel
hat I'm seeing is that while the followup page is loaded, the location in the address bar (of IE 5.5) is not updated. Is this something specific to IE? I would like the address bar to have the correct address instead of the old page. Any suggestions? - Daniel -- PHP General Mailing Li

Re: [PHP] Limitation of redirecting using header()?

2001-04-10 Thread Daniel
g after the header() call mattered. What I didn't realize was that even though the header was set up to redirect to a new page, the rest of the code in the page was still executing! I put an exit() statement after the header() call to prevent this. Daniel "Mark Maggelet" <[EMAIL PR

Re: [PHP] dynamic checkboxes

2001-04-10 Thread Daniel
What you need to do is to have a function in the form processing page that iterates through $HTTP_POST_VARS and saves the name and value of each item in the form. You will want to exclude your submit button and if there are other form items you don't want to save, you might want to name them with

[PHP] to use PHP under Netscape Enterprise Server 3.51

2001-07-16 Thread Daniel
Hi! Please help me to use PHP under Netscape Enterprise Server 3.51 or Fast track 4.1 Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

Re: [PHP] sorry for the blast from the past

2013-06-01 Thread Daniel
On Sun, Jun 2, 2013 at 11:02 AM, Tamara Temple wrote: > > > Sorry for replying to a message from 2011 -- for some reason I had a > whole bunch of PHP messages suddenly show up in my inbox from the > past. I generally don't check the year of an unread message in my inbox, > as I try to keep inbox-z

Re: [PHP] Re: [PHP-DEV] [PHP] PHP 5.5.0 final has been released!

2013-06-21 Thread Daniel
I hope this will get people like WordPress to get up and support mysqli out of the box. going to cause big issues if they don't. On Sat, Jun 22, 2013 at 8:59 AM, Martin Amps wrote: > I second this - great to see both finally available. Fantastic release! > > Martin Amps | CIO > www.iCrac

[PHP] Find a list of function that clashes?

2013-07-05 Thread Daniel
Hello all, I'm just wondering if there is a way of getting a list of functions that will clash across 2 folders. I'm trying to update wp-united so that I can use it with WordPress multisite. I know that some of the functions are the same in both phpbb and WordPress. Is there any way of generating

Re: [PHP] How to read PHP-FPM config values using phpinfo

2013-07-16 Thread Daniel
Hi there, Just a question, do you have Apache configured to use the PHP-FPM and not the Apache module? That something that people can mess up on. Thanks :) On Wed, Jul 17, 2013 at 9:58 AM, Amiya Maji wrote: > Hi all, > > I am using PHP-FPM with Apache 2.4. I periodically change my php-fpm.con

Re: [PHP] suhosin and 5.4 onwards

2013-08-03 Thread Daniel
> hope that a dev or someone in the inner circle knows the facts, and > not rumours or sumizes, or a tleast more facts than half the self > appointed gurus claim :) > > Thanks > Nikki > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, vis

Re: [PHP] Finally....

2013-08-17 Thread Daniel
Yay, Thankyou :) Regards, Daniel Fenn On Sat, Aug 17, 2013 at 2:30 AM, Robert Cummings wrote: > On 13-08-16 11:58 AM, Marc Guay wrote: >> >> Those Belgacom emails were the only thing keeping me from a crushing >> loneliness - undo! > > > *sniffle* Another

Re: [PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-03 Thread Daniel
Just so that you know, I've posted in the forum topic as well: http://forum.piwik.org/read.php?2,105879 Regards, Daniel Fenn On Tue, Sep 3, 2013 at 12:42 AM, Lester Caine wrote: > Jan Ehrhardt wrote: >>> >>> Could you try to add a function_exists check to >&g

Re: [PHP] Friday's Question

2013-09-20 Thread Daniel
25 network admin and programmer and yes I use a mouse pad - my mouse hates me if I dont use it. -- Regards, Daniel Fenn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Storing CCN's Again...

2005-02-07 Thread daniel
No the most secure way, but I had a client who was determined not to use paypal and store cc'sand do them offline. I am using SSL + Mysql encode to do this. Ie encode(cc_number,md5('secret')) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ability to use extract to $this vars in a class

2005-02-08 Thread daniel
is there any way to use extract , to extract the keys from an array to $this vars for within a class ? Let me know. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Storing CCN's Again...

2005-02-09 Thread daniel
> > Amazon store Credit Card Number in their databases. Are we saying that > someone could hack into their database server and steal the numbers? Or > have Amazon gone far enough to protect their data? > > -- I supose they use a similar tactic as i have, and have a two way encryption method. --

Re: [PHP] Student Suspended Over PHP use.

2005-02-09 Thread daniel
PHP is bad Mkay. > I just ran across this interesting article from awhile back. Pretty > funny > > http://bbspot.com/News/2000/6/php_suspend.html > > > Topeka, KS - High school sophomore Brett Tyson was suspended today > after teachers learned he ma

Re: [PHP] PHP Development IDE's/Editors

2005-02-09 Thread daniel
> Personally I use either emacs or kate. > Bah , phpeclipse.de It has its odd issues with file syncing with the sftp exporter and modification times but its rare. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] using $_SESSION inside of user functions

2004-04-11 Thread daniel
> //log function > //writes log files > > function WriteLog($LogType){ > switch($LogType: > case "login": > //use session vars here... > } > What is the question ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] using $_SESSION inside of user functions

2004-04-11 Thread daniel
> Andy B wrote: > >> //log function >> //writes log files >> >> function WriteLog($LogType){ >> switch($LogType: >> case "login": >> //use session vars here... >> } > > Yes. > yes in the latest, all request methods are in the super global scope, $_POST, $_GET, $_SERVER, $_SESSION and constants

[PHP] Making an app unviewable during system maintainance

2004-04-20 Thread daniel
Hi there I was wondering how people usually turn the app off during system maintainance. During the hours of 6-7 the database goes down for backing up, the users therefore keeping trying to get into the system, i get an error that the database is down when i know it should be down near that time. W

[PHP] objects in sessions again

2004-04-21 Thread daniel
Hi there, needing some more advise, is this function correct ? function create_object($class_name,$dir = null, $serialize = null) { $dir ? $dir = $dir."/" : $dir = ""; require_once("".CLASS_PATH.$dir.$class_name.".php");

Re: [PHP] Re: objects in sessions again

2004-04-21 Thread daniel
> > If your goal is to store certain objects in sessions and some not, then > this should be fine. Just be sure that you intend to have only one > instance of the objects you want to serialize, or hell can still break > loose :) > Yes thats fine, there is a DB and auth and template class i inst

Re: [PHP] OR

2004-04-25 Thread daniel
> if (cond || cond2) > > OR > > if (cond OR cond2) > > > What do you use, and why? > > -- || coz its easier to type ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Best way to get mysql table metadata

2004-05-06 Thread daniel
Hi there, I am trying to upgrade my db class, so I can tell if what table type of the table being queried is. More specifically i need to work out if the table is an innodb transaction table, if so I would like to start the transaction and commit and rollback when needed. Let me know. -- PHP Gen

Re: [PHP] Webyog releases SQLyog 3.71 & SJA 2.0

2004-06-09 Thread daniel
> WTF? > Who gives a rats ass about this? > > Nearly everyone on this list has php related commerical products but > nobody advertises it here or announces it when they make or update > their products unless its very closely related to php (and usually > free), your product does not fall in either

Re: [PHP] aspx

2004-06-14 Thread daniel
.NET dude, a little irrelevant to PHP, but a major competitor to J2EE, may i ask why and how did they copy java code and attempt to refine it ? > Anyone know what aspx is? A rogue version of asp? It's not Open Source > or PHP in disguise? > > -- > PHP General Mailing List (http://www.php.net/) >

Re: [PHP] PHP Web Applications

2007-06-27 Thread Daniel
It does?! I got it for something around $100 if I remember right. I don't remember you specifying that it had to be free either. On Jun 27, 2007, at 11:10 AM, Tijnema wrote: On 6/27/07, Dan <[EMAIL PROTECTED]> wrote: Check out Delphi for PHP by Borland, this does pretty much what you're

Re: [PHP] Re: help with mysql

2004-01-27 Thread daniel
My honest advice, dont use rpm's, you need to compile php via source if you want to do anything out of the ordinary like adding extensions, yes adding mysql is out of the ordinary for a standard rpm lol. Thats just my experience anyway. so ./configure --with-mysql=/usr/local/mysql or whereever you

[PHP] null value and isset

2004-01-27 Thread daniel
Hi there regarding out discussions before about using isset, i set function params which are false intitalially as null ie function foo ($bar = null) , anyway $bar remains true both ways if i do isset($bar), i didnt notice this assuming it was ok, now the scripts are buggered, it was originally lik

RE: [PHP] Cacheing data form PHP script

2004-01-28 Thread daniel
> $_SESSION sounds like a good way to go.. It just means that each user > will pull the data for the menu at least once. > > I've done something similar except it was a rather slow database query, > followed by a bunch of conditional data parsing. The end result wasn't > very much data (maybe a p

RE: [PHP] Cacheing data form PHP script

2004-01-28 Thread daniel
Unfortunately not even SQL_CACHE works in this scenario, with 5 or more generated menus, its a noticable difference in load time. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Cacheing data form PHP script

2004-01-28 Thread daniel
> It's not really that bad, maybe I just made it sound complicated and > annoying. > > (pseudo-php) > > If (dataexistsindb) { >$cachedata = SELECT cachedata from DB >$dataarr = unserialize(cachedata) > } else { >$dataarr = SELECT freshdata >$cachedata = serialize($dataarr) >INSE

RE: [PHP] Cacheing data form PHP script

2004-01-28 Thread daniel
I havent tested this yet, it seems it may be more harmful than good ? if ($cache_data) { $query = $db->query("SELECT cache_data FROM cache_menu_table WHERE table='foo'"); if ($db->results()) { $query = "SELECT cache_

RE: [PHP] Cacheing data form PHP script

2004-01-28 Thread daniel
The code works, and seems to run pretty fast, another question would storing in xml be a better option ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Cacheing data form PHP script

2004-01-28 Thread daniel
Here is my final layout, i still yet to test it on the production machine being a dual 2G xeon, has had major performance issues generated list menus onto the screen and load time. function asset_type_list2($tID=null,$tab_index = null,$cache_data = null,$disabled = null) { global $

RE: [PHP] Cacheing data form PHP script - Test results

2004-01-28 Thread daniel
Here are some test results using a microtime function i setup Using database 0.77256107330322 seconds Using cache 0.23316502571106 seconds My next problemo is, i have built a Date and Calender class to build the date and time pulldown's. Although it seems really slow, i have to tweak it someho

RE: [PHP] Class performance was Cacheing data form PHP script

2004-01-28 Thread daniel
Here is parts to the date class function month_selection($selected_month,$submit = null,$month_as_num = null, $auto_complete = null,$tab_index = null, $disabled = null) { if ($submit) $submit = "onChange=\"this.form.submit ();return false;\""; if ($auto_complete) $a

Re: [PHP] Re: Document generation from XML

2004-02-03 Thread daniel
> Hi Russell, > > If you're documenting PHP software, you might consider using > phpDocumentor. Your manual would be in DocBook, and phpDocumentor > would both transform to HTML/PDF/CHM, and link to the auto-parsed API > docs straight from the source. Kind of handy for people who'd rather > cod

[PHP] CVS style project system

2004-02-05 Thread daniel
Hi there, i have been asked to build a system for a project file space, where a list of users of different groups can start new projects for their group, add files for that project of the group and/or revise current files with different versions. It will be a cvs like system, but i dont think cvs w

Re: [PHP] CVS style project system

2004-02-05 Thread daniel
> I would search around and see if there is anything out there that does > what you want. CVS and repository systems are quite complex to write > and for performance you probably dont want to write the system in php. > > The first thing down that long road would be to gather all the > requirements

[PHP] Novell and PHP

2004-02-05 Thread daniel
Can someone explain what this all means then http://forge.novell.com/modules/xfmod/project/?php Are they supporting php or are they planning to take over something that is impossible ? We have novell systems at work, if this means easier intergration with php on unix with novell products like ld

Re: [PHP] Novell and PHP

2004-02-05 Thread daniel
> > This is a project that allows for PHP integration on Novell NetWare > systems. I dont particularly know what exact netware systems we have but would this mean i could create sessions in my projects that will sync up the windows login system with the databased one ? Like i could personlise a s

Re: [PHP] Novell and PHP

2004-02-05 Thread daniel
> > Not sure about that, i have only got the windows to login by using php > ldap functions and active directory. Yeh thats what i meant how is this possible ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] boolean search class

2004-02-05 Thread daniel
Mysql 4 MATCH AGAINST > Hi, all -- > > I'm implementing a search and would like to move beyond accepting > > this that other > > for simple any-word searching to a real boolean search. Has anyone > seen any good classes or even functions for such? [No, the source > contents are not in a database

Re: [PHP] boolean search class

2004-02-05 Thread daniel
> > I have used lucene (Jakarta-Apache) for doing searchs that is > outstanding. > What does it use ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] boolean search class

2004-02-05 Thread daniel
> On Thu, 2004-02-05 at 21:09, [EMAIL PROTECTED] wrote: >> > >> > I have used lucene (Jakarta-Apache) for doing searchs that is >> > outstanding. >> > >> What does it use ? > > > Lucene is actually a Jakarta-Apache (java) project. I have used it to > implement site searches, search keyword highlig

Re: [PHP] boolean search class

2004-02-05 Thread daniel
databased php scripts ? > > Lucene works with files itself. If your data is in a database then i > would use the database to handle it for me...mysql offers full-text > search and postgresql offers full-text with some modifications. > > However, if you dont have a database, i would recommend using

[PHP] checking users have the latest version of a file

2004-02-18 Thread daniel
Hi there i am developing a collaboration filespace, i was wondering if there is any way either using diff or filesize to check if users have the latest version of a file before uploading their copy ? Let me know thankyou. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

RE: [PHP] checking users have the latest version of a file

2004-02-18 Thread daniel
I dont understand what you are doing with the md5, and i assume YOU will know which file is the latest version. this is what i have to try and find out to prevent that. > [EMAIL PROTECTED] >on Wednesday, February 18, 2004 3:42 PM said: > >> Hi there i am developing

RE: [PHP] checking users have the latest version of a file

2004-02-18 Thread daniel
> I dont understand what you are doing with the md5, and > > i assume YOU will know which file is the latest version. > > this is what i have to try and find out to prevent that. > >> [EMAIL PROTECTED] >>on Wednesday, February 18, 2004 3:42 PM said: What i'm gonna a

<    1   2   3   4   5   6   7   8   9   10   >