[PHP] Re: Include Remote Content as REMOTE_ADDR of Browser

2005-05-27 Thread Gary C. New
Ryan Grange wrote: Gary C. New wrote: Is there a quick and dirty way to include, file, or fsockopen content from a remote server and make it appear as though the request was straight from the browser's remote address? Thank you for your assistance. Respectfully, Gary I believ

[PHP] Compiling Phpcap

2005-05-27 Thread Gary C. New
I am trying to compile phpcap-0.2e with php-4.2.3 and get the following configure error: ./configure: line 52860: syntax error near unexpected token `PHP_NEW_EXTENSION(phpcap,' ./configure: line 52860: ` PHP_NEW_EXTENSION(phpcap, phpcap.c, $ext_shared)' The phpcap INSTALL file show php-4.3.

[PHP] Include Remote Content as REMOTE_ADDR of Browser

2005-05-27 Thread Gary C. New
Is there a quick and dirty way to include, file, or fsockopen content from a remote server and make it appear as though the request was straight from the browser's remote address? Thank you for your assistance. Respectfully, Gary -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] Re: Missing $GLOBALS SCRIPT_URI

2005-02-19 Thread Gary C. New
It turns out that SCRIPT_URI is a mod_rewrite global. I simply had to turn the RewriteEngine On under the unencrypted (http) location and it worked perfectly. Thank you for the suggestions. Respectfully, Gary pete M wrote: try $_SERVER['SCRIPT_URI']; Gary C. New wrote: I am writing som

[PHP] Missing $GLOBALS SCRIPT_URI

2005-02-19 Thread Gary C. New
I am writing some php code that requires the $GLOBALS['SCRIPT_URI'] variable. When I access the code under its encrypted (https) location it is available without issue. However, when I try to access the code under its unencrypted (http) location it is not available. In fact, phpinfo() shows

[PHP] Missing $GLOBALS SCRIPT_URI

2005-02-19 Thread Gary C. New
I am writing some php code that requires the $GLOBALS['SCRIPT_URI'] variable. When I access the code under its encrypted (https) location it is available without issue. However, when I try to access the code under its unencrypted (http) location it is not available. In fact, phpinfo() shows that

[PHP] base32/62 mcrypted data

2005-02-14 Thread Gary C. New
I am currently storing mcrypted data as a base64 encoded string. I now need to store the mcrypted data as a base32 or base62 string, because of problems occurring due to the '+', '/', and '=' characters. It seems that there is only the base64_en/decode default function. Does anyone know of a meth

[PHP] Need Help in shoppin cart

2004-03-06 Thread New Session
the backend which is capable of Creating accounts for new retailers and fix a profit % for each retailer. which would mean that when a retailer logs in he'd see a price list with the profit % added to the base price. This list would appear different to each retailer, as pertaining to his prof

[PHP] Re: web-based and command line mcrypting and back again

2004-01-06 Thread Gary C. New
Tom, I appreciate the suggestion, but even after setting the iv to zero within the php code and including the --noiv option within the command line; it still does not produce the same base64 encoded string under both methods. I noticed that the command line was keying off of 2 passphrases and

[PHP] Re: PHP/MySQL with Microsoft Word

2004-01-06 Thread Gary C. New
Use MySQLODBC... I use it to manage my databases through MS Access. I haven't integrated it yet with Word, but it is my intention in the near future. Hope this helps. Respectfully, Gary Satch wrote: Is there any way to have a web page (PHP) that draws data from a database (MySQL) then popula

[PHP] web-based and command line mcrypting and back again

2004-01-06 Thread Gary C. New
I am trying to figure out how to encrypt data using the web-based php mcrypt function and then decrypt it using the command line (cli) mcrypt binary, and vica-versa. I cannot seem to get the same encrypted output for the same data, between the two methods. I've tried to ensure I am using the s

[PHP] Re: detaching and running php processes in the background

