Hello all
Currently I have a web fom that has 3 field in it that I want writing to a
multidimensional array.
in my page that processing this I have currently:
while(list($key,$value) = each($address)) {
if(!is_array($value)){
echo "$value ";
}
else {
while(list($key,$value1) =
Thank you That works great!
At 11:56 PM 12/3/2002 +0800, Jason Wong wrote:
On Tuesday 03 December 2002 23:45, Dev wrote:
> Hello all
>
> Currently I have a web fom that has 3 field in it that I want writing to a
> multidimensional array.
>
>
>
>
> VAL
Hello all,
Let me first say thank you to Jason Wong and Adam Voigt for their help on
my problem with Multidimensional Arrays!!!
Now I am continuing on with the same script and I need to check for valid
IP address form.
Currently I have:
$ip="255.255.255.0";
if (preg_match ("/[0-9]{1,3}\.[0-9
Well after reading John'ss and DL Neil's replys i came up with 2 functions.
The first is to check to see if the entry is a valid IP address and the
Next is to determine if it is a Private Network IP or not!.
You can see this in action at:
http://www.my-tangled-web.net/codebank/code/ip_check.php
a
Hello All,
I have asked before about serial port programing with PHP and have gotten
great advice and now I am stuck again.
Okay here is my problem.
I want to have a php app executed upon a modem connection. Currently the
/sbin/login is what is executed.
Does anyone have any clues on this or
Need to ensure that your web sever is able to write to the location.
You may need to chmod the dir to 775 or even 777
hope that helps.
At 04:35 PM 11/22/2002 +, Vicky wrote:
Hi!
I'm using phpUpLoad but when I try to upload a file I get this error -
Warning: Unable to create '/home/silvers
We have a simple script which rotates and image to a random value, saves
it to a cache directory and displays it. For some reason when I move the
script from a Debian box over to the production CentOS machine, it no
longer caches any of the images. the rest works, but not the cache. If you
could lo
On Fri, 14 Sep 2007 10:10:09 +0200, Per Jessen <[EMAIL PROTECTED]> wrote:
> Per Jessen wrote:
>
>> To let a user script bring down the host environment is just not
>> acceptable. IMHO.
>
> Here's an example from this morning - I have a situation where all I
> need to do is add a single superfluou
Quoting Jochem Maas <[EMAIL PROTECTED]>:
hi guys,
I want to build php with firebirdDB (ibase) extension (for the purposes
of this exercise it could just as well be mysql) without installing firebird
on the local machine (i'm moving the DB to a seperate server) ...
I can't figure out how to do
Quoting jeffry s <[EMAIL PROTECTED]>:
some friend of mine ague about this matter, this morning. they say, saving
image in
database is more professional. I am not really agree with that,since i am
just a novice programmer. i am asking
senior php programmer what you opinion about this?
which one
Quoting jeffry s <[EMAIL PROTECTED]>:
thanks Richard ..
sorry dev.. i don't know this subject is quite sensitive here :(
It's not so sensitive :) It's just one of those questions that pop''s
up a lot. And some of those discussions were pretty heated.
This question is a two parter
a) anyone else noticing filetype() failing on ISO image files?
Warning: filetype(): Lstat failed for /var/lib/samba/some/file.iso
b) I have a script that during processing will eventually call
exec('/usr/bin/file -bi '.$file)
over 1000 times, I've added a co
On Thu, 12 Jul 2007 18:45:36 +1000, John Comerford <[EMAIL PROTECTED]> wrote:
> Hi Folks,
>
> Is there a better way of doing the following:
>
> $Rows[] = array();
> $currentRow = count($Rows) - 1;
> $Rows[$currentRow]['test'] = "this is a test";
>
> Specifically I am wonder if I can avoid having
Hello all,
I currently have a generic socket daemon running and doing what it should
but I am wondering if there is a way to have a php script act as a telnet
daemon?
Thanks to you all in advance!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
Hello all,
I am having a problem with getting multiple socket reads working in a
simple socket server!
The writes appear to be working but the reads seam to only allow one read?
I know i am missing something. Could even be my approach is totally wrong
Currently I have:
$input = socket
Hello,
I am working on a Socket script that needs to send a binary 0x1C to another
applicaiton that is connected to the socket. Any way in PHP to do this so
that I do not have to go and learn C++ over the weekend
Does anyone have a clue what needs to be done to make this work?
--
UMPA
Actually yes I have. Many times as a matter of fact.
What was happing was that the 0xC1 was being translated into it dec form of 28.
Thankfully i was able to resolve the issue by using:
pack("C",28)
But thanks Jay for the help!
At 03:29 PM 11/12/2004, Jay Blanchard wrote:
[snip]
I am working on a
I actually figure this out from the web site and had to use constant();
At 04:36 PM 12/13/2004, you wrote:
Hello all,
I am setting up a page that I would like to use DEFINE to retrieve more
information about abriviations in a database.
The database part all works just fine.
Currently i have a Def
Hello all,
I am setting up a page that I would like to use DEFINE to retrieve more
information about abriviations in a database.
The database part all works just fine.
Currently i have a Defiune setup of:
define("THS", "This is a test");
I also have a string value of
$that='THS';
When I echo out
speedboy wrote:
>
> What do people do with required files? I have a file called config.php
> which contains all my functions. It is 329526 bytes. Should I split this
> up into other files? I don't think so, but what do others think?
I too am curious about a recommended or best practice. I create
I need some help...I am helping a local business with a site which
needs to connect to a mssql db, my webhost uses linux and compiled php
with the freetds library and when I go to the info page..it does show
Microsoft SQL Server under dbx yet I still get the errors "called to
undefined function mss
<[EMAIL PROTECTED]> wrote:
> From: "blackwater dev" <[EMAIL PROTECTED]>
>
> >I need some help...I am helping a local business with a site which
> > needs to connect to a mssql db, my webhost uses linux and compiled php
> > with the freetds library and when
s have said, you need to compile PHP --with-mssql
>
>
>
>
> Blackwater Dev wrote:
> > No, I was using the mssql functions which I want to use.
> >
> > I tried the dbx functions example:
> > $link = dbx_connect('mssql', $mssqldbhost,"",$mss
appreciated.
thanks,
On Wed, 1 Sep 2004 08:29:55 -1200, blackwater dev
<[EMAIL PROTECTED]> wrote:
> We just tried again with the -mssql switch but it still doesn't seem
> to be therethe -mssql isn't on the info page...I don't have a
> clue...
>
> http://mwvr
wrote:
> -- Original message from blackwater dev : --
>
> > I have tried recompiling with --with-mssql and --with-mssql=/usr/include/freetds
> > It all appears to compile correctly, except the info page does not
> > reflect the config was done with mssql at all.
I have one on the shelf that I have never read titled:
PHP/MySQL Programming for the Absolute Beginner, no Experience
Required which might be worth a look.
Looks like they have one for php5 now also
http://premierpressbooks.com/ptr_detail.cfm?group=Programming&subcat=SQL&isbn=1%2D59200%2D494%2D6
Does anyone have a nice clean way to provide data grids with php short
of simply creating a bunch of input boxes or using flash?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
yeah, it needs to be on a front end site where the users can enter
their data easily...I will play with the new flash data grid component
some more.
Thanks!
On Wed, 8 Sep 2004 15:06:55 -0400, John Holmes <[EMAIL PROTECTED]> wrote:
> From: "blackwater dev" <[EMAIL PROTECT
Still no luck with thismy host has asked:
if someone has a (fedora core 2) RPM for us to install that has
freetds support built in?
Anyone have anything like this??
Thanks!
On Thu, 02 Sep 2004 07:45:00 -0700, Jon Bertsch <[EMAIL PROTECTED]> wrote:
>
> I didn't see it mentioned but if you
ep or something but don't know...it can't be this
hard.
On Mon, 13 Sep 2004 14:46:51 -0500, Greg Donald <[EMAIL PROTECTED]> wrote:
> On Mon, 13 Sep 2004 06:33:15 -1200, blackwater dev
> <[EMAIL PROTECTED]> wrote:
> > Still no luck with thismy host has asked:
&
I go the following code form phpfreaks..problem is, when I run it I
get a page not found error. I know jpgraph sends the image back to
the browser but why do I get page not found? If I force some syntax
errors, they will be displayed but this just doesn't seem to do
anything.
Thanks!
$db=new db
how did gmail get you blocked?
On Fri, 17 Sep 2004 11:48:53 -0700, Richard Whitney <[EMAIL PROTECTED]> wrote:
> Dear Rasmus,
>
> Could you please unblock 140.99.35.6 from the mailing list.
> I made a mistake once.
> I subscribed using Gmail and I hate it.
> Please forgive me.
>
> Richard Whitney
I just switched hosts and I am now working on all the stuff that once
worked but now doesn't. I have an image upload script with the
following code:
?method=upload&id='>
--sorry if you get this twice...it didn't seem to go through the first time--
I just switched hosts and I am now working on all the stuff that once
worked but now doesn't. I have an image upload script with the
following code:
?method=upload&id='>
Doesn't print out anything.
On Wed, 29 Sep 2004 05:32:32 +0800, Jason Wong <[EMAIL PROTECTED]> wrote:
> On Wednesday 29 September 2004 01:44, blackwater dev wrote:
>
> > Then, here is part of the code doing the upload:
>
> To be precise this is the part of the
What should I look for? I know globals are off...file_upload is on.
On Wed, 29 Sep 2004 10:08:31 +0600, raditha dissanayake
<[EMAIL PROTECTED]> wrote:
> blackwater dev wrote:
>
> >Doesn't print out anything.
> >
> >
> >
> >
> then try phpin
How can I take a string and create an array?
Example,
A12B05C45D34
I need to split this into chunks of three A12,B05,C45..etc?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks all!
On Wed, 29 Sep 2004 14:55:58 +0100, Chris Dowell <[EMAIL PROTECTED]> wrote:
> In PHP4
>
> $array = explode(';', chunk_split("A12B05C45D34", 3, ';'));
>
> In PHP4
>
> $array = str_split("A12B05C45D34", 3);
>
>
Hello all...
I finally have an upload script partly working but am not running into
this problem.
I have this code which executes when the user visits the image upload page:
if (!file_exists("../images/property_$id")){
mkdir("../images/property_$id", 0700);}
$upload_dir = "../images/propert
ROTECTED]> wrote:
>
>
> blackwater dev wrote:
> > Hello all...
> >
> > I finally have an upload script partly working but am not running into
> > this problem.
> >
> > I have this code which executes when the user visits the image upload page
Ok, I know images shouldn't be saved in the db but this isn't my db so
I can't change that. Does anyone know of a good tutorial to show me
how to grab these blog jpg's and display them in a browser?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.
Hello all,
I know I can use simpletest to test my application at the class level
but I need a tool to test it at a much higher level. I need something
to enter data in forms, click links, etc. I have played some with
simpletest's web tester without much luck. I am just curious how
others are ef
Has anyone been able to successfully send a text message using php and the
mail function?
It works fine if I open up thunderbird and send a message to
[EMAIL PROTECTED] but if I use the mail function:
mail("[EMAIL PROTECTED]", "test", "test");
It doesn't work. I've tried several different appr
Thanks for all the insights. It appears that it might have thought my email
was spam as I sent it from another server and it worked fine.
Thanks!
On 1/16/07, Jochem Maas <[EMAIL PROTECTED]> wrote:
also consider that there maybe a reverse lookup being done on the sending
MTA
that the sms gatew
I have the following code but when I hit the page, I get the xml error of
method '' not defined in service. I don't have a wsdl or anything defined.
Is there more I need to do to get the SOAP service set up?
Thanks!
include("nusoap/nusoap.php");
$server=new soap_server();
$server->register('ge
I've heard that there might be a php library or framework that allows you to
expose your code as a webservice with little to no extra code. I heard the
code could potentially also allow access via several different protocols.
Has anyone come across anything similar, or do I need to pick a specif
Does anyone have recommendations for an open source php based,
'lightweight', scheduling app? I just want something clean that I can use
to schedule trainings within our company. I need to be able to put in
details for each training and then see a synopsis on a calender. Just a
basic scheduler
I need to create some webservices for our web app and am really torn as to
which route to go...SOAP, XML_RPC, etc.? I like the looks of REST but many
of our partners that will be using our services use cold fusion and I think
that has build in SOAP support.
Which protocol would you use?
Thanks!
Is there a php function I can call to pass in a number and get the values
returned?
For example, pass in 7 and get 1,2,4 ?
Thanks!
A month or so ago I can across a php based open source community news
package. I can't seem to find it now...does anyone know of one?
Thanks!
Is there an easy way in php to round to the nearest 500?
So if I have 600, I 500 and if I have 800 I want 1000?
Thanks!
If I use add slashes, it strips everything, I just want to replace all the
double quotes with slash double quote but this, of course, throws errors:
str_replace(""","\"",$code);
Thanks!
I currently have an html page that posts to a cgi function. I need to
interject some php in the middle. So, the form will post to itself, the php
page will catch the post, check on thing and then pass along to the cgi page
but the cgi page only handles posts. How can I still php in the middle a
simple way would be to have php send the page to the client. Then,it
will
look for the response.
blackwater dev wrote:
> I currently have an html page that posts to a cgi function. I need to
> interject some php in the middle. So, the form will post to itself, the
> php
> page will cat
I'm working on a site where I need to allow someone to send me a text
message and let the code take their message and respond or post it in the
db. Can someone point me in the right direction on how this is done?
Thanks!
From: nitin reddy
To: php-general@lists.php.net
Sent: Fri, November 20, 2009 8:56:39 AM
Subject: [PHP] securing php pages
Hi I am a new user of PHP..in my project i have put login forms and i am
able to login successful but the pages after the login can be accessed
directly by typing the address
Our company is looking to hire a PHP Developer for a short term project.
We're currently in the last couple weeks of the interview phase to narrow
down our options. We are looking for a developer that is comfortable
working with existing code as well as creating new code. You must be
skilled in
Just to clarify, we are looking for a single developer, not a team please.
Thanks!
On Mon, Jun 14, 2010 at 12:46 PM, Dev Job wrote:
> Our company is looking to hire a PHP Developer for a short term project.
> We're currently in the last couple weeks of the interview phase to na
, Dev Job wrote:
> Our company is looking to hire a PHP Developer for a short term project.
> We're currently in the last couple weeks of the interview phase to narrow
> down our options. We are looking for a developer that is comfortable
> working with existing code as well as
Hi Gurus,
I am new to php and drupal both .
I have created two domains in drupal. and two different roles.
Now i wanted to show different page for each role.can you anybody tell me
how to do it.
Or share with me if something is readily available.
Thanks,
S
Hello,
I have installed php5 fine on my Fedora 3 box. I know need to
recompile to add in a feature and did the same steps as the install
./configure, make, make install which went fine but when restart
apache and go to the php.ini, my new configuration is not shown and
the code throws errors beca
just tried it with make clean and still didn't seem to take.
On Mon, 7 Feb 2005 16:22:37 -0500, blackwater dev
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have installed php5 fine on my Fedora 3 box. I know need to
> recompile to add in a feature and did the sa
Hello all,
What is the best way to do this? I have two arrays:
$cars=array("ford","chevy");
$models=array("ford"=>array("ranger","escape"),"chevy"=>array("malibu","tahoe"));
then I need to traverse both arrays:
foreach ($cars as $car){
//now I need to get into the models
Hello,
I have a very large php web app and I am curious as to what others are
using for testing. I know I can use simpletest to test at the code
level and also do some front end testing but I am looking for a nice
robust product to use to test the entire site. I mean to touch every
page, fill o
file_put_contents is only for PHP5 so if you are using PHP4, this won't work.
On Thu, 10 Mar 2005 04:26:41 +0200, Eli <[EMAIL PROTECTED]> wrote:
> Ross Hulford wrote:
> > I want to read a number from an external (txt) file and increment it.then
> > save the number back on the text file.
> > I kno
I want to check a string for only numbers and letters but am banging
my head with regex:
$good = "joh_'";
// Let's check the good e-mail
if (preg_match("/[a-z0-9]/", $good)) {
echo "Good";
} else {
echo "Bad";
}
This returns Good, why?
Thanks!
--
PHP General Mailing List (http:
Hello,
Running this code in Zend studio returns string(3) "mom";
class grandparent{
};
class mom extends grandparent{
};
class son extends mom{
};
echo var_dump(get_parent_class("son"));
However, the Zend certification book has a question like this and says
it should return grandparent...which
Hello,
Is there a good way to get the difference in two arrays and have both
values returned? I know I can use array_dif to see what is in one and
not the other but...I need it to work a bit differently.
I have:
$array1=array("name"=>"fred","gender"=>"m","phone="=>"555-");
$array2=array("na
Hello,
this works fine:
$name="fido";
$string="my dog's name is $name";
echo $string;//prints my dog's name is fido
but when I store the string "my dog's name is $name" in the db and pull it out:
//do the query
$row=$datab->fetch();
$name="fido";
$string=$name['db_column'];
echo $string//prints
Thanks for the info but I tried it both ways and get this error:
Parse error: parse error, unexpected T_FOR, expecting ',' or ';' in
dogs.php(11) : eval()'d code on line 1
On 5/15/05, Krid <[EMAIL PROTECTED]> wrote:
> Hi!
> Try
> eval("echo $s
I need to put together a car classifieds site and before I re-invent the
wheel was curious if anyone new of any good php driven OS packages
available. Does anyone have any recommendations?
Thanks!
Hello,
I have this nusoap service:
$server= new soap_server();
$server->register('authenticate_user', array(), array());
// Initialize WSDL support
$server->configureWSDL('authenticate', 'urn:authenticate');
// Register the method to expose
$server->register('authenticate_user',
te:
>
> this doesnt look like a wsdl file to me
> http://mysite.com/authenticate.php?wsdl
>
> -nathan
>
> On 10/2/07, blackwater dev <[EMAIL PROTECTED]> wrote:
>
> > Hello,
> >
> > I have this nusoap service:
> >
> > $server= new soap_serv
I have to write a script that will connect to a remove server using sftp and
pull in specific files for processing. Currently I can get to the server by
just using sftp [EMAIL PROTECTED] How can I open these files via php? Is the
only way to use fopen with the PECL sftp, ssh2 modules?
Thanks!
Sorry, thanks for the info!
On Dec 11, 2007 3:26 PM, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> [snip]
> Yes but will these handle sftp? I have a key on the other server so don't
> need a password.
> [/snip]
>
> http://us.php.net/manual/en/function.ftp-ssl-connect.php
>
> always reply to all so t
I'm working on a prototype now and was wondering if anyone new of a service
where I could pass in text and a number and the service would call the
number and read the text. I know I can do this with asterisk and it's php
api but don't have time to set up all the outgoing code/functionality. Does
I have a script that has to make a connection via sftp and read the contents
of a file. In the shell, I can simply type
sftp [EMAIL PROTECTED]
As I use the keys on the server so don't need a password. How can I make
this connection in php so I can get the data contents nightly? We installed
te
I have a text file that contains 200k rows. These rows are to be imported
into our database. The majority of them will already exists while a few are
new. Here are a few options I've tried:
I've had php cycle through the file row by row and if the row is there,
delete it and do a straight ins
}
$dataRow=NULL;
$colsToUpdate=NULL;
$colset=NULL;
$textData=NULL;
}
else{
//insert the row
$sql="insert into prelim_$table values (";
$sql.=trim($insert_data);
$sql.=");";
I know this isn't specific to php but I need to add some code to my php
pages to start sending out text messages. If anyone does this, how do you
do it? Do you simply use a free service like teleflip or do you use a paid
aggregator company?
Thanks!
Thanks,
We are basically just looking to prototype something with about 50 users for
now so I'll check these out.
Thanks again!
On Feb 5, 2008 12:30 PM, Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Mon, February 4, 2008 9:15 pm, blackwater dev wrote:
> > I know this isn
I'm using the google api to allow people to search the web via my site. The
pages are simply iframed within my site. Is it possible for me to give them
a 'save' button and let them save the page they are viewing in it's current
state? I don't mean save to their computer but I would use php to sa
st save the searhed url in a db field. next time you just
>> need call the iframe with the last or N search
>>
>> anyway if you still want to save all the searched page try using curl
>>
>> http://ar.php.net/manual/en/function.curl-exec.php
>>
>> saludos
I need to allow a user to upload a file. Once the file is up, I need to
then move it to another server and wsync it to our webclusters. What's the
best way to do this with php? I don't really want php issuing root
commands. I've considered storing the file in the db but really need it to
be sc
I have a method within an class that should make a copy of itself, do some
stuff on the copy and return it. The object contains data members that are
references to other objects. I basically want a brand new copy of the
object. The problem is, certain methods I call on the object throw this
err
Actually, the error seems to be coming with inner objects call some of their
methods. For example the object as a datamember that is a reference to
another object. When I clone it, I can't seem to call methods on the data
member object.
Thanks!
On 5/11/07, blackwater dev <[EMAIL P
Forgive me if this is a bit off topic but I currenly have several sites
hosted with dreamhost, it's cheap and well prone to be slow. Does anyone
have experience with mediatemple? I would just be running php/mysql sites.
Thanks!
I have a template system that takes some data, scrubs it and then with a
load method includes the required template. I need to add a param so it
doesn't simply include but returns the contents of the template in a string
with all of the vars populated. I tried:
ob_start();
include my template
We have short tags enabled as our templates work fine with them.
Thanks!
On 7/5/07, Larry Garfield <[EMAIL PROTECTED]> wrote:
If I understand what you're doing correctly, then it should work and I've
done
it many times. First thing you should do, though, is switch from short
tags
to proper ta
Hello,
I have an excel file that I am generating. If I copy over the generated
file and then open it in excel, it works fine, if I try to let the user
download it using the headers below, when I then open it excel complains
that it is an unrecognizable format and the info is garbled...any ideas??
Looks like I have an empty space somewhere...this code is called down in a
class and if I just cut this out and copy into it's own file and call that
file from the browser, it works fine. It is someone getting garbled down in
the class.
On 7/31/07, blackwater dev <[EMAIL PROTECTED
I have to register a bunch of names and am trying to figure out why I would
pay $35 when I can just pay $9 at godaddy. Does godaddy own it and I lease
it from them???
Thanks!
What do you all recommend for testing the gui side of your php
applications? I've played with badboy a bit but we all run linux here at
work and I was looking for something more robust and would live to find a
free/inexpensive tool. I've also tried SimpleTest for the ui side but it
seemed to be
I have a web server and an images server. My web server doesn't have
enought space for the images, hence the images server. I have to download
properties from a realty database hourly and the data goes in to a db on my
webserver while the image needs to be taken from a MSSQL db and written to
th
Hello all,
When I try to send email from my server as html, my yahoo account and
several of my user's email accounts mark it as spam. I can send a normal
email via mail() just fine but when I try to to html, it's bad. I've played
with a few things but can't seem to figure it out. The html I am
Ok,
I am using a hosted server and php is installed from the linux distro. I
usually have all the stuff in a php file somewhere so I can just go back
./configure, etc. I can't seem to find the configure for php on this box so
I can recompile but I know it is there as I can use php and see the v
Ok, doing that now and it's taking a while. I can do phpinfo but that tells
me the config line and where the ini files are, not necessarily where the
configure stuff is to recompile...correct?
On 8/7/06, Jochem Maas <[EMAIL PROTECTED]> wrote:
blackwater dev wrote:
> Ok,
&g
Hello,
I have a site that was coded a while ago. I was just told that the admin
side no longer works. I looked and the host recently put php 4.4.2 on the
site. I have tried a few things but nothing seems to work. The problem is
once you log in the admin page always kicks you back, doesn't see
Sorry if you are getting this multiple times, email is acting a bit screwy.
Nope. still doesn't work. Sessions just aren't saved.
On 8/9/06, Jochem Maas <[EMAIL PROTECTED]> wrote:
blackwater dev wrote:
> Hello,
>
> I have a site that was coded a while ago. I was
It doesn't matter if I just surf to the page and they do seem to get the
same phpsessionid..interestingly enough the first three cars are 'BAD'. Not
sure if the path is writable through.
On 8/9/06, Jochem Maas <[EMAIL PROTECTED]> wrote:
blackwater dev wrote:
> Sorry
1 - 100 of 183 matches
Mail list logo