Re: [PHP] open source content management systems?

2003-07-28 Thread Davy Obdam
Hi Redmond, Take a look at http://www.opensourcecms.com/ On this site you can see opensource content management systems written in php in action. I found it to be very usefull. Best regards, Davy Obdam [EMAIL PROTECTED] wrote: hi all does anyone have any recommendations for good open source

Re: [PHP] open source content management systems?

2003-07-28 Thread Angelo Zanetti
Hi dunno if this will help but freevcs might be an option. www.freevcs.de - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 29, 2003 2:39 AM Subject: [PHP] open source content management systems? > hi all > > does anyone have any recommendation

RE: [PHP] DHCP web interface. New version.

2003-07-28 Thread Chris W. Parker
Daevid Vincent on Monday, July 28, 2003 9:41 PM said: > Heya. I've just put up a new version of the DHCP web front end if > anyone is using it or has a need for this type of thing. New version? I din't even know you HAD a version. So for us people that have never h

[PHP] DHCP web interface. New version.

2003-07-28 Thread Daevid Vincent
Heya. I've just put up a new version of the DHCP web front end if anyone is using it or has a need for this type of thing. Major feature of this version: * a bug where if the arp table showed an "(incomplete)", I ignored the entry since the MAC is the hash key, many machines wouldn't show up as

Re: [PHP] Parsing MySQL query return

2003-07-28 Thread Jason Wong
On Tuesday 29 July 2003 04:16, John wrote: > I'm using someone elses data here (inheriting). But it looks like it was > typed into the field, possibly using PHPMyADMIN. I would assume the > paragraphs are just seperated by carriage returns. Is there a way to tell > for sure? Yes, examine the conte

Re: [PHP] problem: creating global alias inside function

2003-07-28 Thread Tom Rogers
Hi, Tuesday, July 29, 2003, 12:32:33 AM, you wrote: MP> The following code illustrates a problem I've got with references (running MP> on PHP 4.3.2). Can anyone explain it for me? Thanks in advance for any MP> assistance! MP> Martin MP> $globalvariable = 0; MP> $one = 1; MP> //want to set up

RE: [PHP] $_GET['sort'] & argument separator

2003-07-28 Thread Ow Mun Heng
It worked!!! Thanks VERY much. Now if someone could explain to me the difference between urlencode and rawurlencode. In the manual, it states that both are similar (but not the same), urlencode will encode spaces into '+' wherelse rawurlencode does not. Hence, in my below purposes, which s

Re: [PHP] Unable to configure PHP5 on Linux

2003-07-28 Thread Jonathan Villa
Thanks! That was it... On Mon, 2003-07-28 at 21:41, Evan Nemerson wrote: > Ya- you have to have libxml2-devel installed. Possibly > http://rpmfind.net/linux/RPM/rufus/libxml/libxml2-devel-2.5.1-1.i386.html > but check your distro cd first. Or you could rpm -e libxml2-2.5.1-1, get a > tarball, an

Re: [PHP] problem: creating global alias inside function

2003-07-28 Thread Tom Rogers
Hi, Tuesday, July 29, 2003, 12:32:33 AM, you wrote: MP> The following code illustrates a problem I've got with references (running MP> on PHP 4.3.2). Can anyone explain it for me? Thanks in advance for any MP> assistance! MP> Martin MP> $globalvariable = 0; MP> $one = 1; MP> //want to set up

Re: [PHP] Unable to configure PHP5 on Linux

2003-07-28 Thread Evan Nemerson
Ya- you have to have libxml2-devel installed. Possibly http://rpmfind.net/linux/RPM/rufus/libxml/libxml2-devel-2.5.1-1.i386.html but check your distro cd first. Or you could rpm -e libxml2-2.5.1-1, get a tarball, and compile it yourself On Monday 28 July 2003 07:13 pm, Jonathan Villa wrote: >

Re[2]: [PHP] Get Local IP Address