2004-01-06 Thread Gary C. New
$u && $p"); That's it! I know it sounds a bit complicated, but after you have all the right components functional it is quite easy. Hope this helps all those of you who have requested it. Respectfully, Gary Gary C. New wrote: What is the best way to detach and run a comm

[PHP] detaching and running php processes in the background

2003-11-21 Thread Gary C. New
What is the best way to detach and run a command line based php script in the background from a web-based php script, without the need for reporting? I have a web-based php script that gathers information and then passes it off to several functions, which execute several other php scripts. The

[PHP] selecting based on a month in a date

2003-08-28 Thread Creative Solutions New Media
Hi, Asked this on the mySQL list but it seems to be more of a PHP syntax thing that a mySQL thing. In have the following line in PHP I have a mySQL table which contains dates formatted as dates(-xx-xx) I want to select all records based on a specific month. This is my select statement S

RE: [PHP] Newbie Question regarding Syntax

2003-08-17 Thread Creative Solutions New Media
PROTECTED] Sent: August 17, 2003 8:45 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Newbie Question regarding Syntax * Thus wrote Creative Solutions New Media ([EMAIL PROTECTED]): > Sorry guys.It think there is a bit of confusion. > > I miss typed what I need to do. > >

RE: [PHP] Newbie Question regarding Syntax

2003-08-17 Thread Creative Solutions New Media
Zirzow [mailto:[EMAIL PROTECTED] Sent: August 17, 2003 8:28 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Newbie Question regarding Syntax * Thus wrote Creative Solutions New Media ([EMAIL PROTECTED]): > HREF="mailto:[EMAIL PROTECTED]">'.$row_rep_RS['repEmail'].'

[PHP] Newbie Question regarding Syntax

2003-08-17 Thread Creative Solutions New Media
mailto:[EMAIL PROTECTED]">'.$row_rep_RS['repEmail'].''; ?> Obviously this isn't working. What is the proper syntax when you have to use double quotes inside the tag? Thx Tim Winters Manager, Creative Development Sampling Technologies Incorporated (STI) [EMAIL PROTECTED] [EMAIL PROTECTED] W: 902

[PHP] detecting referer

2003-08-14 Thread Creative Solutions New Media
Hello, Bit of a newbie question I guess. What is the best way, using php, to detect information about the referrer to a page. Is this possible/difficult using PHP? Thanks, Tim Winters Manager, Creative Development Sampling Technologies Incorporated (STI) [EMAIL PROTECTED] [EMAIL PROTECTED] W:

[PHP] Calling to a page without having to load it

2003-08-14 Thread Creative Solutions New Media
Hello, I have a weird problem I was hoping someone could help with. I have a client who hosts a site on a standard server (No PHP et all) Currently he has some Flash based content. Within the Flash content I can call to PHP pages in another domain to push and pull data from a mySQL DB into the

RE: [PHP] detecting referer

2003-08-14 Thread Creative Solutions New Media
PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] detecting referer --- Creative Solutions New Media <[EMAIL PROTECTED]> wrote: > What is the best way, using php, to detect information about the > referrer to a page. echo $_SERVER['HTTP_REFERER']; To see all of the informatio

RE: [PHP] Problem sortiing dyn query

