[PHP] PHP Page Refresh on Redirection

2003-01-27 Thread Phil
I have a PHP page with a form that submits to another PHP processing page. On completion of the PHP actions on the processing page, I have echoed into the page the javascript action of 'location.href=...' and the location is redirected to the PHP form page that starting the process. Both pages take

[PHP] arg parsing

2002-11-08 Thread phil
2.040 now it doesn't work becuase the arg does not get parsed. I am sure that this is a config issue but I do not know it - any assistance much appreciated. regards Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] crypt/Password

2002-02-03 Thread Phil
back to a form recognisable to the user? Thanx in advance Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] crypt/Password

2002-02-03 Thread Phil
word to them, and then > allow them to change the password on your site to something easier to > remember... > > Jeff > > At 11:56 PM 2/3/2002 +0800, Phil wrote: > >Hi there, > >I'm creating a user/password table that will use either Mysql Password or > >PHP

[PHP] Web Based PHP Content Manager Problems

2001-03-22 Thread Phil
e, is that my server thinks I am a 'nobody' and so when I submit the file changes I get permissions error. Everything works fine with all of the different programs I've tried; if I simply give everybody write access to the file, but that is not an option. Any help would be greatly apprec

[PHP] Cant load MSSQL extension (Win, PHP, Apache)

2001-08-05 Thread Phil
Hi everybody, If I edit the php3.ini and activate a extension, I can see the effect with the function phpinfo(). This works with all extensions, exept mssql.dll and mssql70.dll. What am I doing wrong?? I dont think this is a general problem!! And, ladies and gentleman, I need help... thx!! --

[PHP] AW:How can I unsubscribe?

2001-08-15 Thread Phil
Hey, I deleted the instruction mail... content was besides other topics how I unsubscribe a mailing list... Knows anybody the code? -- 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

[PHP] AW:How can I unsubscribe?

2001-08-15 Thread Phil
Hey, I deleted the instruction mail... content was besides other topics how I unsubscribe a mailing list... Knows anybody the code? -- 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

[PHP] Where do I get the DLL php_mssql70.dll?? Please help...

2001-08-22 Thread Phil
Hey everybody, I'm trying to connect a mssql db, but cant't even load the extension for mssql Where do I get the file php_mssql70.dll (php4)? Thanks everybody! Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

[PHP] Cant load dynamic library.... whats up?

2001-08-22 Thread Phil
uot; I even placed the dlls for all the extensions in: - c:\programs\php - c:\programs\extensions - c:\windows\ - c:\windows\system But ist doesn't work. Thanks everybody! Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

[PHP] Need help debugging random httpd segfault

2011-03-09 Thread Phil
Hello list, We've been experiencing random crashes on httpd, error_log shows a bunch of [notice] child pid 12984 exit signal Segmentation fault (11) PHP 5.2.17: ./configure --with-apxs2=/var/www/bin/apxs --with-gd --with-jpeg-dir=/usr/local --with-pgsql --with-pdo-pgsql --with-png-dir=/usr/local

[PHP] How to verify that data is in a blob?

2004-05-31 Thread phil
I want to verify that there is data (doesn't matter whether it's valid data or not) inside a MySQL blob using a PHP function. How do I do this? Thanks!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File Write Permission Errors - HELP! URGENT!!!

2002-11-25 Thread Phil Powell
ey exist, if not, create them on the fly. I need the solution in the next 5 minutes - sorry, kind of an emergency! If anyone can help, please tell me what to do, the PHP manuals are not giving me a clear solution as to how to write to a file that does not yet exist that has to have the permissions of 0755 for both files. Thanx Phil

[PHP] Re: File Write Permission Errors - HELP! URGENT!!!

2002-11-25 Thread Phil Powell
ist. It works for me to do "r" in all other folders with the same permissions as /chat. Phil "Craig" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > you must give the same permissions to the folder also. > > > "P

Re: [PHP] Going Mad

2002-11-30 Thread Phil Driscoll
added the AddType line for php in > httpd.conf and restarted Apache. If your file is test.php then the > ".php" must be part of the AddType line. ...or you are viewing the page as file://foo.php rather than http://localhost/foo.php Cheers -- Phil Driscoll -- PHP General Mailing List

[PHP] How to override header info in mail()

2002-11-30 Thread Phil Powell
message indicating that header information has already been set prior to emailing. Is there a way to overwrite only certain header information prior to emailing to ensure the content-type of the email being either text/plain or text/html? Just wondering Thanx Phil

