[PHP] php Slow with Mac OS X 10.4

2005-09-14 Thread Nicolas Ross
Hi all ! Here, we've got several Mac computer acting as servers to serve many kinds of sites. One of wich was running, until the middle of august, Mac OS X 10.2. It was then with apache 1.3.x, and php 4.3.10 dso. All things were normal. At the middle of august, we upgraded to Mac OS X 10.4

Re: [PHP] php Slow with Mac OS X 10.4

2005-09-14 Thread Nicolas Ross
Now, in a different server room, we have a set of 3 xserves cluster node dual g5 with 4 gigs of ram each. One of them was upgraded to Mac OS X 10.4 (server) and the other 2 are still with 10.3. If I take the same setup (same compile options, same versions) on these machines, the exact same

Re: [PHP] php Slow with Mac OS X 10.4

2005-09-14 Thread Nicolas Ross
In all cases, it was the same httpd.conf. Of course, from apache 1 to 2 there where differences, but basicly it's the same. your description gives the impression that there is a DNS configuration problem... like apache is trying for 5-10 seconds to look something up, fails and then finally

Re: [PHP] php Slow with Mac OS X 10.4

2005-09-14 Thread Nicolas Ross
this page eats close to 100% of 1 cpu. Nicolas - Original Message - From: Brent Baisley [EMAIL PROTECTED] To: Nicolas Ross [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Wednesday, September 14, 2005 10:46 AM Subject: Re: [PHP] php Slow with Mac OS X 10.4 There are two thing

[PHP] A tricky little addition

2005-09-14 Thread Ross
Hello, If I have a variety of submit buttons all called 'add' but with different vaues, (food types fish, pork, beef ) I want to feed this into a function to increment the corresponfding cookies value by 1. This is what I have so far if (isset($add)){ $variable= $.$add; echo the variable

[PHP] setting 'expiry date'

2005-09-12 Thread Ross
DATE_FORMAT(time, '%d.%m.%Y') AS time, article, id FROM news ORDER BY id DESC; The expiry date is entered through a javascript widget and is in the format dd/mm/. thanks, Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Rotating images from a folder

2005-09-08 Thread Ross
Hi, I am looking to rotate 6 or 7 different images from a folder onto homepage. So I need 2 things (i) The method of upload an image from a specified folder. (ii) The way to randomise this action Any tutorials or pointers will be helpful.. R. -- PHP General Mailing List

[PHP] calling PHP self with a text link

2005-09-02 Thread Ross
Hi, I want call the current page and set a variable (or call a function) a href=index.php?variable=bananas -this works but means I have to change it for every page name I have tried a href=? $PHP_SELF(); ?this is the link/a Only works within a form tag. Any ideas - no javascript solutions

[PHP] Re: calling PHP self with a text link

2005-09-02 Thread Ross
a href=? echo $PHP_SELF,'?','action=something' ?do somehthing/a this seems to work but can someone explain the syntax to me what does a '?' and a ',' do in PHP? I thought you joined strings with a full stop '.' (a period if you are from the US). R. Ross [EMAIL PROTECTED] wrote in message

[PHP] time and timestamp

2005-08-30 Thread Ross
Hi, I have a row in myslq database called time and is just a simple timestamp column When I echo it out echo $row['time']; echo $row['content']; I get the following 2005-08-30 13:50.05 this is the text content Now I am not worried about the time but I would like to know how to (i) sort

[PHP] displaying certain number of character

2005-08-30 Thread Ross
$words= If length is given and is negative, then that many characters will be omitted from the end of string (after the start position has been calculated when a start is negative). If start denotes a position beyond this truncation, an empty string will be returned. ; echo substr($words,

[PHP] displaying certain number of character

2005-08-30 Thread Ross
$words= If length is given and is negative, then that many characters will be omitted from the end of string (after the start position has been calculated when a start is negative). If start denotes a position beyond this truncation, an empty string will be returned. ; echo substr($words,

[PHP] syntax for multiple boolean

2005-08-27 Thread Ross
I want to check if multiple fields are empty and want to find the best shorthand way to do it. What are the rules with brackets in PHP. if (empty ($fname){ //do something } if (empty ($sname){ //the same thing } if (empty ($address){ //do the same ting again } R. -- PHP General

[PHP] php solution to html problem

2005-08-24 Thread Ross
I have a table which I put php data from a database. If i have a name 'thisisaveryverylongfirstname' the table stetches to fit the name. Is there any way I can force it to wrap to a fixed width of 100px?? If I put a space in BR the text wraps. How can I do this at character 30 of the string?

[PHP] wrapping problem continued

2005-08-24 Thread Ross
Have been given the solution and applied it to the code ?php $new_string = wordwrap($row['fname'], 20, br /\n);echo $new_string; ? Why does it not work? R. while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){ ? td width=100 height=40 bgcolor=#99FF33?php $new =

[PHP] trying to get phpmail to send an attachment

2005-08-24 Thread Ross
I get an error saying Fatal error: Function name must be a string in c:\Inetpub\wwwroot\ssn\php_mail.php on line 11 the code --- ?php if (isset($submitted)){ echo hello; require(class.phpmailer.php); $mail = new PHPMailer(); $mail-IsSMTP(); // telling

[PHP] when sending an attachment the file is a temp

2005-08-24 Thread Ross
When sending an attachment using phpmail the file I am trying to send becomes a temp with a stupid name (php13c9.tmp) Do you know is going on here?? PHP mailer attachemts are for a 'path to file' which I am trying to provide via a file browse button ($userfile) in a form. Many Thanks, R

[PHP] imagecreatefromstring

2005-08-22 Thread Ross
Hi, i am trying this out of curiosity and get sme errors My gd extension is set up in the correct folder. This is my script header(Content-type: image/png); $string = 'hello'; $im= imagecreatefrompng(images/button1.png); $orange = imagecolorallocate($im, 220, 210, 60); $px=

[PHP] mail will not send attachment

2005-07-21 Thread Ross
$PHP_SELF; ? METHOD=POST ENCTYPE=MULTIPART/FORM-DATA name=ross id=ross div align=left p INPUT TYPE=HIDDEN NAME=action VALUE=send_mail /p pnbsp; /p /div table width=707 border=0 cellpadding=0 cellspacing=0 tr

[PHP] mysql problem- I know it isn't strictly php

2005-07-19 Thread Ross
Hi all, I am trying to create a table on the remote server but it never seems to work CREATE TABLE `sheet1` ( `id` int(10) NOT NULL auto_increment, `title` varchar(255) NOT NULL default '', `fname` varchar(255) NOT NULL default '', `sname` varchar(255) default NULL, `job_title`

[PHP] re-order a sql result

2005-07-18 Thread Ross
=right_linestrongFirstname/a/strong/td td class=right_linestrongSurname/strong/td td class=right_linestrongOrganisation/strong/td hope this is clear. Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] searching multiple fields

2005-07-14 Thread Ross
Is there a way to use like to search various fields at one time. For example I want the search field to search by name or area or organisation. If the (minimum)three letter string matches any of these I want the record to show. $search_field is my textbox $query = SELECT * FROM sheet1 WHERE

[PHP] $PHP_SELF or echo $PHP_SELF

2005-07-14 Thread Ross
Hi PHPers, Just a quick thing that is bugging me. In some of my older textbooks a form is returned to the same page by using echo $PHP_SELF no just $PHP_SELF is this just used in older versions of php?? Does the it make a difference what one is used? Ta, Ross

[PHP] getting the email addresses in a sendable format.

2005-07-11 Thread Ross
Hi, I have a database of 300 email addresses retrieved with a select statement. while ($row=mysql_fetch_array($result)) { $email_addresses[] = $row['email']; } But I have having trouble assiging them to the variable $recipients. Really what i want is to convert $email_addresses[0] =

[PHP] error when trying to delete a record

2005-07-11 Thread Ross
I dunno if my text book is out of date or I have made a syntax error but I am trying to delete a record with $query= DELETE FROM sheet1 WHERE id=$id; $result= mysql_query($query); if($result){ echo it was deleted; } else echo mysql_error(); } and I get the followign sql error

[PHP] alternative to empty

2005-07-06 Thread Ross
I have been using empty in forms for some time now. but have just discovered that PHP 4 As of PHP 4, The string value 0 is considered empty. Is there an alternative that will just check for empty strings. I suppose I could just use eregi and check for numbers but thought there may be

[PHP] is there way to pass an array( or variables) to another page without sessions or cookies?

2005-07-05 Thread Ross
is there way to pass an array( or variables) to another page without sessions or cookies? Thanks, R.

[PHP] RE: is there way to pass an array( or variables) to another page without sessions or cookies?

2005-07-05 Thread Ross
Message - From: Ross [EMAIL PROTECTED] Newsgroups: php.general To: php-general@lists.php.net Sent: Tuesday, July 05, 2005 1:09 PM Subject: is there way to pass an array( or variables) to another page without sessions or cookies? is there way to pass an array( or variables) to another page

[PHP] setting initial vlaue of optionbox

2005-07-03 Thread Ross
I want to keep the value of the listbox to submitted value. To do this when using a text area I use the code INPUT NAME=mail_subject value=?=$subject; ? SIZE=40 The line value=?=$subject; ? Keeps the value of $subject that was previously entered in the textarea even after the form is

Re: [PHP] Re: x years old

2005-07-02 Thread Colin Ross
and for completeness of the topic, ceil() will round fractions up. i.e. ceil(16.1) = 17 ceil(16.0) = 16 attempted-humor I think the Credit Card Industry using ceil() alot ;P /attempted-humor On 7/2/05, Jasper Bryant-Greene [EMAIL PROTECTED] wrote: Ryan A wrote: Hey guys, This is

[PHP] turn off the www

2005-06-29 Thread Ross
now. I am using the following code to turn http into https and get my ssl working. if($HTTP_SERVER_VARS[HTTPS] != on) { $newurl = https://; . $_SERVER[SERVER_NAME] . $_SERVER[REQUEST_URI]; header(location: $newurl); } However I set the ssl up on http://mydomain.com not

[PHP] force https

2005-06-28 Thread Ross
Hi, I need to force the url from http://mydomain.com to https://mydomain.com, so my ssl is active. Anyway this can be done with php? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Stop spreading PEAR FUD; WAS Re: [PHP] Re: PHP web archeticture

2005-06-25 Thread Colin Ross
I don't think a lot of people think tat PEAR sucks, we are all, as a community, just looking for ways to make it better. C On 6/25/05, Chris Shiflett [EMAIL PROTECTED] wrote: Matthew Weier O'Phinney wrote: The perl culture is one that includes testing and documentation as the norm You

[PHP] fopen problem

2005-06-23 Thread Ross
I have a bit of a problem when using fopen, fwrite and fclose locally I get the flowing warnings Warning: fopen(counterlog.txt) [function.fopen]: failed to open stream: Permission denied in c:\Inetpub\wwwroot\pillars\index.php on line 30 Warning: fwrite(): supplied argument is not a valid

Re: [PHP] php - jscript - onclick event..

2005-06-22 Thread Colin Ross
First of all, I _think_ this is more of a javascript/jscript question than a php one. Are you just trying to make a javascript call from php onload? If so, i'm pretty sure you can use window.onLoad in a script block in the head. Also, be sure to set your scripting type in the onclick. i.e.

[PHP] GD library images not displaying

2005-06-21 Thread Ross Trewhella
error: Call to undefined function: imagecreatetruecolor() in imagetest.php on line 2 This code works on other servers, so where have I gone wrong in my installation of GD? Thanks in advance, Ross

[PHP] Problem with array

2005-06-17 Thread Ross
As with my previous post the problem is the pieces of the array can vary from 1 to 4 items. So pieces 3 and 4 are often undefined giving the 'undefined index' notice. All I really want to do is display the array pieces if they EXIST. But as they are inside a echo statement so I can't even to a

[PHP] form inside an email

2005-06-14 Thread Ross
? If this can be done in php then great. If not any other suggestions are welcome. Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] include file and problems with headers

2005-05-26 Thread Ross
it works fine. This is no big deal but it is annoying me! why does this not work. I have also tried require_once include_once() but nothin works. Later on in the page there is a form which sets some cookies and uses php_self() to send the data to itself. Ross -- PHP General Mailing List (http

[PHP] setting browscap.ini

2005-05-19 Thread Ross
Hi, My isp won't give me access to the php.ini file and they insist you can set browscap.ini up using the .htaccess file. I don't reeally believe this is possible. any ideas? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sending a string with $_POST/$_GET

2005-05-17 Thread Ross
I want to write a string to a variable and use $_POST or $_GET to retrieve it on another page. I keep gettting an undefined index errror. Can someone show me how this is done? Do I have to use session_start() ? Have checked the documentation, can't find a really basic example. R. -- PHP

[PHP] carriage returns in php mailer

2005-05-12 Thread Ross
Hello, http://scottishsocialnetworks.org/mailer.phps I have a php mailer that takes in some text from a text box and puts in in an email. The problem is the body text is assigned to a variable to be put in the email but it does not pick up the returns. How do i do this?? R. -- PHP

Re: [PHP] Saving of buffers, from a security standpoint

2005-05-12 Thread Colin Ross
, Colin Ross said: at this point, I'm planning on (at least on production) turning off all error reporting, I am using PEAR::ErrorStack mainly for error handling, which I love using btw... all I'm trying to do is make sure that no information gets outputed from the script, even if some

[PHP] Saving of buffers, from a security standpoint

2005-05-11 Thread Colin Ross
I am working on a bit of code for credit-card processing, so please keep in mind, security of the data is essential.. On part of it i wish to use a buffer, but i wonder if that data is saved anywhere on the running system (as a temp file, etc), or is it just held in the system's memory? My

Re: [PHP] Saving of buffers, from a security standpoint

2005-05-11 Thread Colin Ross
10:02 am, Colin Ross said: I am working on a bit of code for credit-card processing, so please keep in mind, security of the data is essential.. On part of it i wish to use a buffer, but i wonder if that data is saved anywhere on the running system (as a temp file, etc), or is it just held

[PHP] using header ('Location:) to pass varaiables

2005-05-10 Thread Ross
Is it possible to send variables using header() ? I have tried variations on the theme header ('Location: email_confirm.php?email=$email); but nothing seems to work. Ta, Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] setting up browscap.ini with .htaccess

2005-05-09 Thread Ross
I would like to use browscap.ini, I believe you can override the php.ini file values with a php_value line in a .htaccess file. Is this possible? Is so how? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] browser detect and redirect

2005-05-08 Thread Ross
I want to redirect anyone not using ie 4+ as there browser. Is this possible with php? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] insert not working

2005-05-05 Thread Ross
$query = INSERT INTO sheet1 (title, fname, sname, job_title, organisation, street, postcode, city, telephone, mobile, fax, email, web, add_info) VALUES ('$title', '$fname', '$sname', '$job_title', '$organisation', '$street', '$postcode', '$city', '$telephone', '$mobile', '$fax', '$email',

[PHP] is this the correct syntax

2005-05-05 Thread Ross
Am trying to do an update of a record... Is this the correct syntax.. $query= UPDATE $table_name SET fname='$fname', sname='$sname' WHERE id= $id; R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] re: insert not working

2005-05-05 Thread Ross
Just a type error -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error suppression operator (@)

2005-05-04 Thread Colin Ross
Pretty much the only time i use it is form processing... so i don't get a bunch of errors when someone doesn't fill out a (non-required) field.. Also i use it to prefill form data is i have a session running, ie. input name=fname type=text value?php echo @$_SESSION['APP']['fname']; ? / like

[PHP] possible to use eregi instead of LIKE

2005-05-02 Thread Ross
Is it possible to use eregi instead of LIKE to filter mysql queries? If so can someone do a quick example? Many thanks, R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread Ross
you understood John John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jay Blanchard wrote: snip Why you'd want to do it this way beats me, the overhead is a lot bigger than doing it in the query. /snip I _think_ he was asking if he could use some sort of pattern

Re: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread Ross
you understood John John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jay Blanchard wrote: snip Why you'd want to do it this way beats me, the overhead is a lot bigger than doing it in the query. /snip I _think_ he was asking if he could use some sort of pattern matching

[PHP] just going with LIKE

2005-05-02 Thread Ross
Had a look at it and much easier to use LIKE with wildcards. Was unsure whether the query was case sensitive that is why I asked. As it turns out it is not. R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mail problem

2005-04-29 Thread Ross
I get the following mail problem when trying to send from localhost. Any ideas? Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] in c:\Inetpub\wwwroot\ssn\adv_mail.php on line 179 R. -- PHP General Mailing List (http://www.php.net/)

[PHP] inserting an auto incemented column in table already created

2005-04-29 Thread Ross Hulford
Hi, I have a table with 15 columns or so that has been inherited from an older db and am trying to insert an auto increment column (in mysql) without having to number it manually. This is fine when I add new colums via a form but the old entries have a null value Alternatively It has been

[PHP] Getting Credit card details

2005-04-26 Thread Ross
accepted. Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] stripping of the last character

2005-04-18 Thread Ross
thanks, Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] putting the results of a query inro an array

2005-04-18 Thread Ross
how can I put the results from the following query into two arrays? The only fields are 'name' and 'email' $query = SELECT * FROM contacts; $result= mysql_query($query); $number= mysql_num_rows ($result); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] trying to load mysql extensions

2005-04-13 Thread Ross
is running ok. Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] phpmyadmin blank screen.

2005-04-13 Thread Ross
Thanks for the replies to my php_mssql problem. I have a problem that when I try and run phpmyadmin locally the screen is just blank. Any ideas? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sessions not being stored

2005-04-07 Thread Colin Ross
--- On Thu 04/07, Colin Ross [EMAIL PROTECTED] wrote: From: Colin Ross [mailto: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Thu, 7 Apr 2005 13:19:49 -0700 Subject: Re: [PHP] sessions not being stored does the user that is running apache (i.e. 'apache' by default) havebrRW access

Re: [PHP] PHP 5 Status

2005-04-02 Thread Colin Ross
ok, thanks for your input. now to make a roll-out plan for upgrading... Colin On Apr 1, 2005 1:17 PM, Jordi Canals [EMAIL PROTECTED] wrote: On Apr 1, 2005 8:30 PM, Colin Ross [EMAIL PROTECTED] wrote: Is PHP 5 ready for production environments? Is it concidered stable, or is it just

Re: [PHP] PHP 5 Status

2005-04-02 Thread Colin Ross
Now, as far as I know though, there are still issues with Apache 2 and PHP-libraries, correct? On Apr 2, 2005 11:38 PM, Colin Ross [EMAIL PROTECTED] wrote: ok, thanks for your input. now to make a roll-out plan for upgrading... Colin On Apr 1, 2005 1:17 PM, Jordi Canals [EMAIL

[PHP] PHP 5 Status

2005-04-01 Thread Colin Ross
Is PHP 5 ready for production environments? Is it concidered stable, or is it just a matter of going a while with no new bugs discovered to get to stable.. Colin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to sort that array?

2005-03-29 Thread Colin Ross
What I did in a situation like this (much more complicated though, with nested select boxes in a form) was use a database, and then created a php-created javascript file. The javascript file was buffered, and then cached (saved to a file) with a timestamp... So, I can limit the amount of times the

Re: [PHP] Session data disappearing?

2005-03-29 Thread Colin Ross
In edit_schedule.phps: if (isset($_POST['add_available'])){ $year = $_POST['year']; $year = $year['NULL']; $month = $_POST['month']; $month = $month['NULL']; $day = $_POST['day']; $day = $day['NULL']; $time =

Re: [PHP] PHP CODE TO DISPLAY ISP

2005-03-29 Thread Colin Ross
and least we forgot about all the users coming from behind a proxy farm with a different ip for each request.. cough AOL /cough C On Mon, 28 Mar 2005 12:28:32 -0700, Leif Gregory [EMAIL PROTECTED] wrote: Hello jenny, Monday, March 28, 2005, 9:36:07 AM, you wrote: j i am making a website in

Re: [PHP] php + mysql: binary arrays

2005-03-29 Thread Colin Ross
oops.. how bout if i send it to the group too... http://us4.php.net/manual/en/function.preg-split.php example for you: $groups = '0101000100101010001110010100111'; $groups_array = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY); print_r($groups_array); $groups_as_string =

Re: [PHP] NEWBIE: Can't Get My Loop Going. . .

2005-03-29 Thread Colin Ross
i was thinkin in more general term too, what about: $data = readfile($file); /// etc, etc, etc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I destroy parameters by page

2005-03-25 Thread Colin Ross
on a side note, for devs, i don't really like how you can override the values of the $_GET (or $_POST) array, seems like it could be a security threat. Also, with that ability, you can never tell (especially if you are making a mod, etc for a larger system) if what your dealling with is the ACTUAL

Re: [PHP] Pagination

2005-03-25 Thread Colin Ross
watch out for SQL injection attacks on that one though: what if the 'user' went to page.php?start=1;SELECT * from `mysql`; On Thu, 24 Mar 2005 22:55:01 +0100, pavel [EMAIL PROTECTED] wrote: I am wanting to paginate records from a MySQL Database. I want there to be 5 records on a page, on

[PHP] Regex

2005-03-20 Thread Colin Ross
I'm trying to compress down a php-powered javascript file. In the file i have php run a bunch of loops and foreaches to build huge nested arrays for use in the javascript. Since this will be an often loaded page with ALOT of backend processing, I've decided to compress the file as much as I can

[PHP] showing the decimal places

2005-03-16 Thread ross
when I define a number as $number = 2.00 then echo it the number shows as 2. How can I get the two zeros to show? This is not in any of my books but a fairly easy solution I'll bet! R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] password Boxes

2005-03-14 Thread Ross Hulford
Does anyone know how to change the style of password boxes so when the characters are entered an asterisk appears rather that a smal circle? Or is this just determed by the OS and uncangable with CSS or Javascript of PHP? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] passing variables between pages without sessions

2005-03-13 Thread Ross Hulford
I am creating a form but instead of having a long form I want to break it down into a few stages but need to pass the variables bewteen the pages. I have done this before using sessions but would like to know if there is an alternative way to do this? R. -- PHP General Mailing List

[PHP] eregi expression for checking a domain

2005-03-13 Thread Ross Hulford
Does anyone know a working eregi expression for determining a domain is valid? don't need the http:// just looking for www.thedomain.com cheers, R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP hangs when exec'ing SSH

2005-03-12 Thread Ross Becker
hope that this was my system configuration, and not something fundamental in how PHP or worse- SSH acted. Ross Rasmus Lerdorf wrote: Ross Becker wrote: I think you're probably right. My gut is telling me that this has to do with tty funkiness. I tried the batchmode option, but it didn't affect

[PHP] showing an image with php

2005-03-11 Thread Ross Hulford
I want to asssign an image to a variable and show it if certain conditions are met. E.g If condition is met { $myimage= retrieve image (images/myimage.jpg) echo $myimage } Have not used image creation before with php just dipping my toe in the water. Thanks R. -- PHP General Mailing

Re: [PHP] incrementing a number from a text file

2005-03-11 Thread Ross Hulford
I am just going to adda auto incrementing DB filed and get the numbers that way. Seems the best way. Kim Madsen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, March 10, 2005 10:14 PM To: Ross

Re: [PHP] Re: PHP hangs when exec'ing SSH

2005-03-11 Thread Ross Becker
a system or whatever. --Ross Rasmus Lerdorf wrote: Ross Becker wrote: There's no output (besides the numeric return code) from SSH which I care about- there shouldnt be anything coming back via stdout or stderr. If there is, I'm happy to discard it. This SHOULD be a dead-nuts-simple case

[PHP] Re: PHP hangs when exec'ing SSH

2005-03-10 Thread Ross Becker
that it all works when PHP runs in CLI mode. --Ross Jamie Alessio wrote: I'm attempting to execute some things on remote servers using ssh, using a strictly limited account created for this express purpose. I set up passwordless key authentication from the user the web server runs as to the limited

[PHP] Re: PHP hangs when exec'ing SSH

2005-03-10 Thread Ross Becker
if they experience results which are the same or different. --Ross Jamie Alessio wrote: There is no output to stderr or stdout from the script being executed. All I care about are the side-effects of running this remote program. If something fails, a numeric error-code will be returned. Ross, Since you don't

Re: [PHP] Re: PHP hangs when exec'ing SSH

2005-03-10 Thread Ross Becker
the same public/private key authentication under SSH as I do when the script runs as a web page. It is not involved in what the php code runs. Take a look at the bug report to see a completely reduced test-case which reproduces the problem I'm seeing. --Ross Richard Lynch wrote: I actually do

Re: [PHP] Re: PHP hangs when exec'ing SSH

2005-03-10 Thread Ross Becker
which I care about- there shouldnt be anything coming back via stdout or stderr. If there is, I'm happy to discard it. This SHOULD be a dead-nuts-simple case of exec the command and wait for it to return. --Ross Richard Lynch wrote: I'm really not sure what you're asking here. I've created

[PHP] incrementing a number from a text file

2005-03-09 Thread Ross Hulford
I want to read a number from an external (txt) file and increment it.then save the number back on the text file. I know this is possible but want a simple amd economical way to do this. Thanks, Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] PHP hangs when exec'ing SSH

2005-03-09 Thread Ross Becker
code when this should be doable with what is already on the system. Efficiency is not a concern in this case, either. Cheers Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] using lists in php and sending

2005-03-08 Thread Ross Hulford
I have a list in php where the user can select 1 or more (rooms book in a bb). The following code is part of the form. select name=rooms size=7 multiple option value=Single StandardSingle Standard/option option value=Single

[PHP] A more ecconomical way with control statements??

2005-03-07 Thread Ross Hulford
taking values from 0-9. Thanks Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] using javascript within php

2005-03-07 Thread Ross Hulford
I want to set focus on a text area with javascript if the entry by the user is not what I want. This is what i have so far. ?php if (isset($submitted){ if(empty($name)) { $fname_error = *Please Enter your firstname or initial; //the code to set focus to the textbox should go here } } ?

[PHP] call anchor from php

2005-03-07 Thread Ross Hulford
Is it possible to call a named anchor from within a php script?? I need my page to go to the point in the page where the form is and bypass all the rubbish. Thanks y'all -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] retrieve single field from database without while loop

2005-02-16 Thread ross
it to a variable so I can use it on my php page. Thanks in advance, Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] calling php function when submit button is pressed

2005-02-14 Thread ross
Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Fancy Form processing Ideas

2005-02-14 Thread ross
I am looking for interesting approaches to form submissions and error checking in the forms. Thanks, Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Unable to load dynamic library 'C:\PHP\ext\php_mssql.dll'

2005-02-13 Thread ross
I have solved this problem before but cannot remember how. The php.ini is set up any ideas?? Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Unable to load dynamic library 'C:\PHP\ext\php_mssql.dll'

2005-02-13 Thread ross
I have solved this problem before but cannot remember how. The php.ini is set up any ideas?? Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Expression for deleting all cookies

2005-02-04 Thread Ross Hulford
Is there a single bit of code for scrubbing all the cookies or do I have to do setcookie (name, ) for all of them?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] check server status...please help

2005-01-26 Thread Ross Hulford
point me in the right direction? Kind regards, Ross Hulford -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   4   5   >