2003-08-10 Thread Creative Solutions New Media
D] Subject: Re: [PHP] Problem sortiing dyn query Creative Solutions New Media wrote: > Hi > > Can someone give me some indication why this might not be working? > > $query_Recordset1 = sprintf("SELECT * FROM sti_tracking ORDER BY '%s' '%s'", $query_Re

[PHP] Problem sortiing dyn query

2003-08-08 Thread Creative Solutions New Media
Hi Can someone give me some indication why this might not be working? $query_Recordset1 = sprintf("SELECT * FROM sti_tracking ORDER BY '%s' '%s'", $reSort_Recordset1,$direction_Recordset1); the values for $reSort_Recordset1 and $direction_Recordset1 are passed through from another page. $reSort

RE: [PHP] PHP, JavaScript and populating DropDowns

2003-07-30 Thread Creative Solutions New Media
="SELECT * from colors"; $results = mysql_query($query) or die ("DB ERROR:" . mysql_error()); $num = mysql_numrows($results); $i=0; echo "\n<!--\n"; while ($i < $num) { echo "\n ca[$i] = new Array();"; echo "\n ca[$i][0] = \"" . mys

[PHP] PHP, JavaScript and populating DropDowns

2003-07-29 Thread Creative Solutions New Media
Hello, I am using mySQL and PHP to pull some data into my page. I have 2 dropdown boxes. As an example lets say dropbox1 has a list of cars and dropbox2 has a list of colours. Here's the thing. The colours for each car vary so I won't know what colours to populate the 2nd dropbox with until a

[PHP] How to store a file in an array and access each line

2003-02-05 Thread The New Source
How can I read a file in a url, into an array so that I can access each line by itself? Thanx Rodrigo

[PHP] Control what is going to be exibited on screen

2003-02-05 Thread The New Source
Ok, guys this is it With th code bellow I can get the html file from a url and get the content without the html tags, but I wanna control the exibition of this content and only display the lines 1 to 4, and I can't seem to get how to do this. I thank any advice you can get me. Rodrigo // Get

[PHP] How to remove the html Tags?

2003-02-04 Thread The New Source
Hi guys, is there a function that will remove all the Html tags from a file? How should I do it? Thanks for any clues, Rodrigo

[PHP] How to get a certain line from a file

2003-02-04 Thread The New Source
How can I get a certain line from a file? If I get a file in this way: $f = fopen("http://www.url.com/index.htm","r";); How can I get a certain line of the file index.htm? I would need to get the line number 232, or lines from 232 to 238. How can I get this content? Thanx. Rodrigo

[PHP] Is there a way to retrieve an entire source code from a php file?

2003-02-04 Thread The New Source
What I want to know is if it is possible to retrieve a source code from a url, with a php file. Something like this: There is a php file that retrieve the source code from the url www.url.com and this source is treated and you get content from this file and show it on the response page. Is thi

[PHP] GET HEADLINES FROM ANOTHER SITE

2003-02-04 Thread The New Source
I´d like to know how to get certain headlines from another site. I already got the permission from the site owner, but I'm short on the programing. It would be something like, get the source code from the url: www.url.com and then remove all the html, and get only the part that I need. Does anyb

[PHP] Help for Undefined variable

2002-12-16 Thread New B
ubmission was not processed due to a system error!\n"); } } else { print ("Please enter a valid Web address!\n"); } ?> Thanks, New B -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help: Undefined variable

2002-12-16 Thread New B
Please help! I am a beginner of php, I got an error from my own webpage: Notice: Undefined variable: Array in C:\Inetpub\wwwroot\php\HandleForm.php on line 23 Please enter a valid Web address! Below is my code: Using Files http://\\2\\3\"target=\"_new\";>\\2\\3"; $Array["URL"] = eregi_repl

[PHP] Drop down Menu

2002-10-08 Thread The New Source
Hi, I need to do a drop down menu that loads the contents from a msql database. Like this: I need a select that has the name of every salesman of a certain department, and this info is dynamic and is recorded in a database (MySql). So what would the select have to be like? Also the load value is

[PHP] Adding to a MySql Database

2002-09-24 Thread The New Source
I have a field on a MySql database that is started with a 0, and I want to add 1 to this field every time a button is pressed on a form. So it should add one every time, like if there is 5 and you press it one time it would have 6.

[PHP] Interested in a new Affiliate Program??

2001-08-12 Thread new
the subject REMOVE. Please Check the message at the end of the email Dear Fellow Entrepreneur, Are you looking for a new affiliate program? Have you found the 'Right' way of marketing that program? I think I have a way to Start Your Own Success! If you are interested in this progr