Re: [PHP] Going Mad

2002-11-30 Thread Phil Driscoll
On Saturday 30 November 2002 5:32 pm, Andy Davey wrote: > Hi Phil > > It took me a while to get the local host to show the apache welcome screen, > but now that I have I am still unable to see the page, I have the file > saved on my desktop, should I have the test.php file save

[PHP] fopen have a "setTimeout" feature?

2002-12-08 Thread Phil Powell
Can you set something like a "setTimeout" feature in fopen? That is, if you use fopen to open a URL for "scraping", if that URL's server is down or doesn't respond in x seconds, can you set a feature to show an error message or a "friendly" error message indicating such? Thanx Phil

Re: [PHP] fopen have a "setTimeout" feature?

2002-12-08 Thread Phil Powell
Sorry, your code produced this error and I can't figure out how to debug it :( Warning: fopen("http://www3.brinkster.com/soa/val/profile/display.asp?showLeftNavBann er=1","r") - Error 0 in /users/ppowell/web/profiledisplay.php on line 4 Phil - Original Message -

[PHP] Fw: PHP script needs to timeout upon FOPEN to URL

2002-12-13 Thread Phil Powell
.myurl.com";, "r")) && time() < $startTime + $time); if (!$file){ echo "Timed out, try again later"; } else { // do stuff } Problem is, when it attempts to connect to the remote server, it's supposed to time out after 2-5

[PHP] Session changes from version 4.06 to 4.22 ??

2002-12-28 Thread Phil Schwarzmann
I just switched from a web host who used version 4.06 to a web host who is using version 4.22 - Now none of my PHP scripts will start sessions properly. Did something change from version 4.06 to 4.22 concerning sessions?? I e-mailed my new web host and asked if they disabled sessionsthey said

[PHP] Sorry, really stupid question...

2002-12-28 Thread Phil Powell
es it EXACTLY do? What I'm trying to do is very very simple: I have the nickname of "phil" and I add it to nicknames.txt as "phil" + "\n". The next person adds his name as "bob" + "\n". However, this happens: phil philbob Is it due to the

Re: [PHP] Sorry, really stupid question...

2002-12-28 Thread Phil Powell
I checked, and I am adding just "bob". Turns out to be a wacky logic problem. nicknames.txt contains this: phil\n bob\n When "bob" leaves the chatroom nicknames.txt becomes: phil\n BUT.. apparently that's not it either; the carriage return is also somehow stripped o

[PHP] Warning: 1 is not a valid File-Handle resource - HELP!

2002-12-29 Thread Phil Powell
plode("\n", $stuff); The last line produces the Warning.. why? I am trying to read contents from nicknames.txt and split according to the newline character so that each nickname is an array element. What did I do wrong? :( Phil

[PHP] I can't code today to save my life! :(

2003-01-04 Thread Phil Powell
results were wrong every time: if (strpos($REQUEST_URI, "register.php") !== 0) { // you're in login.php } I don't know why I can't get this other than weekend stupidity, can someone help? Thanx Phil

[PHP] Second (Bizarre) Question regarding PHP and ASP

2003-01-04 Thread Phil Powell
sp know that process.php called it in order to do what it should do? Thanx Phil

[PHP] PHP and empty() if form value is 0

2003-01-04 Thread Phil Powell
ot;$key"]; } Whenever the form variable is equal to 0, the value is not passed into the corresponding variable. For example, if isLogin = 1, then $isLogin = 1 But if isRegistered = 0 then $isRegistered = {null} I do not understand why this happens, someone enlighten me! Phil

Re: [PHP] PHP and empty() if form value is 0

2003-01-04 Thread Phil Powell
I couldn't think of isset, so I winged it: if (strlen($var) > 0) {...} Phil "Michael Sims" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Sat, 4 Jan 2003 19:26:02 -0500, you wrote: >Whenever the form variable is equal to

Re: [PHP] Second (Bizarre) Question regarding PHP and ASP

2003-01-04 Thread Phil Powell
CURL? I only understand CURL as a Vignette command, sorry, you lost me. Phil "Michael J. Pawlowsky" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I'm not sure I totally understand... But why not just

[PHP] XML File does not reflect changes upon reopen - HELP

2003-01-08 Thread Phil Powell
an XML file!!! is to use a TCL CGI script to write to the XML file), once changes have been made I need to reopen the file and read its contents, however, every time I do I am getting OLD file information and NOT my changes, every single time, unless I refresh my page... Does anyone know what I can do about this? I can't redirect them, that would be horribly inefficient.. what can I do? Thanx Phil

[PHP] mysql_num_rows() error

2003-01-09 Thread Phil Powell
< sizeOf($row); $i++) { > echo "$i: " . $row[$i] . ""; > } >} > } > ?> > > It couldn't get any simpler. I just installed mySQL on my machine and am > trying to see what I can do with it giving Win2K and IIS. > > AUGH! Thanx > Phil > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] fsockopen() to remote URL: what if remote URL "times out"?

