[PHP] batteling with mod_fcgi in virtualmin virtual host
Hi I'm running php-cgi (PHP 5.3.2) and mod_fcgid (2.3.4-2.fc12) in SuExec Apache (2.2.13). I'm experiencing the following Typical errors [Wed May 26 03:59:57 2010] [warn] [client 60.234.169.177] mod_fcgid: stderr: PHP Deprecated: Function eregi_replace() is deprecated in /home/linuxpro/public_html/vtigercrm/modules/Webmails/functions.php on line 248, referer: http://www.linuxpro.co.nz/vtigercrm/index.php?module=Webmails&action=index&parenttab=My%20Home%20Page and [Wed May 26 03:59:57 2010] [warn] [client 60.234.169.177] mod_fcgid: stderr: PHP Fatal error: Multiple access type modifiers are not allowed in /home/linuxpro/public_html/vtigercrm/modules/FieldFormulas/expression_engine/VTExpressionEngine.inc on line 160, referer: http://www.linuxpro.co.nz/vtigercrm/index.php?module=Webmails&action=index&parenttab=My%20Home%20Page and Wed May 26 03:57:54 2010] [warn] [client 60.234.169.177] mod_fcgid: stderr: PHP Notice: Undefined index: file in /home/linuxpro/public_html/vtigercrm/include/utils/utils.php on line 1000, referer: http://www.linuxpro.co.nz/vtigercrm/index.php?action=index&module=Home apart from changing logging levels how should I resolve these issues. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php compile / configure options
Hi I'm setting up a development environment that runs multiple versions of php. I'm looking a list of the compile option options for each php release other than "./configure --help" with more detail on what each option does. Any suggestions welcome . Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php 5 and ms sql server express won't play nice !
with the suggested config i get the following Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: (local)\SQLEXPRESS in C:\wamp\www\test\test.php on line 8 Couldn't connect to SQL Server on (local)\SQLEXPRESS this is my connection script wrote: > SQL Server Express defaults to installing as a named instance - > assuming that you're running Apache/PHP on the same machine as SQL > Server Express, I believe you'll want to use "(local)\SQLEXPRESS" as > the host to connect to. If it's on a different machine, you'll want to > use "MACHINENAME\SQLEXPRESS" (replace "MACHINENAME" with the actual > name of the computer SQL Express is running on). > > DISCLAIMER: I haven't actually tried using SQL Server with PHP, so I > can't guarantee this will work. However, I have spent a lot of time > working with SQL Server and ASP in a previous life, so I'd like to > think that I have half a clue when it comes to connecting to it. :-) > > Hope this helps. > > Kirk > > On 8/16/07, Gregory Machin <[EMAIL PROTECTED]> wrote: > > Hi > > I have tried most of the configuration options in the php manual / > > examples http://www.php.net/function.mssql-connect and I just can't > > get it to connect > > I'm running WAMP5 and have enables php_mssql.dll extentions etc .. > > sql server 2005 express has both named pipes and tcp/ip conections enabled, > > both are installed on the same machine (xp pro)... > > > > this it the error I keep getting > > Warning: mssql_connect() [function.mssql-connect]: Unable to connect > > to server: SQLEXPRESS in C:\wamp\www\test\test.php on line 8 > > Couldn't connect to SQL Server on SQLEXPRESS > > > > Many Thanks in advance > > -- > > Gregory Machin > > [EMAIL PROTECTED] > > www.linuxpro.co.za > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > _ > Kirk Friggstad, Daft Viking Consulting > email / msn / gtalk: [EMAIL PROTECTED] > aim / skype: daftviking > mobile / SMS: 306-867-0010 > -- Gregory Machin [EMAIL PROTECTED] www.linuxpro.co.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php 5 and ms sql server express won't play nice !
Hi I have tried most of the configuration options in the php manual / examples http://www.php.net/function.mssql-connect and I just can't get it to connect I'm running WAMP5 and have enables php_mssql.dll extentions etc .. sql server 2005 express has both named pipes and tcp/ip conections enabled, both are installed on the same machine (xp pro)... this it the error I keep getting Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: SQLEXPRESS in C:\wamp\www\test\test.php on line 8 Couldn't connect to SQL Server on SQLEXPRESS Many Thanks in advance -- Gregory Machin [EMAIL PROTECTED] www.linuxpro.co.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] cant get if logic correct..
Hi i have a piece of code that gets info from a comma delimited file, then gets each value that is to be insterted into the database The variabls must only contain numbers and must not be null .. but the logic i have is iether not working or there are some hidden characters creeping in because it is processing the data ... how can i do this better ? for($i=2;$i<$arrsize;$i++){ $parts=explode(",",$lines[$i]); $stnr=$parts[0]; $subj=$parts[1]; $mark=$parts[4]; if (($stnr>"") and ($subj>"") and ($mark>"")){ //do alot of something lol } } -- Gregory Machin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] advise on data encryption security.
Hi Can anyone point me in the direction of some good docs / howto's on building php apps that have fully encrypted databases etc .. Many thanks -- Gregory Machin [EMAIL PROTECTED] www.linuxpro.co.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] looking for the developer of webcbq
Hi I'm looking for the developer of webcbq, I'm trying to get it to work on fc5_64 but I have hit a wall there are some errors I can't see why the variables are being populated ... and I think is was writtn in php 3 because I have had to change alot on the syntax of the code to get it half way working ... here are the errors *Notice*: Undefined variable: nuevoPadre in * /var/www/html/webcbq/parents.php* on line *38* *Notice*: Undefined variable: borrarRegla in * /var/www/html/webcbq/parents.php* on line *53* *Notice*: Undefined variable: modificarRegla in * /var/www/html/webcbq/parents.php* on line *67* *Notice*: Undefined variable: cambiarNombre in * /var/www/html/webcbq/parents.php* on line *76* *Notice*: Undefined variable: nuevaRegla in * /var/www/html/webcbq/children.php* on line *38* *Notice*: Undefined variable: borrarRegla in * /var/www/html/webcbq/children.php* on line *51* *Notice*: Undefined variable: modificarRegla in * /var/www/html/webcbq/children.php* on line *63* *Notice*: Undefined variable: cambiarNombre in * /var/www/html/webcbq/children.php* on line *72* Many thanks -- Gregory Machin [EMAIL PROTECTED] www.linuxpro.co.za
Re: [PHP] Problem with IE and not displaying the correct images...
Problem found ... IE doesn't understand comments '//' in style sheets .. so the line I had commented out refering to the background image in the style sheet was over riding my code later in the page.. On 3/29/06, Jochem Maas <[EMAIL PROTECTED]> wrote: > > Gregory Machin wrote: > > Hi > > I have a site that changes the backround pic after login both have > different > > names.. > > it work perfect in firefox and epiphany , but not IE , it loads the > login > > page with the > > backround that's only suposed to be displayed after login .. > > If I download the 2 picks manual they both work fine ... > > Both pics have different name .. > > I'm lost any ideas .. > > use 2 stylesheets. and switch between them? > > (doesn't sound much like a php question btw ;-) > > > > > > Thanks for your time.. > > > > -- > > Gregory Machin > > [EMAIL PROTECTED] > > [EMAIL PROTECTED] > > www.linuxpro.co.za > > www.exponent.co.za > > Web Hosting Solutions > > Scalable Linux Solutions > > www.iberry.info (support and admin) > > > > +27 72 524 8096 > > -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) +27 72 524 8096
Re: [PHP] test security of code
Thanks looks good will read on further . On 3/9/06, Chris <[EMAIL PROTECTED]> wrote: > > Gregory Machin wrote: > > Hi > > Is there an application that can pass source code and report potential > > security problem and or the live site ? > > Many thanks > > -- > > Gregory Machin > > [EMAIL PROTECTED] > > [EMAIL PROTECTED] > > www.linuxpro.co.za > > www.exponent.co.za > > Web Hosting Solutions > > Scalable Linux Solutions > > www.iberry.info (support and admin) > > > > +27 72 524 8096 > > Just found this: > > http://caffeinatedsecurity.com/blog/archives/2006/03/08/web-application-security-testing-tools/ > > > -- > Postgresql & php tutorials > http://www.designmagick.com/ > -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) +27 72 524 8096
[PHP] test security of code
Hi Is there an application that can pass source code and report potential security problem and or the live site ? Many thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) +27 72 524 8096
Re: [PHP] writing multidimensional arrays to file ?
Thanks for you input. I will lookinto alt the sugetions. Many thanks/. Have a grate day . On 1/30/06, Jochem Maas <[EMAIL PROTECTED]> wrote: > > Gregory Machin wrote: > > Hi > > I'm looking for a good example of writing multidimensional arrays, and > > reading them back . > > serialize() and alternatively if you find it handy to be able to > manually read the contents of the array written to the file there is also > var_export() which can return valid php code in a readable form. > > > > > Thanks for you time . > > > > -- > > Gregory Machin > > [EMAIL PROTECTED] > > [EMAIL PROTECTED] > > www.linuxpro.co.za > > www.exponent.co.za > > Web Hosting Solutions > > Scalable Linux Solutions > > www.iberry.info (support and admin) > > > > +27 72 524 8096 > > -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) +27 72 524 8096
[PHP] writing multidimensional arrays to file ?
Hi I'm looking for a good example of writing multidimensional arrays, and reading them back . Thanks for you time . -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) +27 72 524 8096
[PHP] php and consol interface
Hi I'm developing a web interface for server admin in php, but the bos has added a complication, he wants ssh / telnet colson for as well, is i posible to create a consol app in php ? My original idea was to have a couple of files that the web interface would you to stor the settings and generate the configs, but now i have to rethink my planning because of the consol interface. Would you have any sugestions on how to keep consistancy between the 2 interfaces configurations ie. if the config is changed at the consol it should be reflected on the web interfact.. Thanks for you time -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) +27 72 524 8096
[PHP] hiding the index.php page.
Hi I would like to know how i would hide my index page so that it is not shown at the end of the url like how gmail does it and many cms do it .. And what is it called when one does this .. Thank you -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) +27 72 524 8096
Re: [PHP] php + mysql - timstamp - calculate hours remaining
Many Thanks for the help. OP 2 worked a treat.. now i need to run it at midnight, I was going to write a php script and call it vai crontab, but how could I iplament this a triger and stored procedure ? On 1/10/06, M. Sokolewicz <[EMAIL PROTECTED]> wrote: > > David Grant wrote: > > Gregory, > > > > David Grant wrote: > > > >>Gregory Machin wrote: > >> > >>>I have a table with a timestamp column and would like to use his to > >>>calculate the age of the record . how would i go about this... > >>>I would also like to exicute a mysql stament that pasess the tables and > >>>removes fields older than say 72 hours. how would i go about this . ? > >> > >>A timestamp is the time in seconds (since Jan 1 1970), so you can > >>ascertain the age in seconds by subtracting the stored timestamp from > >>the current timestamp. > >> > >>You can find the current timestamp in MySQL using the > >>CURRENT_TIMESTAMP() function. > >> > >>Once you have the age of the record, finding 72 hours is fairly trivial > >>- 72 hours is 259200 seconds (72hrs * 60mins * 60secs). > >> > >>Therefore your query will be: > >> > >>DELETE FROM WHERE CURRENT_TIMESTAMP() - > 259200 > > > > > > Following Albert's reply, the query ought to read: > > > > DELETE FROM WHERE CURRENT_TIMESTAMP() - UNIX_TIMESTAMP( > > > 259200 > > > > David > David, your solution is correct (though you made a typo; it should read: > "DELETE FROM WHERE CURRENT_TIMESTAMP() - UNIX_TIMESTAMP() > > 259200"), though slow because mysql needs to calculate a timestamp, > based on all the times/dates stored. Now, all these methods depend on > how the OP stored the dates in his database. In general, there are 2 > ways which are used most often: > 1 - As a UNIX timestamp (as per Albert's example), or > 2 - As a MySQL-timestamp (as per ISO 8601; -MM-DD) > > If the OP uses #1 to store the date, the easiest way is to do a > modification of David's solution, and do: > "DELETE FROM WHERE < UNIX_TIMESTAMP(NOW())-259200", this > is a quick solution, because all MySQL now needs to do is compare an > integer to an integer for each row (which is pretty fast). > If the OP uses #2, then it's easier to use MySQL's built-in functions > for date-comparison. It's actually faster than converting the dates to > UNIX timestamps and comparing them as per #1, so let's do that. To > achieve this, you can use mysql's own date functions: > "DELETE FROM WHERE < NOW()- INTERVAL 72 HOUR" > > hope this short discussion helped, > - tul > -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) +27 72 524 8096
Re: [PHP] understanding session vars ?
My test code is for test.php which is intended to call it's self, and starts with sesstion_start(). buy does not disply x after link2 is clicked on, but only y.. what am I missing ? Thanks On 11/24/05, David Grant <[EMAIL PROTECTED]> wrote: > > Gregory, > > Values in the $_SESSION superglobal will persist over pages so long as > session_start() is called on each page. > > Cheers, > > David Grant > > Gregory Machin wrote: > > I have a test script.. > > What i'm trying to achieve is once the user has clicked on link1 the > > value of item must equal x and if the user clicks on link2 the value of > > items must stay equal to x while setting action equal to y .. > > > > > session_start(); > > echo 'Welcome to testpg'; > > $_SESSION['time']= time(); > > > > > > if (isset($_GET['item'])){ > >$_SESSION['item'] = $_GET['item']; > > echo $_SESSION['item']; > >} > > > > if (isset($_GET['action'])){ > >$_SESSION['action'] = $_GET['action']; > >echo $_SESSION['action']; > > } > > > > > > ?> > > link1 > > link2 > > > > thanks > > > > On 11/24/05, * David Grant* <[EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]>> wrote: > > > > Gregory, > > > > Are you always setting $_SESSION['menu'] to the contents of > > $_GET['menu']? If so, the second link will set $_SESSION['menu'] to > > null. You need to check the contents of $_GET['menu'] first before > > setting, i.e. > > > > if (isset($_GET['menu'])) > > $_SESSION['menu'] = $_GET['menu']; > > > > Cheers, > > > > David Grant > > > > Gregory Machin wrote: > > > Hi > > > I'm a bit stuck on session var, and thier implamentation, or my > > perseption > > > thier of. > > > I have a page and need certian vars to be persistat each time the > > page is > > > called. > > > This is done to detmin the content of the page through logic that > > calls > > > different includes. > > > > > > But I cant get the vars to be persistant. > > > note the page call it's self. > > > > > > ./index.php > > > > > session_start(); > > > $_SESSION['menu'] > > > > > > ?> > > > option 1 // this works > > > differnt action // > > this brakes > > > it . when the user links here the 'menu' var is cleared > > > > > echo $_SESSION['menu']; > > > > > > ?> > > > > > > I would like the menu var (and others) to be persistant until it > > is reset or > > > updated. how do I acheave this . > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > -- > > > Gregory Machin > > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > > www.linuxpro.co.za <http://www.linuxpro.co.za> > > > www.exponent.co.za <http://www.exponent.co.za> > > > Web Hosting Solutions > > > Scalable Linux Solutions > > > www.iberry.info <http://www.iberry.info> (support and admin) > > > > > > +27 72 524 8096 > > > > > > > > > > -- > > Gregory Machin > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > www.linuxpro.co.za <http://www.linuxpro.co.za> > > www.exponent.co.za <http://www.exponent.co.za> > > Web Hosting Solutions > > Scalable Linux Solutions > > www.iberry.info <http://www.iberry.info> (support and admin) > > > > +27 72 524 8096 > > -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) +27 72 524 8096
Re: [PHP] understanding session vars ?
I have a test script.. What i'm trying to achieve is once the user has clicked on link1 the value of item must equal x and if the user clicks on link2 the value of items must stay equal to x while setting action equal to y .. link1 link2 thanks On 11/24/05, David Grant <[EMAIL PROTECTED]> wrote: > > Gregory, > > Are you always setting $_SESSION['menu'] to the contents of > $_GET['menu']? If so, the second link will set $_SESSION['menu'] to > null. You need to check the contents of $_GET['menu'] first before > setting, i.e. > > if (isset($_GET['menu'])) > $_SESSION['menu'] = $_GET['menu']; > > Cheers, > > David Grant > > Gregory Machin wrote: > > Hi > > I'm a bit stuck on session var, and thier implamentation, or my > perseption > > thier of. > > I have a page and need certian vars to be persistat each time the page > is > > called. > > This is done to detmin the content of the page through logic that calls > > different includes. > > > > But I cant get the vars to be persistant. > > note the page call it's self. > > > > ./index.php > > > session_start(); > > $_SESSION['menu'] > > > > ?> > > option 1 // this works > > differnt action // this > brakes > > it . when the user links here the 'menu' var is cleared > > > echo $_SESSION['menu']; > > > > ?> > > > > I would like the menu var (and others) to be persistant until it is > reset or > > updated. how do I acheave this . > > > > Thanks > > > > > > > > > > > > > > -- > > Gregory Machin > > [EMAIL PROTECTED] > > [EMAIL PROTECTED] > > www.linuxpro.co.za > > www.exponent.co.za > > Web Hosting Solutions > > Scalable Linux Solutions > > www.iberry.info (support and admin) > > > > +27 72 524 8096 > > -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) +27 72 524 8096
Re: [PHP] cms type session - how to ?
Sorry for the lack of clarity on the single page... eg : http://127.0.0.1/index.php? where the index.php holds the logic of what is displayed and by passing vars back to it's self determins what is next displayed .. hope that helps.. On 11/22/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > > On Tue, November 22, 2005 3:24 am, Gregory Machin wrote: > > I'm looking for a how to , on creating sessions similar to those used > > my > > cms's > > that ref only a single page.. > > http://php.net/session_start > > ??? > > I don't understand what you mean by "that ref only a single page" and > suspect not many others understand that either. > > -- > Like Music? > http://l-i-e.com/artists.htm > > > -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) +27 72 524 8096
[PHP] I fixed the logic :-) --- Recursive Array on outputing correctly
Here it is.. i found the problem.. 1) all the menu objects->arrChildren have an array , if there are on submenus.. then the array is empty .. the function was trying to recurse through empty arrays. 2) the recursive call needed to pass the arrChildren to recurse correctly "display_menu($value->arrChildren);" now just to get the html output and css to live together :-)... Thanks All form the support, all bets greg.. intID = $intID; $this->names = $text; $this->addChildren( ); } function addChildren ( ) { $strSQL = "select id, name from newCMS_section where Parent = ". $this->intID .""; $rseResult = mysql_query($strSQL); while ( $arrRecord = mysql_fetch_array( $rseResult, MYSQL_BOTH ) ) { $this->arrChildren[] = new MenuItem( trim( $arrRecord[0] ), trim($arrRecord[1]) ); } } } $Menu =& new MenuItem(0,''); $txt = $Menu->arrChildren; function display_menu($array) { $link =''; $namez =''; foreach ($array as $key => $value) { if(empty($value->arrChildren)){ //arrChildren =>Array // problem was with the above if statment. $namez = $value->names; $link = $value->names; echo "{$namez}\n"; } else { $namez = $value->names; echo "{$namez}"; display_menu($value->arrChildren); echo ''; } // end of else } // end of foreach loop } // end of function //echo ""; echo ""; display_menu($txt); ?> -- Many Thanks Gregory Machin (flamer) 072 524 8096 www.linuxpro.co.za [EMAIL PROTECTED] Agent for iberry.info hosting solutions -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Trying to figure out contents stored in db field
thanks will try it .. On 8/14/05, Scott Noyes <[EMAIL PROTECTED]> wrote: > Unserialize it, and then use var_dump() to see what the object contains: > var_dump(unserialize($location_data)); > > On 8/14/05, Gregory Machin <[EMAIL PROTECTED]> wrote: > > Hi > > The cms exponent story some data in a serialized array .. > > then column name id location_data and contains the following.. > > > > O:8:"stdClass":3:{s:3:"mod";s:10:"textmodule";s:3:"src";s:20:"@random419404caefcef";s:3:"int";s:0:"";} > > > > i fugure there is an object stored in this serialized array. how do i > > figure out the properties of the object, I cant find the file that > > holds classe that it uese .. > > > > Any ideas ? > > > > Many Thanks > > > > > > -- > > Gregory Machin > > [EMAIL PROTECTED] > > [EMAIL PROTECTED] > > www.linuxpro.co.za > > Web Hosting Solutions > > Scalable Linux Solutions > > www.iberry.info (support and admin) > > www.goeducation (support and admin) > > +27 72 524 8096 > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) www.goeducation (support and admin) +27 72 524 8096 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Trying to figure out contents stored in db field
Hi The cms exponent story some data in a serialized array .. then column name id location_data and contains the following.. O:8:"stdClass":3:{s:3:"mod";s:10:"textmodule";s:3:"src";s:20:"@random419404caefcef";s:3:"int";s:0:"";} i fugure there is an object stored in this serialized array. how do i figure out the properties of the object, I cant find the file that holds classe that it uese .. Any ideas ? Many Thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) www.goeducation (support and admin) +27 72 524 8096 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Creaing a foldout menu from an array.
Hi Please advise. I need to create menu that has the following html Home About History Team Offices Services Web Design Internet Marketing Hosting Domain Names Broadband Contact Us United Kingdom France USA Australia The menu is structured with an array where each field holds an ID a PerantID the name and the link . the PeratID refers to the ID of the item in the array wich it is attached to.. My problem is I cant figure out the correct loop / logic to put the tags in the rite places etc.. Many thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) www.goeducation (support and admin) +27 72 524 8096 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] diplaying code in pages and forums ??
Let the flaw wares begin .. sorry guys who have limited bandwith and limited email boxes .. Bla Bla BLA.. On 8/5/05, John Nichel <[EMAIL PROTECTED]> wrote: > Gregory Machin wrote: > > For anyone who would like a clear answer to the question i politely > > asked, here is a good artical .. > > A husband will more than likely be pissed at me if I ask him to have his > wife sleep with me...no matter how polite I ask. > > Politely asked or not, your question demonstrated that you broke one of > the major 'rules' of a mailing list such as this...RTMF/STFW/STFA. > > -- > John C. Nichel > ÜberGeek > KegWorks.com > 716.856.9675 > [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) www.goeducation (support and admin) +27 72 524 8096 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] diplaying code in pages and forums ??
For anyone who would like a clear answer to the question i politely asked, here is a good artical .. http://www.sitepoint.com/article/highlight-source-code-php Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) www.goeducation (support and admin) +27 72 524 8096 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] diplaying code in pages and forums ??
HI Please advise. I'm using exponent cms and I creating a technical site, I want to display code examples , how do I do this and with syntax highlighting, -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) www.goeducation (support and admin) +27 72 524 8096 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] logging in using ssl
Hi Please advise . I have a site that needs to move over to ssl only when the user login authenticates the log in .. How would i go about this, the cms is exponent writen in php.. Many Thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) www.goeducation (support and admin) +27 72 524 8096 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php array and java fold out menu
Hi . Please could you advise. I'm insearch of a java fold out menu that looks good, and can acept an array containg the links and link names etc from a php array ... i havent worked in java script yet so please help :-)... Many thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) www.goeducation (support and admin) +27 72 524 8096 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php mysql field update not looping properly ..
Hi please could you advise.. I'm trying to prase a column in a table, to grep each field's contens, one contains a web page, and there are about 1000 pages in the column, thus they have to be one at a time so as not to over load the server /php .. the script below , gets an array of the table id's then using this array gets the total number of fields from the array. Thus geting the field to be grep'ed them grep'ing it then writing it back then moving on to the next field. this is the out put from the echo's with the full code below. Many Thanks in advance. SELECT idtemp FROM temp;0 query 2 SELECT file_content FROM temp WHERE idtemp = '1' Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /var/www/html/update_filecontent.php on line 36 query 3 UPDATE temp SET file_content = 'hello' WHERE idtemp = '1'; 1 Notice: Undefined offset: 1 in /var/www/html/update_filecontent.php on line 24 query 2 SELECT file_content FROM temp WHERE idtemp = '' Notice: Undefined offset: 1 in /var/www/html/update_filecontent.php on line 40 query 3 UPDATE temp SET file_content = 'hello' WHERE idtemp = ''; 2 Notice: Undefined offset: 2 in /var/www/html/update_filecontent.php on line 24 query 2 SELECT file_content FROM temp WHERE idtemp = '' Notice: Undefined offset: 2 in /var/www/html/update_filecontent.php on line 40 query 3 UPDATE temp SET file_content = 'hello' WHERE idtemp = ''; 3 '; //regex used to carry out the replace $replace = ' '; // code to be inserted stepper($regy, $replace, $index, $table, $column); function stepper ($regy, $replace, $index, $table, $column ) { // used to parse $column... and carry out the updates $query = "SELECT ". $index ." FROM ".$table.";"; // get an array holding $index the column id. echo $query; $result = mysql_query($query) or die( mysql_error()); $i = 0; $index_Array = mysql_fetch_array($result); // push the 'id' array into an array varray variable While ($i < mysql_num_rows($result)) { // get number of rows, and assocated row id array echo $i.""; $query2 = "SELECT ". $column ." FROM ". $table ." WHERE ".$index." = '". $index_Array[$i] ."'"; // query2 selects the field in the column containing the required strings //to be grep'ed and up dated echo "query 2 ".$query2 . ""; //echo $query2.""; //for testing $result2 = mysql_query($query2) or die( mysql_error()); $query_row = mysql_fetch_row($result2); $regex_input = $query_row; //echo $regex_input; //for testing $regex_ouput = preg_replace($regy, $replace, $regex_input); $sql_input = mysql_real_escape_string($regex_ouput); //echo $sql_input; //echo $regex_ouput; //for testing' $query3 = "UPDATE ".$table." SET " . $column . " = 'hello' WHERE ".$index." = '". $index_Array[$i]."';"; echo "query 3 " .$query3.""; //$result3 = mysql_query($query3) or die( mysql_error()); $i++; } } mysql_close($link) ?> -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) www.goeducation (support and admin) +27 72 524 8096 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] emailing files...
Hi I would like to email some log files as attachments, all the examples use an html page with a file input box, how can i do it without the file input box. Many Thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions +27 72 524 8096 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php