2003-07-28 Thread Tom Rogers
Hi, Tuesday, July 29, 2003, 3:11:43 AM, you wrote: CZ> * Thus wrote Tom Rogers ([EMAIL PROTECTED]): >> Hi, >> >> Monday, July 28, 2003, 4:29:46 PM, you wrote: >> >>Try this: >> >>> >>exec('ipconfig',$catch); >> >>foreach($catch as $line){ >> >>if(eregi('IP Address',$line)){ >> >>

[PHP] looking for some kind of CMS breakthough (slightly OT)

2003-07-28 Thread Justin French
Hi all, I've been writing CMS's for years now, and at the moment, I find myself looking for some breakthrough, or at the very least, a change in the way I do things. Anyone can write a CMS to manage simple articles with a data structure like: id author date_written heading body keywords descr

Re: [PHP] The session finishes unexpectedly

2003-07-28 Thread Tomás Liendo
For pasign the session variables I'm using the $_SESSION array. I am not sure if this responds your question.. Tom. "Curt Zirzow" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > * Thus wrote Tomás Liendo ([EMAIL PROTECTED]): > > Hi people, I made a system in PHP wich uses sess

[PHP] Unable to configure PHP5 on Linux

2003-07-28 Thread Jonathan Villa
My current setup is httpd 2.0.47 on a Red Hat 8. When I try to configure php I do ./configure --with-apxs2=/etc/httpd/bin/apxs --disable-cgi it runs for a while until I get configure: error: libxml2 version 2.5.1 or greater required. but yet, when I do an rpm search for libxml2 rpm -q libxml2

[PHP] Re: How is this possible?

2003-07-28 Thread Simon Fredriksson
Just solved your problem and made a better solution for my previous answer. The code is available at http://mirror27.sytes.net/~webhost/ //Simon Ryan A wrote: Hi, I am trying to get my data into a very similar layout as this: http://hostfilter.com/ComparePlan.asp?IntVal1=389&IntVal2=546&IntVal3=

[PHP] Re: How is this possible?

2003-07-28 Thread Simon Fredriksson
Ryan A wrote: Hi, I am trying to get my data into a very similar layout as this: http://hostfilter.com/ComparePlan.asp?IntVal1=389&IntVal2=546&IntVal3=605 see the table with the plans...how is he getting that in one table? what kind of logic is that? the best I can do is for each column I have to u

Re: [PHP] Script Execution Time

2003-07-28 Thread Jeff Harris
On Jul 29, 2003, "Petya A Shushpanov" claimed that: |stop(); |echo round($timer->elapsed(),5); |?> | |-- |Petya A Shushpanov | Or, you could use http://pear.php.net/package-info.php?package=Benchmark -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg

[PHP] open source content management systems?

2003-07-28 Thread r-militante
hi all does anyone have any recommendations for good open source content management systems for websites? - preferably, written in php... i have about a 5 page site running on a freebsd/apache server. it gets a fair number of hits a day. right now, the great majority of my pages are statical

[PHP] curl question

2003-07-28 Thread Dale Hersh
I am using authorize.net and I need to get this curl function working on a win 2k server platform in order to process credit card transactions through php. I have read through the manual and I am still failing to integrate php with curl. I was wondering if anyone could provide help or step by step

Re: [PHP] Script Execution Time

2003-07-28 Thread Petya A Shushpanov
Tnx. I`ve it fixed jet. - Original Message - From: "Chris W. Parker" <[EMAIL PROTECTED]> To: "Petya A Shushpanov" <[EMAIL PROTECTED]>; "Radek Zajkowski" <[EMAIL PROTECTED]>; "PHP GENERAL" <[EMAIL PROTECTED]> Sent: Tuesday, July 29, 2003 3:50 AM Subject: RE: [PHP] Script Execution Time P

RE: [PHP] Script Execution Time

2003-07-28 Thread Chris W. Parker
Petya A Shushpanov on Monday, July 28, 2003 3:41 PM said: > class jTimer { [snip] > } > $timer = new jTimer; > $timer->start(); > > #your code here > > $timer->stop(); > echo round($timer->elapsed(),5); You could one up this class by creating another method

Re: [PHP] Store array as Session Variable

2003-07-28 Thread Rob Adams
"Pushpinder Singh Garcha" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > $details is empty !! > I'd check your sql query and see if any rows are being returned. Also, put the initializing of the array ($company_name = array()) outside of your loop, just in case. I used to think t

Re: [PHP] Script Execution Time

2003-07-28 Thread Petya A Shushpanov
start = microtime(); } function stop() { $this->stop= microtime(); } function elapsed() { if ($this->elapsed) { return $this->elapsed; } else { $start_u = substr($this->start,0,10); $start_s = substr($this->start,11,10); $stop_u = substr($this->

Re: [PHP] Parsing MySQL query return

2003-07-28 Thread Nicholas Robinson
It occurred to me after my first reply that you might be able to do something in mysql. This works (given my earlier assumptions): select left( paras, if ( locate( '\n', paras ) = 0, length( paras ), locate( '\n', paras ))) ... It will work with \n\n as well. N On Monday 28 Jul 2003 7:57 pm,

Re: [PHP] Parsing MySQL query return

2003-07-28 Thread Nicholas Robinson
If you assume either \n or \n\n as the para delimiters then you could use strpos (see function.strpos.html) to work out where to split the text. If the text field contents are huge, you might consider limiting the query results by using left( field, size ) in the query. KR N On Monday 28 Jul

[PHP] Re: ming problems

2003-07-28 Thread Comex
<[EMAIL PROTECTED]> Comex: > turns the square around fully, and then moves it 15 degrees and then > back. Whoops, I know the solution to that problem. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ming problems

2003-07-28 Thread Comex
This is probably the wrong list, but: 1. The ming extension won't work on PHP5 b1. It crashes. Apache 2.0.47/Windows. 2. It works on PHP4 though (same Apache, does that matter?) but this code: setLine(20, 0xff, 0, 0); $s->drawLine(200, 0); $s->drawLine(0, 200); $s->drawLine(-200, 0); $s->drawLi

Re: [PHP] Script Execution Time

2003-07-28 Thread Ryan A
Hi Radek, This has been posted before...around once every 2 weeks I guess :-)...check the archive or you will/may get flamed. Cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Script Execution Time

2003-07-28 Thread Curt Zirzow
* Thus wrote Radek Zajkowski ([EMAIL PROTECTED]): > Could someone pass on a snippet, a function or a technique for measuring > script times. It appears the host I am with is having some PHP engine > performance problems and I need to send them the figures. So I'm suppose to take my timeout and sea

Re: [PHP] javascript & php

2003-07-28 Thread Grant Rutherford
$color = " "; $query = mysql_query("select id from color where color = '$color' "); $a = mysql_num_rows($query); Actually, what you want to do is possible, but difficult. If you are willing to tolerate a page refresh, you can use this code to

Re: [PHP] Script Execution Time

2003-07-28 Thread Brad Pauly
Radek Zajkowski wrote: Could someone pass on a snippet, a function or a technique for measuring script times. It appears the host I am with is having some PHP engine performance problems and I need to send them the figures. Check out the user contributed notes on php.net for microtime(). http://us

[PHP] Script Execution Time

2003-07-28 Thread Radek Zajkowski
Could someone pass on a snippet, a function or a technique for measuring script times. It appears the host I am with is having some PHP engine performance problems and I need to send them the figures. Thanks in advance R> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Store array as Session Variable

2003-07-28 Thread Pushpinder Singh Garcha
Hello Chris, I am using Apache webserver on the MAc Jaguar OS Platform Regards --Pushpinder On Monday, July 28, 2003, at 05:02 PM, Chris Shiflett wrote: --- Pushpinder Singh Garcha <[EMAIL PROTECTED]> wrote: I am using session_start(). All the pages after the login page use sessions and will re

Re: [PHP] Store array as Session Variable

2003-07-28 Thread Chris Shiflett
--- Pushpinder Singh Garcha <[EMAIL PROTECTED]> wrote: > I am using session_start(). All the pages after the login page use > sessions and will redirect the user to the login page, if he/she is > NOT logged in. You're not using IIS by chance are you? If so, I think you will find this link helpful

Re: [PHP] Store array as Session Variable

2003-07-28 Thread Pushpinder Singh Garcha
Hello Chris, I am using session_start(). All the pages after the login page use sessions and will redirect the user to the login page, if he/she is NOT logged in. So I am guessing the error lies in my logic somewhere. Thanks again. --Pushpinder On Monday, July 28, 2003, at 04:51 PM, Chris Shi

Re: [PHP] Store array as Session Variable

2003-07-28 Thread Chris Shiflett
--- Pushpinder Singh Garcha <[EMAIL PROTECTED]> wrote: > However if I decided to use the sessions approach how would I go about > it? I am just curious to find out why $_SESSION['company_name'] = > $company_name; duz not werk for me! Did you use session_start() like I mentioned? If so, you are

Re: [PHP] Store array as Session Variable

2003-07-28 Thread Pushpinder Singh Garcha
Thanks John, I used the $_GET['name'] on the next page to access the selection. http://psg.local/~psgarcha/CRM/full-profile.php?name=jack http://psg.local/~psgarcha/CRM/full-profile.php?name=tim http://psg.local/~psgarcha/CRM/full-profile.php?name=mary http://psg.local/~psgarcha/CRM/fu

[PHP] Re: Email forwarding from SendMail to PHP

2003-07-28 Thread Joseph Szobody
See if this helps: http://www.evolt.org/article/Incoming_Mail_and_PHP/18/27914/ Joseph "Donald Tyler" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Anyone know of a place to get some good tutorials on how to forward email > from SendMail to PHP for processing? > > -- PHP Gene

Re: [PHP] Store array as Session Variable

2003-07-28 Thread Chris Shiflett
--- Pushpinder Singh Garcha <[EMAIL PROTECTED]> wrote: > I am able to see the contents of the $company_name array. The > next part involves storing this as a session variable. Assuming $company_name is set correctly, as you verified, this should suffice: $_SESSION['company_name'] = $company_name;

Re: [PHP] Parsing MySQL query return

2003-07-28 Thread John
I'm using someone elses data here (inheriting). But it looks like it was typed into the field, possibly using PHPMyADMIN. I would assume the paragraphs are just seperated by carriage returns. Is there a way to tell for sure? John "Ewout De Boer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL P

Re: [PHP] Store array as Session Variable

2003-07-28 Thread CPT John W. Holmes
> I am able to see the contents of the $company_name array. The next > part involves storing this as a session variable. > > I am trying to link this page to another search page using the href=\"full-profile.php?name=".$row['company']. "\">--Link-- If you're passing the company name in the

Re: [PHP] Store array as Session Variable

2003-07-28 Thread Pushpinder Singh Garcha
Thanks Chris, I am able to see the contents of the $company_name array. The next part involves storing this as a session variable. I am trying to link this page to another search page using the --Link-- while ($row = mysql_fetch_assoc($result)) { " $row[company] sans-serif\">$

Re: [PHP] unique id

2003-07-28 Thread Curt Zirzow
* Thus wrote Gabriel Guzman ([EMAIL PROTECTED]): > On Sat, 2003-07-26 at 07:11, Curt Zirzow wrote: > > * Thus wrote jan ([EMAIL PROTECTED]): > > > Hi there! > > > > > > What's the best way to create uids (unique ids) even when runnig at > > > exactly same time (microseconds)? > > > > > > is this

Re: [PHP] Array Question

2003-07-28 Thread Jim Lucas
Try this. $companyname[] = $row['company']; Jim Lucas - Original Message - From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 28, 2003 10:16 AM Subject: [PHP] Array Question hello everyone, I am trying to store one of the fields of the re

Re: [PHP] MySQL limitations

2003-07-28 Thread Brent Baisley
You should rethink your data structure if you want to create 200,000 columns. If you need to create that many columns, chances are you are going to need to add more periodically. That means changing your table structure which you shouldn't have to do in a well defined schema. I'm guessing most

[PHP] Email forwarding from SendMail to PHP

2003-07-28 Thread Donald Tyler
Anyone know of a place to get some good tutorials on how to forward email from SendMail to PHP for processing?

Re: [PHP] Store array as Session Variable

2003-07-28 Thread Chris Shiflett
--- Pushpinder Singh Garcha <[EMAIL PROTECTED]> wrote: > I am trying to store the value in row['company'] in an array > called $company_name. I see now. I think you might find this a bit simpler (if I understand correctly): $company_name = array(); while ($row = mysql_fetch_assoc($result)) {

Re: [PHP] Store array as Session Variable

2003-07-28 Thread Pushpinder Singh Garcha
$details is empty !! Thanks --Pushpinder On Monday, July 28, 2003, at 03:31 PM, CPT John W. Holmes wrote: $details is an array (just like $company_name was). Try to view print_r($details); and see what you get. ---John Holmes... - Original Message - From: "Pushpinder Singh Garcha" <[EMAI

Re: [PHP] Store array as Session Variable

2003-07-28 Thread CPT John W. Holmes
$details is an array (just like $company_name was). Try to view print_r($details); and see what you get. ---John Holmes... - Original Message - From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 28, 2003 3:18 PM Subject: [PHP] Store array as Se

Re: [PHP] Store array as Session Variable

2003-07-28 Thread Chris Shiflett
--- Pushpinder Singh Garcha <[EMAIL PROTECTED]> wrote: > I am trying to store an array as a session variable. Based on your code, it looked like your question had little to do with storing an array as a session variable. To do that, this works: $_SESSION['myarray'] = $myarray; > while ($row =

[PHP] Store array as Session Variable

2003-07-28 Thread Pushpinder Singh Garcha
hello All, I am trying to store an array as a session variable. while ($row = mysql_fetch_array($result)) { if ( !is_array($company_name) ) $company_name = array(); array_push($company_name, $row['company']); // try to register session variable $_

Re: [PHP] MySQL limitations

2003-07-28 Thread John Manko
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=mysql+max+columns&btnG=Google+Search Mike Mannakee wrote: Does anyone know what the maximun number of columns I could put in a table is?? I can't find it in manual. Like, could I have a table with 200,000 columns? Mike -- PHP Ge

[PHP] MySQL limitations

2003-07-28 Thread Mike Mannakee
Does anyone know what the maximun number of columns I could put in a table is?? I can't find it in manual. Like, could I have a table with 200,000 columns? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing MySQL query return

2003-07-28 Thread Ewout de Boer
- Original Message - From: "John" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 28, 2003 8:22 PM Subject: [PHP] Parsing MySQL query return > Hey All, > > I have a question regarding parsing text from a MySQL query. Basically, I > have several paragraphs of text in a fiel

Re: [PHP] unique id

2003-07-28 Thread Gabriel Guzman
On Sat, 2003-07-26 at 07:11, Curt Zirzow wrote: > * Thus wrote jan ([EMAIL PROTECTED]): > > Hi there! > > > > What's the best way to create uids (unique ids) even when runnig at > > exactly same time (microseconds)? > > > > is this enough ??? > > > > $r = mt_rand(); > > $uid = uniqid(getmypid()

Re: [PHP] List Problems

2003-07-28 Thread Jeff Harris
On Jul 28, 2003, "skate" claimed that: | | |> Any body else getting a message back with subject like: |> [ERR] Re: [PHP] subject of message. |> | |yeah, i'm getting that every now and then. maybe 1 or 2 a day tho... [Regression mode] Not to start the discussion all over again, but if the respons

[PHP] Parsing MySQL query return

2003-07-28 Thread John
Hey All, I have a question regarding parsing text from a MySQL query. Basically, I have several paragraphs of text in a field in MySQL. I run a query, get the results, no problem. However, I would like to only display the first paragraph of the data returned. What is the best way to do this? Tha

Re: [PHP] List Problems

2003-07-28 Thread Nicholas Robinson
I've been getting them too. The really annoying bit is that the most likely reason for it is that the lucky devil hanmir is probably on holiday! On Monday 28 Jul 2003 6:26 pm, Curt Zirzow wrote: > Any body else getting a message back with subject like: > [ERR] Re: [PHP] subject of message. > >

Re: [PHP] List Problems

2003-07-28 Thread skate
> Any body else getting a message back with subject like: > [ERR] Re: [PHP] subject of message. > yeah, i'm getting that every now and then. maybe 1 or 2 a day tho... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Upload problem

2003-07-28 Thread Jason Wong
On Monday 28 July 2003 21:47, Rosen wrote: > I have some problem with uploading files on server with PHP. > The upload is ok, but I must set directory permissions with FULL Access - > but this is not a good idea :(( > Have someone idea how I can do this with no setting permissions to full > acess

Re: [PHP] List Problems

2003-07-28 Thread Ryan A
Nope, I too have gotten a few of those and its a pain in the @ss. - Original Message - From: "Curt Zirzow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 28, 2003 7:26 PM Subject: [PHP] List Problems > Any body else getting a message back with subject like: > [ERR] Re:

Re: [PHP] Jason Wong->Array help

2003-07-28 Thread Curt Zirzow
* Thus wrote Ryan A ([EMAIL PROTECTED]): > > one last question: > According to the script I am calling an include file... > eg: > if(r=2){include "blah1.php";} > elseif (r=3){include "blah2.php";} > and so on > > now blah1,2,3 etc are mostly html code files with php in them.will this > slo

RE: [PHP] replacing & but not special chars

2003-07-28 Thread Jeff Harris
On Jul 28, 2003, "Ford, Mike [LSS]" claimed that: |> -Original Message- |> From: Shawn McKenzie [mailto:[EMAIL PROTECTED] |> Sent: 27 July 2003 08:36 |> |> I have some URLs in hrefs that have an &. This does not |> validate HTM4.01 |> transitional, so I want to replace them

[PHP] Jason Wong->Array help

2003-07-28 Thread Ryan A
Hey Jason, Thanks for that bit of code, it was exactly what i was looking for. For those of you curious or face the same problem: After dumping the data into the array I am calling each part that i need via where "pname" in this case is the field name and the 1 is for the second value. (Damn, i l

Re: [PHP] Absolute and relative paths ..... a quick explanation required

2003-07-28 Thread Marek Kilimajer
use require_once() or include_once() - these remember what has been included and do not include files that has been already. Kevin McGinley wrote: Can u tell me then how its posssible to include a file that inculdes another file if it is itself included in two other files that are in difeerent d

[PHP] List Problems

2003-07-28 Thread Curt Zirzow
Any body else getting a message back with subject like: [ERR] Re: [PHP] subject of message. With contents: Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) I tried contacting the list admin and posted a message here ealier this weekend about fixing this (

[PHP] Array Question

2003-07-28 Thread Pushpinder Singh Garcha
hello everyone, I am trying to store one of the fields of the resultset into an array as I display the results. while ($row = mysql_fetch_array($result1)) { // Alternate the bgcolor of each row for visibility ($even % 2) == 0 ? $bgcolor = "#EFEFEF" : $bgcolor = "#eefff

Re: [PHP] Re: Set Cookie in PHP and call with Perl

2003-07-28 Thread Jeff Harris
On Jul 28, 2003, "Jason Wong" claimed that: |On Monday 28 July 2003 13:52, TWSC HQ wrote: | |> Sorry - by caling I meant to echo the cookie value on a .pl page - and |> include it (the cookie value)then in an email. |> |> Any help would be appreciated because the PERL list people said I must try |

Re: [PHP] Get Local IP Address

2003-07-28 Thread Curt Zirzow
* Thus wrote Tom Rogers ([EMAIL PROTECTED]): > Hi, > > Monday, July 28, 2003, 4:29:46 PM, you wrote: > >>Try this: > >> >>exec('ipconfig',$catch); > >>foreach($catch as $line){ > >>if(eregi('IP Address',$line)){ > >>list($t,$ip) = split(':',$line); > >>echo

Re: [PHP] Re: mssql_execute problems...

2003-07-28 Thread T. Rader
Thanks for the reply. I gave it a try and still have the same problem. I have FreeTDS logging enabled, but the logs do not show anything useful. A connection is made to the server, and the database is selected correctly. Then, the log shows an outgoing connection. After that, nothing. We have

Re: [PHP] Get Local IP Address

2003-07-28 Thread Comex
<[EMAIL PROTECTED]> Mark: > For Win9x, use winipcfg instead of ipconfig. winipcfg is a windows-based utility, which can't work with PHP. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get Local IP Address

2003-07-28 Thread Mark
For Win9x, use winipcfg instead of ipconfig. --- Chris Lee <[EMAIL PROTECTED]> wrote: > >Try this: > > >exec('ipconfig',$catch); > >foreach($catch as $line){ > >if(eregi('IP Address',$line)){ > >list($t,$ip) = split(':',$line); > >echo 'IP is '.$ip."\n"; > >

Re: [PHP] convert mysql datetime to unix timestamp

2003-07-28 Thread John W. Holmes
Chris Hayes (SENSE) wrote: i have to move data from a table with a datetime (2003-05-14 13:36:04) to a unix timestamp (e.g. 2147483647) . Any ideas? ALTER TABLE Table ADD COLUMN unix_time_column INT; UPDATE Table SET unix_time_column = UNIX_TIMESTAMP(mysql_time_column); -- ---John Holmes... Amazon

[PHP] sessions help - apache2 + mod_auth_ldap + PHP

2003-07-28 Thread th0th
Hello everyone! I am having some issues with authentication and was wondering if someone out there could point me in the right direction. I am using apache2 and have htaccess setup to require a valid user via mod_auth_ldap communicating with an ldap server. Everything works like a million bucks i

[PHP] Re: convert mysql datetime to unix timestamp

2003-07-28 Thread Thomas Seifert
SELECT UNIX_TIMESTAMP(datetime-field) ... thomas On Mon, 28 Jul 2003 18:06:32 +0200 [EMAIL PROTECTED] (Chris Hayes) wrote: > hi, > i have to move data from a table with a datetime (2003-05-14 13:36:04) to a > unix timestamp (e.g. 2147483647) . Any ideas? > > Chris > -- PHP General Mailin

Re: [PHP] Re: mssql_execute problems...

2003-07-28 Thread Adam Voigt
Umm, try setting TDSVER to 8.0 is all I could say to try. On Mon, 2003-07-28 at 12:10, T. Rader wrote: > Any takers on this? > "T. Rader" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hey, > > > > System: RH9, Apache 1.3.27, PHP 4.3.2, FreeTDS 0.61 connecting to a Win2K > >

[PHP] Re: mssql_execute problems...

2003-07-28 Thread T. Rader
Any takers on this? "T. Rader" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey, > > System: RH9, Apache 1.3.27, PHP 4.3.2, FreeTDS 0.61 connecting to a Win2K > Server, MSSQL Server 2K > > Problem: mssql_execute hangs when run. The script just never comes back. > The code is as f

Re: [PHP] convert mysql datetime to unix timestamp

2003-07-28 Thread Comex
<[EMAIL PROTECTED]> Chris Hayes (SENSE): > hi, > i have to move data from a table with a datetime (2003-05-14 > 13:36:04) to a unix timestamp (e.g. 2147483647) . Any ideas? > > Chris strtotime(); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

[PHP] Re: convert mysql datetime to unix timestamp

2003-07-28 Thread Shena Delian O'Brien
Look into mktime() http://us3.php.net/manual/en/function.mktime.php Chris Hayes wrote: hi, i have to move data from a table with a datetime (2003-05-14 13:36:04) to a unix timestamp (e.g. 2147483647) . Any ideas? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] convert mysql datetime to unix timestamp

2003-07-28 Thread Adam Voigt
Tried passing it through strtotime? Example: echo(date('U',strtotime($string))); On Mon, 2003-07-28 at 12:06, Chris Hayes (SENSE) wrote: > hi, > i have to move data from a table with a datetime (2003-05-14 13:36:04) to a > unix timestamp (e.g. 2147483647) . Any ideas? > > Chris -- Adam Voigt

[PHP] convert mysql datetime to unix timestamp

2003-07-28 Thread Chris Hayes (SENSE)
hi, i have to move data from a table with a datetime (2003-05-14 13:36:04) to a unix timestamp (e.g. 2147483647) . Any ideas? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Displaying MySQL data inside of a table

2003-07-28 Thread desa15
[EMAIL PROTECTED] wrote: > $mysql_link = mysql_connect("localhost", USER, PASS); > > mysql_select_db(DB, $mysql_link); > >$SQL = "SELECT * FROM tbl"; > >$result = mysql_query($SQL, $mysql_link) or die (mysql_error()); > >echo ""; > >while($resultat = @mysql_fetch_array($result)) {

Re: [PHP]IE6 back button problems

2003-07-28 Thread Jim Lucas
Try taking the value='' out of your form fields. if you have it reseting the values every time the page is loaded, it will reset the values. Jim Lucas - Original Message - From: "Jim McNeely" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 28, 2003 3:20 AM Subject: [PHP]IE6

Re: [PHP] php pages without .php extension on linux and windows

2003-07-28 Thread Heiko Mundle
I just had to turn on MultiViews in my directory options... Heiko Jeff Harris wrote: On Jul 7, 2003, "Heiko Mundle" claimed that: |I try to use PHP and Apache on both Linux (SuSE 8.1) and Windows (2K). | |On Linux I can access the PHP scripts without adding the .php extension. |E.g. |http:///?pa

Re: [PHP] problem: creating global alias inside function

2003-07-28 Thread Curt Zirzow
* Thus wrote Ford, Mike [LSS] ([EMAIL PROTECTED]): > > -Original Message- rints 0, not 1 > > > > function setglobal(&$one) > > { > > global $globalvariable; > > PHP actually handles this by executing the equivalent of: > > $globalvariable = &$GLOBALS['globalvariab

Re: [PHP] uploading a file from a form

2003-07-28 Thread Martin Peck
Amanda, You need to look at some of the error messages that are available to you: 1) remove the prepended @ from the file functions. This will tell what is going wrong with the file copy. > if ([EMAIL PROTECTED]($photo, $long_path . "company_logo/" . $photo_name)) { > echo "Copy fail

RE: [PHP] problem: creating global alias inside function

2003-07-28 Thread Ford, Mike [LSS]
> -Original Message- > From: Martin Peck [mailto:[EMAIL PROTECTED] > Sent: 28 July 2003 15:33 > > The following code illustrates a problem I've got with > references (running > on PHP 4.3.2). Can anyone explain it for me? Thanks in > advance for any > assistance! > Martin > > > $glo

Re: [PHP] Absolute and relative paths ..... a quick explanation required

2003-07-28 Thread Curt Zirzow
* Thus wrote Kevin McGinley ([EMAIL PROTECTED]): > Hi all, > can anyone tell me how php paths are worked out Im just starting to use > php over asp so would appreciate the answer to the following > > If a file a.php includes a file b.php which includes a file c.php is the > include in file b.

Re: [PHP] Displaying MySQL data inside of a table

2003-07-28 Thread sven
[EMAIL PROTECTED] wrote: > $mysql_link = mysql_connect("localhost", USER, PASS); > > mysql_select_db(DB, $mysql_link); > >$SQL = "SELECT * FROM tbl"; > >$result = mysql_query($SQL, $mysql_link) or die (mysql_error()); > >echo ""; > >while($resultat = @mysql_fetch_array($result)) {

Re: [PHP] variable in function parameter

2003-07-28 Thread Curt Zirzow
* Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]): > > * Thus wrote 386-DX ([EMAIL PROTECTED]): > > > Hello. Let's say I have something like this: > > > > > > function aa($test) { > > > $a = 8; > > > echo $test; > > > } > > > > > > $a = 2; > > > aa("a is ". ($a>5?"greater":"equal to or le

Re: [PHP] uploading a file from a form

2003-07-28 Thread Marek Kilimajer
Everything is in the manual: http://www.php.net/features.file-upload Amanda McComb wrote: I'm not sure what that means...how do I use it, and where? On Fri, 25 Jul 2003, Marek Kilimajer wrote: Don't you need to use $HTTP_POST_FILES array because you have register_globals off? Amanda McComb wr

RE: [PHP] Debugging a Session Problem

2003-07-28 Thread Johnson, Kirk
Anything in the Apache or PHP error logs? Permissions are OK, there is space on the drive? Kirk > -Original Message- > From: Lee Stewart [mailto:[EMAIL PROTECTED] > Sent: Friday, July 25, 2003 6:00 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Debugging a Session Problem > > > Using t

[PHP] problem: creating global alias inside function

2003-07-28 Thread Martin Peck
The following code illustrates a problem I've got with references (running on PHP 4.3.2). Can anyone explain it for me? Thanks in advance for any assistance! Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] variable in function parameter

2003-07-28 Thread CPT John W. Holmes
> * Thus wrote 386-DX ([EMAIL PROTECTED]): > > Hello. Let's say I have something like this: > > > > function aa($test) { > > $a = 8; > > echo $test; > > } > > > > $a = 2; > > aa("a is ". ($a>5?"greater":"equal to or less"). " than 5".); > > http://php.net/eval No... you need to make $a glo

Re: [PHP] variable in function parameter

2003-07-28 Thread Curt Zirzow
* Thus wrote 386-DX ([EMAIL PROTECTED]): > Hello. Let's say I have something like this: > > function aa($test) { > $a = 8; > echo $test; > } > > $a = 2; > aa("a is ". ($a>5?"greater":"equal to or less"). " than 5".); http://php.net/eval Curt -- "I used to think I was indecisive, but n

Re: [PHP] uploading a file from a form

2003-07-28 Thread Amanda McComb
I'm not sure what that means...how do I use it, and where? On Fri, 25 Jul 2003, Marek Kilimajer wrote: > Don't you need to use $HTTP_POST_FILES array because you have > register_globals off? > > Amanda McComb wrote: > > > I am having a problem with uploading a file from a form. I changed the

Re: [PHP] Displaying MySQL data inside of a table

2003-07-28 Thread desa15
$mysql_link = mysql_connect("localhost", USER, PASS); mysql_select_db(DB, $mysql_link); $SQL = "SELECT * FROM tbl"; $result = mysql_query($SQL, $mysql_link) or die (mysql_error()); echo ""; while($resultat = @mysql_fetch_array($result)) { echo " $resultat[ip] ";

Re: [PHP] Displaying MySQL data inside of a table

2003-07-28 Thread Jacob Vennervald Madsen
Hi Next time you can find a lot of information about this on www.php.net. Check out this example: Best regards, Jacob Vennervald On Mon, 2003-07-28 at 16:08, SP Computing wrote: > Hi all, > > I have this code so far: > > > mysql_connect(localhost, USER, PASS); > mysql_select_db(DB); > > $

[PHP] Displaying MySQL data inside of a table

2003-07-28 Thread SP Computing
Hi all, I have this code so far: Inside one of my tables, I have one field called IP which contains just over a thousand IP addresses. I would like these IP addresses to be displayed inside of a table like this: IP Address #1 IP Address #2 IP Address #3 And so on... How do I go about ache

Re: [PHP] Absolute and relative paths ..... a quick explanation required

2003-07-28 Thread Marek Kilimajer
relative to a.php Kevin McGinley wrote: Hi all, can anyone tell me how php paths are worked out Im just starting to use php over asp so would appreciate the answer to the following If a file a.php includes a file b.php which includes a file c.php is the include in file b.php relative to itse

  1   2   >