..
>> is it the case that unset() does not trigger an error or throw an
> exception
>> if it's argument was never set?
>>
>>
>
>
What!?!?
No, It does not cause an error, not even a notice.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
om http://ancientstones.com http://earthstones.com
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
Certain posts of mine seem to get sucked into a black hole and I never
see theme. Maybe because I use this list as a newsgroup? Anyway, what
I posted before:
Match everything but only replace the backreference for the words:
$s = "cats i saw a cat and a dog";
$r = preg_replace('#.*?(cat|dog).*?#', '\1', $s);
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ds() method actually returns. You should do a
var_dump($rs->Fields(22)) to see. If it returns a string (especially
"NULL"), then this or some variation should work:
$q4 = $rs->Fields(22);
if($q4 == "NULL"){
$q4 = "";
}
If it returns an empty string or false then you may have nothing to do.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Shawn McKenzie wrote:
> First off, if the value is NULL in the database then in PHP it will be
> the string "NULL" and not a null value as far as I remember. Second,
> you cant use a function/method in empty(). Thirdly, the string "NULL"
> is not empty. I'
extget');
> if(isset($_SESSION['postvars'])) {
> //load the POST variables from the session
>
> // Error on this line below!
> $this = unserialize($_SESSION['postvars']);
> session_unregister('postvars'); //delete the session
Shawn McKenzie wrote:
> John Stoffel wrote:
>> Hi,
>>
>> I'm looking for some help with PHP5.2.x hacking on a web site to
>> cleanup how the user submitted search form is handled. Basically I
>> want to make it simple for the end user to a) refine their que
s because most libraries on that
platform tend to be threadsafe.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
der to fit the MTU of a
different network, then the IP stack on the receiving end will
reassemble the fragments based upon information that the router injects
into the fragments.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ilure
messages. If that's not bad enough, consider if the from address is a
legitimate domain but nonexistent user, then the server that receives
the failure messages sent to the nonexistent user may issue its own
failure messages back to the other nonexistent users, and maybe back and
forth
ble with a row for each user/permission combination
>
>
>
> Thanks!
>
>
>
> John
>
I'm not sure about "best", but I kind of like the way CakePHP does it:
http://book.cakephp.org/view/465/Understanding-How-ACL-Works
--
Thanks!
-Shawn
http://w
mike bode wrote:
> I have posted the question in another thread a bit down, but only buried
> within the thread, so please excuse me when I ask again.
>
> I want to use some PHP code from a web site
> (http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm), and I am
> following their instru
oping someone here will point me in the right direction.
Just to throw it into the mix:
if(!empty($_POST)) for a general test of whether any form was posted.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it related to
> "session" and what I should define in '/etc/php.ini'?
>
> Please tell me my mistake.
>
> Thank you very much in advance.
Have you installed and enabled the php-mysql extension?
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ore the password in the
session. If it's not too verbose you can post the login code for each.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
y help appreciated.
Look at the date/time functions, they are very feature rich:
$today = time();
$nexteval = strtotime('+30 days', $today);
if ($today > $nexteval) {
echo 'Message';
}
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
connect('localhost:3306', 'mysql_user', 'mysql_password')){
>> echo "Ok";
>> }else{
>> echo "Failed";
>> }
>> ?>
>
In php.ini there must be a extension=mysql.so line. If there is, make
sure that it isn
;]["username"];
> $password = md5($password);
> $qid = db_query("SELECT 1 FROM users WHERE username = '$username' AND
> password = '$password'");
> /* Here my investigator */
> echo db_num_rows($qid)."-->"."S
ss it as a global by either declaring it global in
the method (global $template_dir;) or by the superglobal
$GLOBALS['template_dir']. However this is probably not the preferred
way to do it.
I would either define it as a constant define('TEMPLATE_DIR',
'templates/')
orward the user to members page. When I check the the value on
> other page it is set to the default value of the class. Please help.
>
>
> Regard,
>Sumit
>
You needs to pass the object to the next page. Look into sessions.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP Gene
do this multiple times in a large string you would need:
preg_match_all('@a([0-9]+)b@' ,"a2345678b" , $matches);
foreach($matches[1] as $match) {
print_r(str_split($match));
}
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
SESSION variables.
>
This is roughly how it works:
If you want to keep the first $user object and persist it across pages,
then you can many different things, but you need to put it in the
session. One example (you could also write a session class to take care
of all of your session stu
orization script, but I don't want to alter 100 scripts to do it.
>
> Opinions and suggestions welcomed.
>
> Thanks,
>
> tedd
.htaccess
php_value auto_prepend_file "/path/to/auth.php"
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>> I think the problem is that he didn't check that the key he used
>> actually existed before using the value it pointed to. So he got an
>> empty string for $row['Number']; because the key should have been
>> 'Part_Number'. I don't know that even E_STRICT would catch that one.
>>
>> Bob McConnell
problem is that he didn't check that the key he used
> actually existed before using the value it pointed to. So he got an
> empty string for $row['Number']; because the key should have been
> 'Part_Number'. I don't know that even E_STRICT would catch that one.
>
> Bob McConnell
What? With E_ALL or E_STRICT:
Notice: Undefined index: Number in file.php on line X
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
a warning that
> there might be a problem with the statement. All I saw is that nothing was
> being returned via the echo command.
>
> There really must be a stricter error checking that is turned on somewhere,
> isn't there?
>
>
> Thanks for your help.
>
e end, but as long as I check for that in the loop (which I should
> usually be doing anyway), it's no problem.
>
> Ben
Exactly. And if you just want redirected data you can try:
$data = file_get_contents("php://stdin");
--or--
For an array of lines:
$lines = file("php://stdin");
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ecute an ob_start() to
start buffering, the ini setting will still be off.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
scenario.
>
> The rub is that I don't know the "id", so I can't use $item[0], and I also
> don't have something like $item['name'] to use either.
>
> There's got to be an easy way to extract those.
>
> list($id, $name) = $opera
the Paschal full moon (a number between -6 and 28)
*/
$G = $Year % 19;
$C = (int)($Year / 100);
$H = (int)($C - (int)($C / 4) - (int)((8*$C+13) / 25) + 19*$G +
15) % 30;
$I = (int)$H - (int)
rror.
>>
>> --
>> Thodoris
>
>
> Matters a hell of a lot! If the url is not even partially validated at
> all ($url="poo") then it could potentially be open to all manner of
> attacks.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
&
($value)
{
if (is_int($value)) {
return $value;
} elseif (is_float($value)) {
return sprintf('%F', $value);
}
return "'" . addcslashes($value, "\000\n\r\\'\"\032") . "'";
}
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
kely. Try: lsof | grep filename.php
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>
> when I run send.php, I get the mail. But I can't call variable called
> variable. it comes as string.
> How can I correct this?
http://us2.php.net/manual/en/language.types.string.php
$message= " There is a text $variable trial. ";
--
Thanks!
-Shawn
http://w
Emax - masterminds.dk
>>
>
> Try this though:
>
>
> $var = array(array('great','alright'), 'boring');
>
> print "This is $var[0][0].";
>
> ?>
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
And since we are trying to cover all possible ways (works with double
quotes also):
$message = ' There is a text ' . $variable . ' trial. ';
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
il, compromised servers, servers known for spam, ip ranges
known to be held by spammers and *ranges that ISPs designate as dynamic
or used for subscribers (DSL, cable, dial-up customers, etc. because
they shouldn't be relaying email).
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
27;][$key]['quantity'] . "\r\n";
> }
>
> } else {
> #no products selected
>
> echo "\r\n";
> echo "Your shopping cart is empty\r\n";
> echo "\r\n";
>
> }
>
Or use unset, but unset the entire order: unset($_SESSION['order'])
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ognize that this isn't an apache support
> list. This message is being cc'd there too.
Are you sure you selected the Apache mod in make config?
1. go to /usr/ports/lang/php5
2. make deinstall
3. make config
4. select APACHE MODULES
5. select ok
6. make clean install
--
Th
rting tables into forms?
Use the CakePHP framework. Run a script, type in your database info and
it will scan all your tables and generate the forms and the list,
update, delete code for each table. It should be fully functional then
and you can tweak to your needs to add table relations etc.
;
> http://www.phpclasses.org/blog/post/104-Submit-your-site-redesign-proposal-for-the-contest.html
>
Yeah Rob, put up or shut up! ;-)
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
h without testing):
http://benchwarmersports.com/packages/basketball/2010/nba-all-star-game/somefile.php
--or--
http://benchwarmersports.com/packages/basketball/2010/somefile.php
This is because it is interpreting the slashes as path separators. You
probably need to generate absolute URLs in your links.
--
7;Something';
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
useful in helping me
> determine which PHP version numbers to do my regression tests against.
>
> Thanks.
>
Home/Dev: 5.2.15
Web: 5.1.6 (probably should update)
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Shawn McKenzie wrote:
> Rob Gould wrote:
>> You are indeed correct! Absolute URLs for everything, images, css,
>> javascript, and links fixed the issue. Took me forever to change every
>> link in the whole site, but it's happy now. Seems like there ought to
>> be
Shawn McKenzie wrote:
>>
> Home/Dev: 5.2.15
> Web: 5.1.6 (probably should update)
>
O.K. so 5.2.15 doesn't exist :-( That is the Zend debugger version I
have. I actually have Home/Dev: 5.2.4.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (htt
ersonally, if I am passing more than three parameters (sometimes even
three) I rethink my function. I'm not sure what you envision using this
function for, but the approach I use for forms and databases is always
arrays. I get an array from my forms, I insert that array into the
database, and of course I fetch arrays out of the database. These are
all indexed the same with the index as the field name of the table so
it's easy.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
es file) on
> my local running php script ?
As others have said, you are receiving the output of the config.php
after it has been parsed by PHP on the remote server. You could try
naming it config.cfg, config.conf, config.ini, config.inc, etc...
--
Thanks!
-Shawn
http://www.spidean.com
--
In your example, I would name my form inputs similar to name
="data[user_id]".
Then you just pass the $_POST['data'] array to your function.
-Shawn
Allen McCabe wrote:
> You raise some good points. I always name my input fields after the
> entity names ( eg. input ty
" from demo
> How do I get it to show up?
>
> ==
>
>
>
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml";>
>
>
> Untitled Document
>
>
>
>
>
> test
n confirm('Are you sure you want to REMOVE the
> assoication of this Area with this Inlet?')\"\">Remove
>
> Please let me know if this can be tweaked to work...
>
> Thanks!
>
You are missing PHP tags
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I see... I guess I fail at being a smart ass!
Don Wieland wrote:
> Nope this was just a snippet of my code - they are between the PHP tags.
>
> On Nov 9, 2009, at 11:38 AM, Shawn McKenzie wrote:
>
>> You are missing PHP tags
>
> Don Wieland
> D W
uot;SELECT id, title FROM videos WHERE topic1=
'$topic'");
For the second piece, in video_display.php, you'd do something like this:
$id = (int)$_GET['id'];
$result = mysql_query("SELECT * FROM videos WHERE id=$id LIMIT 1");
if($result) {
$row = mysql_fetch_array($result);
echo $row['title']."";
echo $row['description']."";
echo $row['title']."";
// etc...
} else {
die("Invalid id");
}
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Make sure to reply all...
Paul Jinks wrote:
> Thanks to everyone for replying, it's much appreciated. Thanks
> especially for the final piece of the puzzle, Shawn, I don't think I
> was going to find it on my own - the display I have in mind is a
> little different, but I
words";
break;
}
include('header.php');
include('whatever_file.php');
If you have separate pages like home.php, then something like this:
// home.php
$title = 'Home';
$description = 'Some description';
$keywords = "some, key, wor
y) in the future.
>
> sure the time could better be invested fixing a bug, writing a test or
> documenting something.
>
> s'all your call though :)
I agree. That's a PEAR coding standard, so unless you're coding a PEAR
package it doesn't matter. It's the PE
l C. 9 and 6 are the versions.
http://en.wikipedia.org/wiki/Thread_safety
Thread Safe PHP on Linux isn't recommended because some extensions may
not be thread safe but I think on Windows it's ok if you need it.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.n
ing all characters?
>
> Thank you for any hint,
>
> Merlin
No need to POST and then redirect, just POST the form to itself. If
validation fails redisplay the form using the $_POST array.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
file.txt", "r");
> while (! feof($file))
> {
$tmp = trim(fgets($file));
if ($tmp != '')
> {
$names = $tmp;
> }
> print $names."sometext\n";
> }
> fclose($file);
>
>
--
Thanks!
-Shawn
ht
ML or XML and inspect the tags you can see what
you need to do to build one. Or PP will open the HTML or XML and it
will behave as a PP presentation if you give it a PP extension instead
of htm/html. Also, a PP saved in HTML looks great in IE and has some PP
functionality.
--
Thanks!
-Shawn
http://
t;> http://www.ashleysheridan.co.uk
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Are you sure the PHP ones are running under Apache? Just to check, see
>>> what you get in the $_SERVER array. Also, have y
e which is not verified so the browser shows the usual
> warning/accept certificate message.
>
register_globals = On in php.ini?
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t; $directory = "http://mysite.com/test1/";;
>
> so when I took out that elseif then readfile("$path"); did work
>
> SO: Is there a php function that can work like file_exists( $path )
> and tell if the file exists but work from a URL like:
> $thisfile = &q
-5569
> Cell: 571-332-9210
> *
>
>
What's the entire XML document? You need a xmlns declaration as Query
is a namespace.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t me access $xml->Query->{Query:Where}. for example
>
>
>> --
>> Thanks!
>> -Shawn
>> http://www.spidean.com
>>
>>
>>
>
>
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Shawn McKenzie wrote:
> Please keep this on list.
>
> The URI for the namespace is important. Something like (not tested):
>
> | ||// use URI for Query namespace|
> | foreach ($xml->children('http://www.example.com/something') as $Query) {
> echo $Quer
Shawn McKenzie wrote:
> Shawn McKenzie wrote:
>> Please keep this on list.
>>
>> The URI for the namespace is important. Something like (not tested):
>>
>> | ||// use URI for Query namespace|
>> | foreach ($xml->children('http://www.example.co
data from a
>> file, JSON.parse can't parse it because of the back-slashes. I'm
>> pretty sure my problem is on the PHP side (since it's fine coming out
>> of JS); what do I need to do to fix this? is a preg_replace enough?
>>
>
>
> Turn off magic quo
eral ways to do it. One would be to make the Meetgreet a singleton
if it really is, and then use its static getInstance. I would probably
use a registry pattern though.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry, and then I didn't keep it on list :-(
Shawn McKenzie wrote:
> Please reply to the list. Just google for "php registry pattern". Here is a
> very basic example. There are better OOP people here than I.
>
> class Registry {
> protected $_objects = array(
Merry Christmas from Texas, USA!
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
dding another engine on my machine?
Yes, it is a install of PHP with alot of other stuff bundled in. So it
depends upon what you need and if you want to install/configure PHP
yourself with all of these additions, or if you just want to install the
Zend server.
--
Thanks!
-Shawn
http://www.s
Thanks,
> dK
> `
I'm really not sure what the + designation is for, they may have changed
the way things work since I last used the optimizer. The Zend Optimizer
used to be a byte code optimizer/cacher that also allowed you to run
Zend Guard encrypted apps that you were authorized to us
College. Tyne Metropolitan College will not be liable for
> any losses as a result of any viruses being passed on.
>
list($filename) = explode('.', $props['name']);
Or if you may need the extension:
list($filename, $extension) = explode('.', $props['name']);
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ashley Sheridan wrote:
> On Tue, 2010-01-05 at 08:45 -0600, Shawn McKenzie wrote:
>
>> Ingleby, Les wrote:
>>> Hi all, first time I have posted here so please be nice.
>>>
>>> I am using PEAR HTTP_Upload to handle multiple file uploads. What I need to
&
Andrew Ballard wrote:
> On Tue, Jan 5, 2010 at 10:20 AM, Ashley Sheridan
> wrote:
>> On Tue, 2010-01-05 at 16:18 +0100, Daniel Egeberg wrote:
>>
>>> On Tue, Jan 5, 2010 at 16:09, Shawn McKenzie wrote:
>>>> Of course this doesn't work for so
Kenneth Sande wrote:
> I use the glob function in my little homemade "web cam" page, which can
> really swell up in memory when used against a large amount of files (in
> my case around 30k files).
+1 for glob()
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General
ooo much simpler :)
>
> Cheers,
> Rob.
Definitely! Technically, header() with Location: should have an
absolute URL, though it works without one most of the time.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tring('0x');
>
> In case you haven't noticed, SQL statements are stored in strings.
And mysql_real_escape_string() expects a string as an argument.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
or another class may work (not
tested). You might even fetch an array and send it to this method. I
think either should work:
class structuresRemovalReason {
static public function cast(structuresRemovalReason $object) {
return $object;
}
}
$row = structuresRemovalRe
Shawn McKenzie wrote:
> Richard Quadling wrote:
>> Hello.
>>
>> I've got an object via odbc_fetch_object (which is of stdClass).
>>
>> I have an class structuresRemovalReason.
>>
>> I want to cast the response of odbc_fetch_object to structuresRe
Shawn McKenzie wrote:
>>
> Never mind, that was stupid. I saw that somewhere before, but obviously
> it doesn't work.
>
I found some code, maybe I redeem myself?
static public function cast(&$object, $class=__CLASS__){
if(class_exists($class)) {
t;
>
> I've never heard this to be the case.
>
I have proof to the contrary :-)
65,588 Bytes used before query
6940 rows returned
67,264 Bytes used after query
6,376,612 Bytes used after array creation
6,376,756 Bytes used after mysql_free_result
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PGRADED ";
Name :___ participants :_ Number of
people
Contact Person :___ Phone :__ Fax :____
Participants fee: RMB ¥ :__ Email :_
Participants were :___
Payment: □ 1, the cash □ 2, transfer □ 3, Wire Transfer
Book Item: □ Yes, □ No accommodation (please choose to play "√")
Note: Please return the registration receipt Division I, in order to
ensure that your registration is correct, please call again to confirm!
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gt; 3. MySQL will then try and insert the new row with the updated id.
> 4. MySQL will find that the id already exists, and will return a
> duplicate ID error.
5. A tear is rendered in the space time continuum!
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http:
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml";>
>
>
> Untitled Document
>
>
>
>
> this is a test'.$addthis.''.$row_get['FirstName'].'
> '.$row_get['LastName'].'
uldn't matter if testing is your purpose.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ents('php://memory');
And it returned nothing. The docs suck on this and it apparently
doesn't work. I see others use it with fopen(), but there is no mention
of which file functions it works with and which it doesn't.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP
Eric Lee wrote:
> On Sat, Jan 30, 2010 at 9:00 AM, Shawn McKenzie wrote:
>
>> Mari Masuda wrote:
>>
>>> Has anyone ever successfully used php://memory before? If so, what
>>> can I do to use it in my code? Thank you.
>> No, but I was intrigued to try
Daniel P. Brown wrote:
> (Typing from the DROID, so forgive the top-posting.)
>
> Shawn, would you take a few moments to submit this as a bug at
> http://bugs.php.net/? I know you well enough that, if you say the docs suck,
> they probably do.
>
> On Jan 29, 2010 10:4
ying idtype="11" and lang="fr".
> Can I use Simplexml to do this and, if so, how? If not, what should I use?
> Many thanks for any help.
> Terry
Look at the options:
$xml = simplexml_load_file('file.xml', 'SimpleXMLElement', LIBXML_NOCDATA);
--
hp 5.2.10 and register_global is OFF.
This will reproduce the error:
session_start();
$_SESSION['test'] = null;
$test = 1;
It has something to do with using a global var that is the same name as
a session var, but the session var has to be null it seems.
--
Thanks!
-Shawn
http://ww
r to Starbucks can you get to http://XX.XX.XX.XXX:8080 ?
If not, then the external server can't either. It could be a network
firewall/proxy sever in your office, or any number of things.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ype for Win2K is over in 5 months. Better upgrade.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n check for the key and if the key is set, grab
> the object associated with it.
Maybe I mis-read your post, but what's wrong with Jochem's method.
That's what I was going to propose.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nathan Rixham wrote:
> Shawn McKenzie wrote:
>> Michael A. Peters wrote:
>>> Rene Veerman wrote:
>>>> On Sat, Feb 13, 2010 at 9:05 AM, Michael A. Peters
>>>> wrote:
>>>>> How do I specify a default null object, or otherwise make the arg
have downloaded several in the past that
performed functions that I wasn't very familiar with and used them as a
learning guide and inspiration for my own code.
I don't have a problem with the profits. People submit their code
because they want to, and well, ads are part of most sites now days, sf
included.
The only slightly negative thing that I can say is that I have never
seen a post by Manuel on this list actually contributing a solution,
recommendation or any type of help other than a link to phpclasses.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Manuel Lemos wrote:
> Hello,
>
> on 02/17/2010 02:13 AM Shawn McKenzie said the following:
>> PHP framework to speak of. Manuel has authored most of them and many
>
> I suppose you meant that I authored many of the classes. I only
> submitted about 30 out of more tha
into the database but when I view it with sqlyog its f'ed up
> beyond belief. Is there another/better way to store this information?
>
> Thanks,
> Matt
>
What's f'ed up? I mean, I know what it means, but what does it look
like when you view it?
--
Thanks!
-S
o you have a PHP web app on your LAMP box that the other netbooks point
to. When they swipe the card it inputs into the text field and uses an
onchange() to submit the form and redisplay the form, or have other
fields that need to be populated (guests, etc.).
I haven't done it, but seems simple
;m going to take a look at
> MySQL Workbench when I get some time, but this project is already in
> danger of falling behind schedule :(
>
Hey Ash. When you have a spare several minutes or so, just download
MySQL Workbench. You can just suck in your existing DB and voila! Or
> _
> Hotmail: Free, trusted and rich email service.
> http://clk.atdmt.com/GBL/go/201469228/direct/01/
There are characters in the URL that have a meaning within a URL itself
(such as #). Use urlencode() before put
601 - 700 of 1191 matches
Mail list logo