2003-01-10 Thread Phil Powell
to "scrape" contents from the remote site and post a default message instead? Just wondering Thanx Phil

[PHP] Can someone help me with this code please?

2003-01-15 Thread Phil Powell
below, takes up to 90 seconds to load because of the ASP script locking, in spite of my safeguards. Can anyone please help; I'm out of ideas. Thanx Phil http://www3.brinkster.com/soa/val/profile/view.asp>Click here or try again later"; } else { $httpStr = "POS

[PHP] Problems with require() and variables

2003-01-15 Thread Phil Powell
y.php'); However, when display.php finishes being "required", I lose all of my variables that I need for view.php. How do I retain them?? How can I ensure that these variables in display.php will also exist in view.php? Thanx Phil

[PHP] Security

2003-01-20 Thread Phil Ewington
directories within their web root only? TIA Phil Ewington Technical Director 43 PLC 35 Broad Street, Wokingham Berkshire RG40 1AU T: +44 (0)118 978 9500 F: +44 (0)118 978 4994 E: [EMAIL PROTECTED] W: http://www.43plc.com -- PHP General Mailing List (http://www.php.net/) To

[PHP] Cannot show reuploaded image file on page unless manual refresh

2003-01-20 Thread Phil Powell
then the new image file appears! I am handling file uploading this way: If they select another file to upload, the old file is deleted and the new file uploaded. Any suggestions? Thanx Phil

[PHP] files no longer upload!

2003-01-20 Thread Phil Powell
I'm having a day, gang! I have done nothing to my code and now is_uploaded_file is constantly false, even when uploading a file every time. I dunno what to do, would someone want to look at my code and tell me what I did wrong; I'm out of ideas. Phil

Re: [PHP] Cannot show reuploaded image file on page unless manual refresh

2003-01-20 Thread Phil Powell
Dude, your solution failed! :( The image STILL caches even though on the server end it's deleted!! Even with a RANDOM string tacked on it STILL caches!!! Phil <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Aha! Something I ca

[PHP] Re: Cannot show reuploaded image file on page unless manual refresh

2003-01-20 Thread Phil Powell
Tried that too, dude.. now the files are replicating themselves in the /profile/images folder! I am supposed to delete the old file and replace it with the new file, but instead I have old file & new file, and the association between profile and image is incorrect. Phil "Philip

[PHP] Fw: I need my PHP script to call a TCL proc

2003-01-21 Thread Phil Powell
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 5:36 PM Subject: I need my PHP script to call a TCL proc > From: [EMAIL PROTECTED] (Phil Powell) > Newsgroups: comp.lang.tcl,comp.lang.php > Subject: I need my PHP

[PHP] How do I find email patterns in a query string in a text and urlescape them?

2003-01-21 Thread Phil Powell
If I have a text of string like this: $stuff = "Hi my name is Phil, my email is [EMAIL PROTECTED] and you can find me at http://www.xx.yy?[EMAIL PROTECTED]";; What I want to do is to "validate" all patterns resembling an email address EXCEPT those found within the query

[PHP] Starting sessions, registering variables, destroying sessions with global_variables off....

2003-01-24 Thread Phil Schwarzmann
I just switched from a 4.06 server with global_variables ON to a 4.22 with global_variables OFF Can someone give me a quick run down of how to set/unset variables and register/destroy sessions with PHP 4.22 (global_variables OFF). I've been all through the php.net manual and still can't

[PHP] Problem with xml_parse_into_struct

2003-01-29 Thread Phil Powell
riginal XML structure from the contents read from the XML file: $fileID = fopen('/phil/xml/news.xml', 'r') or die('Could not open XML'); $stuff = fread($fileID, filesize('/phil/xml/news.xml')); fclose($fileID); $stuff contains the contents of news.xml, so I wou

[PHP] Need an explanation as to what this line does...

2003-02-01 Thread Phil Powell
$stuffArray[$i][value] = strtr($stuffArray[$i][value], array_flip(get_html_translation_table(HTML_ENTITIES))); To be bluntly honest, I don't understand hardly any of it, and the PHP Manual isn't helping this time.. maybe I'm weekend-stupid or something.. *sigh* Phil

[PHP] PHP connecting to MS Access

2003-02-05 Thread Phil Schwarzmann
If a MS Access database and a PHP server were on the same machine, could they connect without having to use something like MS SQL Server?

[PHP] Re: preg_replace question

2003-02-23 Thread Phil Roberts
[EMAIL PROTECTED] (Electroteque) wrote in news:[EMAIL PROTECTED]: > yet another regex question how could i hange the value within the > quotes with preg_replace > > php_value upload_max_filesize "5M" > > $str = preg_replace("#php_value upload_max_filesize\s?['\"](.+?)[\"']#i", "php_value upl

[PHP] Re: OOP and object references, not copies - how to do?

2003-02-23 Thread Phil Roberts
[EMAIL PROTECTED] (Erik FranzéN) wrote in news:[EMAIL PROTECTED]: > Say the you are going to create a simple forum and you want to have a > number of classes: > > Class Sql - handles the DB interface > Class User - handles users > Class Messages - handles messages > > When you are writing the c

[PHP] Re: Tutorials on OOP

2003-02-23 Thread Phil Roberts
[EMAIL PROTECTED] (Davy Obdam) wrote in news:[EMAIL PROTECTED]: > Hi people,. > > I have to build several classes for a project i am doing, but i am quite > new to OOP programming. I need to make a database abstraction layer > class and a user login class.. Does anyone know some good tutorials

[PHP] mail()

2003-07-04 Thread Phil Dowson
Hi, Could someone let me know if it is possible to pass a resultset of a query to a single variable so it can be included as the message part of the mail function? Thanks! Phil Dowson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail()

2003-07-05 Thread Phil Dowson
Perfect solution. Thanks!!! - Original Message - From: "Dan Anderson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, July 05, 2003 4:30 am Subject: Re: [PHP] mail() > > > Could someone let me know if it is possible to pass a resultset of a query > > > to a single variable

[PHP] What did I do wrong to cause a parse error?

2003-07-10 Thread Phil Powell
uot;$singleProfileHTML.." line. I'm completely don't get it; I see absolutely nothing wrong with this, what did I miss? Phil

Re: [PHP] What did I do wrong to cause a parse error?

2003-07-10 Thread Phil Powell
Thanx I got it to work, however, I have no idea why it works now considering I did nothing different: $singleProfileHTML .= "\n"; Beats the heck out of me! Phil - Original Message - From: "David Otton" <[EMAIL PROTECTED]> To: "Phil Powell" <[

[PHP] Mind exploded on this one!

2003-07-11 Thread Phil Powell
ng', 'maritalstatus', 'birthday', 'favemovie', 'faveplace', 'favetv', 'imgpath', 'imgext'); $profileNonFormVarArray = array('profileName', 'letter', 'name'); $arrayListArray = array('booleanNonFormVars', 'booleanVars', 'profileVarArray', 'profileNonFormVarArray'); Bluntly put, I need to get: $hasSelectedLetter $letter Etc.. I have absolutely NO idea how to do this, help! Phil

[PHP] I need a PHP alternative to Windows Scheduled Tasks

2003-07-23 Thread Phil Powell
. I'm thinking PHP since I am very comfortable with it, were it possible within my bizarre Win2000 environment, but I need something that will clean those XML files remotely on a regular basis, it's important for website maintenance. Any help appreciated. Thanx Phil

[PHP] Newbie Question

2003-08-21 Thread Phil King
SP has no GUI interface into mysql so all manipulation is done via PHP. Thanks very much for any guidence. Phil. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie Question

2003-08-21 Thread Phil King
Hi Robbert, I beleive my ISP does not allow any GUI interface into mysql databases on the server. They have advised me that ALL functions, table creation, modification, loading data etc has to be done from PHP. It appears I have to use SQL statements within a PHP page to load the data. Phil

Re: [PHP] Newbie Question

2003-08-22 Thread Phil King
Hi Everyone, Thanks a lot for all your advice, I really appreciate it. PHP / mysql is new to me so excuse my ignorance of the subject.. I will go get phpMyAdmin and give it a whirl. Thanks again. Phil. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Storing a graphic file in a MySQL database

2003-03-29 Thread Phil Schwarzmann
Where can I find some information on storing a graphic file such as a JPG or GIF into a MySQL database. I'm assuming I have to convert it to a binary format and store it that way. Or maybe this isn't possible? Thanks!

[PHP] Using PHP & Credit Card orders

2003-04-01 Thread Phil Schwarzmann
Where can I find information on using PHP along with secure online Credit Card orders? Thanks!

[PHP] Finding the height of a JPG in pixels using PHP

2003-04-05 Thread Phil Schwarzmann
I have JPG files stored as binary in a MySQL database. I am displaying the JPGs on the screen and also want to know the height (in pixels) of the JPG. Can PHP do this? Thanks!

[PHP] RegEx (back referencing)

2002-08-03 Thread Phil Ewington
)>", "«font color=maroon»\1«/font»", $string); This results in opening and closing tags being replaced with a square being wrapped in font tags. I have this working in Cold Fusion but cannot seem to convert my scripts to PHP. Can anyone help? TIA Phil Ewington. -- P

RE: [PHP] RegEx (back referencing)

2002-08-03 Thread Phil Ewington
What's strange is that doing an ord($string) returns 171, which is a '1/2' char. So why does PHP convert the pattern match?? > -Original Message- > From: Phil Ewington [mailto:[EMAIL PROTECTED]] > Sent: 03 August 2002 17:04 > To: PHP General > Subject:

RE: [PHP] RegEx (back referencing)

2002-08-03 Thread Phil Ewington
s of javascript color="maroon"> - not perfect, but a start. > > Danny. > > - Original Message - > From: "Phil Ewington" <[EMAIL PROTECTED]> > To: "Danny Shepherd" <[EMAIL PROTECTED]> > Sent: Saturday, August 03,

Re: [PHP] Executing a file with rtf-extension

2002-08-12 Thread Phil Driscoll
he tree by a child node? Cheers -- Phil Driscoll -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mkdir() failed: Permission denied

2002-09-28 Thread Phil Powell
t;Please fill out all required fields")); // FILE UPLOAD HANDLING $attempt = mkdir("/users/ppowell/web/my/images", 0655); if (is_uploaded_file($_FILES['myImage']['tmp_name'])) move_uploaded_file($_FILES['myImage']['tmp_name'], &quo

Re: [PHP] mkdir() failed: Permission denied

2002-09-28 Thread Phil Powell
01755); // $path = "/users/ppowell/web/my/images/"; Warning: Unable to access /users/ppowell/web/my/images/ in /users/ppowell/web/my/process.php on line 27 Phil - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "'Phil Powell'" <

Re: [PHP] mkdir() failed: Permission denied

2002-09-28 Thread Phil Powell
mkdir and uploading!! Phil - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "'Phil Powell'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, September 28, 2002 7:04 PM Subject: RE: [PHP] mkdir() failed: Permission de

[PHP] Need to get last element of 2-dimensional array

2002-09-28 Thread Phil Powell
The following produced a rather nasty parse error: echo ($idArray[0][sizeof($idArray[0])])); I have a 2-dimensional array $idArray that I must obtain the LAST element of that 2-dimensional array.. how do I do it? Thanx Phil

[PHP] Help! Can't set cookie or redirect!!!

2002-09-28 Thread Phil Powell
ARS["refURL"]); The first time I ran this script it set the cookie just fine; subsequent runnings of this script produce this error. What am I doing wrong, anyone? Thanx Phil

Re: [PHP] Help! Can't set cookie or redirect!!!

2002-09-28 Thread Phil Powell
xt", r) or die("Could not open file: $path/layout.txt"); $stuff = fread($layoutID, filesize("$path/layout.txt")); fclose($layoutID) or die("Could not close file: $path/layout.txt"); preg_match_all("/id=[\n]+\n/", $stuff, $idArray, PREG_PATTERN_

Re: [PHP] Help! Can't set cookie or redirect!!!

2002-09-28 Thread Phil Powell
Never mind, I found it.. *sigh* I forgot about phpinfo().. Everything works now, cookies, redirection, everything.. thanx! Phil - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "'Phil Powell'" <[EMAIL PROTECTED]>; <

[PHP] Reading a PHP-as-CGI script into another PHP script

2002-09-30 Thread Phil Powell
of a uniquely-formed URL such as http://valsignalandet.com/cgi-bin/cgiwrap/ppowell/php4.cgi/~ppowell/my/style.php into another PHP script since fopen and require() both do not seem to work in this case? Thanks Phil

[PHP] How do you strip Header Info from displaying on your browser?

2002-10-02 Thread Phil Powell
); // close the connection fclose ($fp); } return $ret; } I do not want to change WebGet as I wish to keep it a universal function that can be used for cookies or not. So, how can I get rid of the trash on my page? Thanx Phil

[PHP] chmod - some files can be viewed, others cannot

2002-10-14 Thread Phil Powell
three were uploaded the exact same way too. Anyone want to solve this riddle? I am stumped as usual. Thanx Phil

[PHP] Register Globals

2002-10-14 Thread Phil Ewington
ttpd/php.ini, so why is register_globals still set to 'off'? TIA Phil ---- Phil Ewington Technical Director 43 PLC 35 Broad Street, Wokingham Berkshire RG40 1AU Tel: +44 (0)118 978 9500 Fax: +44 (0)118

[PHP] Inserting special characters into text fields

2002-10-14 Thread Phil Schwarzmann
I need users to be able to insert special characters (ö and ä) into a text field. Unfortunately, English-speaking people do not have these keys on their keyboards. Currently, they are cutting and pasting these characters into the text boxes. I believe ASP can insert characters into text field

[PHP] mt_rand doesn't seem random enough

2002-10-14 Thread Phil Schwarzmann
Maybe I'm wrong on this but mt_rand doesn't seem to be random enough. I'm on a PHP 4.04 server and here's my code.. function make_seed() { list($usec, $sec) = explode(' ', microtime()); return (float) $sec + ((float) $usec * 10); } mt_srand(make_seed()); $randval = mt_rand(); I pul

[PHP] How to setcookie with two domains

2002-10-14 Thread Phil Powell
produce the desired results. Thanx Phil

[PHP] Inserting a variable into a mysql_query() statement

2002-10-14 Thread Phil Clark
I'm trying to insert the variable $hidden_manuf_id into a mysql_query() statement. If i do this: mysql_query("DELETE FROM product WHERE manufacturer=$hidden_manuf_id",$bb) or die(mysql_error()); PHP server doesn't see the variable because it is inside the string quotes"". If I do this: mysql_que

[PHP] Getting the highest number in a column

2002-10-15 Thread Phil Schwarzmann
Using PHP and a MySQL database, I want to grab the highest number in a particular column. Right now I have this VERY inefficient code to grab this number, there's got to be a better way. Does anyone have any ideas?? Thanks!

[PHP] seeding using mt_srand();

2002-10-16 Thread Phil Schwarzmann
Let's say you have a simple PHP file that just displays a random number. When the user hits the submit button, the page will reload and display another random number. How often do you need to call mt_srand(); ? Just once? Or each time the page gets reloaded?

RE: [PHP] seeding using mt_srand();

2002-10-16 Thread Phil Schwarzmann
Yeah, I read that,I'm using PHP 4.04...so I do need to see the random generator. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 11:35 AM To: Phil Schwarzmann; [EMAIL PROTECTED] Subject: Re: [PHP] seeding using mt_srand();

RE: [PHP] seeding using mt_srand();

2002-10-16 Thread Phil Schwarzmann
ailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 3:40 PM To: 'Phil Schwarzmann'; [EMAIL PROTECTED] Subject: RE: [PHP] seeding using mt_srand(); Hi Phil, > How often do you need to call mt_srand(); ? As of version 4.2.0 you don't have to call it at all. If your

[PHP] I'm in need of a PHP web host recommendation

2002-11-15 Thread Phil Schwarzmann
I am quite unhappy with my current web host provider (www.infinitehost.com ) and would like to hear some recommendations of some good companies that host PHP/MySQL and also JSP. I'm more than happy to shell out a few extra bucks to get some good service. Currently

[PHP] PHP search engines

2002-11-17 Thread Phil Schwarzmann
So I would like to make a search engine for my site. Can you use PHP to do this? Or is another language/application/whatever more appropriate?? If so, can you give me links to where I can find information on this topic. Thanks!!

[PHP] What is the best site for PHP news, articles, resources etc....

2002-11-19 Thread Phil Schwarzmann
Let's say you had one site and one site only to get the latest PHP/MySQL news, articles, reviews, resources, tutorials, advanced stuff etc. What would it be?!?

[PHP] Has anyone used O'Reilly's "Safari" online book thingy for PHP/MySQL?

2002-11-19 Thread Phil Schwarzmann
Has anyone used book publisher O'Reilly's new "Safari" online book site for PHP/MySQL books? I was hoping to use it so I could download whole books and possibly print them out.is it capable of doing something like this or is it next to impossible?

[PHP] Are objects considered global or do they need registered in a session?

2002-11-19 Thread Phil Schwarzmann
When declaring a new object ( $obj=new Something; ), do they need to be then registered in a session ( session_register("obj"); ) if you want to use them for a different script?

[PHP] Array question - Finding the name

2002-06-07 Thread Phil Schwarzmann
Let's say I have an array... $my_array[] = array('bob' => $x, 'jim' => $y, 'mike' => $z); Now I want to find the name of the second element in the array (I want my result to be 'jim') How do I do this? I think I might have to use the key() function but I can't quite get it to wkr. Thanks!

Re: [PHP] Array question - Finding the name

2002-06-07 Thread Phil Schwarzmann
ther. and key() isn't exactly what i want either.. >>> [EMAIL PROTECTED] 06/07/02 10:53AM >>> On Friday 07 June 2002 22:16, Phil Schwarzmann wrote: > Let's say I have an array... > > $my_array[] = array('bob' => $x, 'jim' => $y, &#

[PHP] mail() function hangs

2002-06-10 Thread Phil Schwarzmann
Whenever a user runs the mail function, an e-mail messsage is sent properly but the page just hangs. Has anyone else had this problem?

[PHP] multi-line textfields don't post

2002-06-10 Thread Phil Schwarzmann
Whenever I use a mult-line textfield, the data inside doesn't transfer over. But single-line textfields work just fine. how do i fix this?

[PHP] while...

2002-06-12 Thread Phil Reid
l ("[EMAIL PROTECTED]", "James Laird Website Order", $message); If anyone can be of assistance it would be very much appreciated. Regards, Phil Reid

[PHP] Creatng a PHP chatroom

2002-06-12 Thread Phil Powell
I am intrested in creating a chatroom entirely in PHP involving streaming text. Where can someone help me to find such a means of doing so? Thanx Phil http://valsignalandet.com

[PHP] php server on Windows

2002-06-13 Thread Phil Schwarzmann
So I'm thinking about setting up a little php/mysql web server here at work and want to use Windows as my platform instead of Linux and have a couple questions... I know that PHP on Windows has some limitations as compared to Linux. What are these limitations? Which version of Windows would b

[PHP] PHP Installation Win98/Apache error....

2002-06-14 Thread Phil Schwarzmann
So I'm trying to install PHP on win98 with Apache2. I got these nice instructions from... http://www.webmasterbase.com/article.php?pid=30&aid=525 After I make the following addition to my httpd.conf file, I get an error when I try to start Apache again... ADDITION TO HTTPD.CONF: LoadModule

[PHP] phpmyadmin - moving data from one database to another

2002-06-18 Thread Phil Schwarzmann
The lazy and worthless a-holes at www.infinitehost.com (my host server) are forcing me to move all my MySQL data from one server to another because they are too dumb to fix it. I need to use phpmyadmin to move the data but i'm not %100 sure how to do it. There are some "view dump" commands. It

[PHP] setting up a php/mysql server on linux

2002-06-18 Thread Phil Schwarzmann
I'm a Linux newbie. I just installed Linux Red Hat 7.2 successfully. I have some instructions to install php/mysql/apache and have a couple questions... Which is better, GNOME or KDE? I seem to like the feel of KDE better. Does Apache or php or mysql already come preloaded on Linux Red Hat?

[PHP] linux redhat rpm packages

2002-06-18 Thread Phil Schwarzmann
What exactly are these linux redhat rpm packages? Is this an 'easier' way to install mysql/php ??

[PHP] php server - ive installed linux red hat 7.2 — now what?!?

2002-06-18 Thread Phil Schwarzmann
okay, so I've installed linux red hat 7.2 and it's working well! ive heard that php/apache/mysql comes preinstalled with red hat. what do i need to do to get php/mysql up and running? also, how do i figure out my linux box's IP address? ipconfig doesn't work hehe. Thanks for your time!!!

  1   2   3   4   5   >