Using the Auth pear package with php 4 and oracle
Hi all.
I was wondering if anybody out there has had any success (or else) using the Auth Pear package with php 4 and Oracle.
I'm trying to do just that but can't get it to work.
I've found lots of examples on the web for mysql but none for oracle...
Feedback on your experiences with this would be most appreciated.
Thanks in advance.
Rob
Hi cj.
Thanks for your advice. I came across those documents but discarded them as they didn't deal with the Auth pear package I was intending on using. I didn't want to look at other alternatives as the focus of my project was primarily on migrating existing data from a mysql setup to an oracle setup. And quickly.
I hadn't found any documentation out there on using Auth with Oracle. All examples available on the web were mysql specific.
I eventually got round to gutting the code from the package and finding the fix to my problem.
Just for info, Auth expects by default an auth table containing two fields username and password. That's lowercase table and field names.
If the table name or field names to be used differ from these then they must be explicitly defined when calling Auth. Doing so resolved my problem.
My mysql db had all lowercase naming, while my oracle db has all uppercase naming throughout.
It is important to note that the Auth package uses the table and field names quoted, thus referring to the table and fields in a case sensitive way.
So for an uppercase table and fields setup the call has to be :
$options = array(
'dsn' => "$dsn_for_my_oracledb",
'table' => 'AUTH',
'usernamecol' => 'USERNAME',
'passwordcol' => 'PASSWORD',
'db_fields' => '*',
$a = new Auth("DB", $options , "loginFunction");I hope this helps anybody trying to use this package with oracle. It worked great for me.
Pear Auth package documentation:
http://www.pear.php.net/manual/en/package.authentication.auth.intro.php
Regards,
Robert
Similar Messages
-
Can anyone please help me. I have had my ipad2 for about 5 months and it has worked fine. I am now having issues charging it. I am using the cords that came with it and the outlet that I have used to charge it in the past, but when plugged in it is recconoigzed, but states not charging. I have made sure all my updates are current and they are. Does anyone have any suggestions or helful advice that my help. Thanks in advance.
Are you plugging it into a pc? If so it will not charge the iPad as there is not enough power try the back USB ports, may work.
If it isn't plugged into a pc and plugged into your socket could be faulty socket adapter. -
My MiFi jetpack 6620 doesn't charge. I've plugged it into the charger that comes with it, and only that charger. But nothing happens. The battery keeps getting drained. I first attempted when it was at 16%. After being on the charger a few hours, it dropped to 15%, then 14%. I'm currently at 12%. I've tried different outlets at different locations. And I've tested the charger cable on my phone and it charges that just fine. Which is more likely: the battery is defective or there is a problem with the jetpack itself? and the real kicker is that I've only had it for a week.
Happy Friday cjyoyomasta! I wanted to reach out to you to see if you received the assistance that you need with your jetpack. May I ask have you took the device to the store for assistance? If so, what was the results? If you can provie us with a status update then we can assist, if still needed.
Thank you…
ArnettH_VZW
Follow us on Twitter @VZWSupport -
Hi every ones:
I'm develop some applications using PHP and Oracle and php give me a lot of advantage. in bouth way of access to a database, OCI and mod plsql.
How can i say to Oracle THANKS FOR TAKE SERIOUS PHP TECNOLOGY!!!
I work actually for a company that implement all (Microsoft) and i want find a job with PHP and Oracle programming. Any body have idea that where i need look?How can i say to Oracle THANKS FOR TAKE SERIOUS PHP
TECNOLOGY!!!You just did! Thanks!
You can help Oracle with scripting languages even more, by completing the questionnaire on scripting langauges at:
http://www.oracle.com/go/?&Src=1545492&Act=10
Alison -
How can I use the latest Berkeley DB with SQL API in PHP app?
Hi,
I'm a PHP developer and I already use Berkeley DB in my applications using the [DBA Functions|http://www.php.net/manual/en/ref.dba.php] . I'm very interested in the latest Berkeley DB release. How can I write a PHP program that uses the SQL API of the latest Berkeley DB release?Hi Kurt,
I'm not a PHP expert (far from it), but the simplest way to get started with the Berkeley DB SQL interface is to run Berkeley DB's <tt>configure</tt> script with the <tt>--enable-sql_compat</tt> flag. This will create a library called <tt>libsqlite3.so</tt> that you can use as a drop-in replacement for SQLite at the API level. Database files still need to be converted with a SQLite <tt>.dump</tt> followed by a <tt>.read</tt> with the <tt>dbsql</tt> tool.
This should then allow the existing PHP driver and application code to switch over to Berkeley DB without any code changes by setting <tt>LD_LIBRARY_PATH</tt> to find the Berkeley DB version of <tt>libsqlite3.so</tt> ahead of SQLite. Note that any other code that relies on SQLite will also run against Berkeley DB with this configuration, which can cause problems if the system libraries use SQLite (for example, on Mac OS X). For that reason, a better long term solution would be for the PHP SQLite driver to have a mode where it loads <tt>libdbsql.so</tt> rather than <tt>sqlite3.so</tt>.
I hope this helps, please let us know how you go because I'm sure lots of other PHP developers will be interested in the answer.
Regards,
Michael Cahill, Oracle Berkeley DB. -
I have a iPad and iPhone with the same Apple ID, but on Game Center I have used the same id for both devices and they are two different profiles and I was wondering how to have one of the accounts on both devices.
Hi Jamesdwills,
Welcome to the Support Communities!
If you are using the same Apple ID on both devices, the Game Center profile should be the same.
Check out this information from the iPad User Guide. Try signing out of the Game Center on both devices and then sign back in with the correct Apple ID:
Using Game Center
http://support.apple.com/kb/ht4314
Game Center settings - iPad User Guide
http://help.apple.com/ipad/7/#/iPad9a13d039
Game Center settings
Go to Settings > Game Center, where you can:
Sign out (tap your Apple ID)
Allow invites
Let nearby players find you
Edit your Game Center profile (tap your nickname)
Get friend recommendations from Contacts or Facebook
Specify which notifications you want for Game Center. Go to Settings > Notifications > Game Center. If Game Center doesn’t appear, turn on Notifications.
Change restrictions for Game Center. Go to Settings > General > Restrictions.
Cheers,
- Judy -
I have a new ipod and added all my apps to it. When I sign in to Words with Friends it says that "user name is already in use" because it is linked to my old ipod. How can I use the same user name with my new ipod?
Was the iPod setup via iTunes on this computer?
Setup via wifi?
Was the iPod previous synced to another iTunes library/computer?
Have you successfully synced from this iTunes library/computer before?
Do the songs play in iTunes?
Do you have the right boxes checked to sync?
iTunes: Syncing media content to iOS devices and iPod
Try syncing using the manual method -
Hello, I would like to know if I can use the same nike Ipod sensor with two different ipods. I want to use the same sensor sometims with an Ipod touch and sometimes with an Ipod Nano, I want my trainings with both Ipods to be registered to the same account. I want them to be registered to only one account, not as it had been used by two different people.
Of course. You should use the same AppleID on all your devices. Why would you create a new one?
Matt -
My gen 3 iPod Touch seems to have duplicated all my music since updating to IOS 5 so that it now only holds half as much. What can I do about it? I'm using the same iTunes library with OS 10.6 and all software up to date.
Is the camera damaged? Could be a hardware problem.
Try:
Close the Camera app in the multitasking bar, then try again.
Restart/Reset/Restore your iPod. In that order. -
Can I share my iCloud storage with my wife? I'm interested in using the storage for both phones, hers and mine.
You will not want to do that and you should just have two 5GB free accounts.
Too much risk of merging or losing data. -
Is there any way to darken the gridlines in iCal? I'm using it on a Macbook with Lion and find it difficult to see the gridlines on the iCal display.
''Problem:'' For whatever reason, NoScript is stopping Runescape Community Toolbar from working properly which freezes your first Firefox window.
''Fix:'' Uninstall the toolbar. Disable NoScript. Install the toolbar. Add your RS account to it and make sure it works, then Enable NoScript again.
EDIT: Posted a fix earlier that was wrong. Corrected to the right one, sorry ^_^ Answer was on Runescape Forums. -
I am unable to connect to my Wi-Fi at home, but am able to connect at work. Using my new iPad 4G with cellular and a Motorola SBG6580. My iPad 3G Wi-Fi only connects just fine; the 4G just "spins the gear."
Some things to try first:
1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
4. Go into your router security settings and change from WEP to WPA with AES.
5. Renew IP Address: (especially if you are droping internet connection)
• Launch Settings app
• Tap on Wi-Fi
• Tap on the blue arrow of the Wi-Fi network that you connect to from the list
• In the window that opens, tap on the Renew Lease button
~~~~~~~~~~~~~~~~~~~~~~~~~
iOS 6 Wifi Problems/Fixes
Fix For iOS 6 WiFi Problems?
http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
iOS 6 iPad 3 wi-fi "connection fix" for netgear router
http://www.youtube.com/watch?v=XsWS4ha-dn0
Apple's iOS 6 Wi-Fi problems
http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
~~~~~~~~~~~~~~~~~~~~~~~
Look at iOS Troubleshooting Wi-Fi networks and connections http://support.apple.com/kb/TS1398
iPad: Issues connecting to Wi-Fi networks http://support.apple.com/kb/ts3304
WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
How to Fix: My iPad Won't Connect to WiFi
http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
iOS: Recommended settings for Wi-Fi routers and access points http://support.apple.com/kb/HT4199
How to Quickly Fix iPad 3 Wi-Fi Reception Problems
http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
iPad Wi-Fi Problems: Comprehensive List of Fixes
http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
Fix iPad Wifi Connection and Signal Issues http://www.youtube.com/watch?v=uwWtIG5jUxE
Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
Unable to Connect After iOS Update - saw this solution on another post.
https://discussions.apple.com/thread/4010130
Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
~~~~~~~~~~~~~~~
If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
Cheers, Tom -
Hi just bought an iphone 4 today tried to activate the phone and it won't let me..I go through language ect and it says activateing iphone may take a few mins then just stops and message on screen says that the sim carrier is not supported and please use the sim which came with the phone(which i am..& have tried another sim and still not working)........It wont let me bypass have tried reseting phone and restarting it nothing helps????
Your iPhone is locked to the original carrier who sold it
Only they can unlock it
The sim the iPhone refers to is the one the iPhone is locked to
You will have to contact them -
I just finished downloading and attempting the install of ios 7 on my iPhone 5. I'm using the newest version of iTunes.
And now, I'm stuck at the screen with the iTunes logo and the plug. But no matter how many times I try, recovery mode will not work. My phone is currently useless unless I can figure this out.No problem, glad to help!
Update: my PC USB hub was connected to a USB 3 port, I connected the 30 pin cable directly to my PC, And the restore worked just fine. Restored phone from iCloud backup and seems to be working fine. -
Embedding inline HTML data in XML using the mx:XML tag with <; and >;
What is best practice for embedding HTML within the
<mx:XML> tag? Programmatically, I can implement this
successfully:
[Bindable]
public var xmlDP:XML = <component data="<" />;
However, I get the following error if I try to store the same
data inline in an mx:XML tag, as such:
<mx:XML id="xmlDP">
<component data="<" />
</mx:XML>
Error #1095: XML parser failure: Unterminated attribute.
If I change the MXML tag as follows, it works fine:
<mx:XML id="xmlDP">
<component data="&lt;" />
</mx:XML>
Unfortunately, I also can not source the mx:XML tag to an XML
file which uses < or > codes, as it yields the same
results. This leads me to believe that the <mx:XML> tag does
not support the special character codes for < and >, but why?
Incidentally, this code also gives a 1095 error:
<mx:XML id="xmlDP">
<component data="<" />
</mx:XML>
This is causing an issue with my source data as it is not
hand typed into Flex, and standard XML supports the < and
> codes. I have tried a full HTML string, as shown below,
but this also generates the error:
<mx:XML id="xmlDP">
<component data="<b>Test</b>"
/>
</mx:XML>
Many thanks for any input you may have!I’m generating the XML source file with
Microsoft’s XML Notepad 2007. It will encode invalid special
characters automatically. My understanding is that this is the
proper way to handle the less than symbol in a XML string, that is
to say using the < code.
With respect to the escape and un-escape methods, I am able
to successfully implement these in AS, but not in MXML. This makes
sense considering they are AS methods, but I was hoping to be able
to do something like:
<mx:XML id="xmlDP">
<component data="escape('<');" />
</mx:XML>
This gives the following compilation error:
The value of attribute "data" must not contain the '<'
character.
As does using the escape character as such:
<mx:XML id="xmlDP">
<component data="\<" />
</mx:XML>
Below is an example of what the escape character may be used
for in AS:
var myString:String = "\"";
trace(myString);
// result: "
Likewise, I can escape the < character as such:
var myString:String = escape("<");
trace(myString);
// result: %3C
<mx:XML id="xmlDP">
<component data="%3C" />
</mx:XML>
trace(un-escape(xmlDP.@data));
// result: <
As you can see, using %3C and unescaping in AS will yield the
correct result; however, this is not a practical method of
representing the data in MXML as I would have to write an AS method
to un-escape the XML string anyway, so I might as well just store
the data in AS to begin with. I was hoping for a way to source an
mx:XML object, without having to load it into ActionScript
manually. Here’s an example of the functionality I would
expect:
<mx:XML id="xmlDP">
<component data=">" />
</mx:XML>
trace(xmlDP.@data);
// result: >
Only this does not work for the less than symbol. I’m
assuming at this point that this is a bug in the Flex compiler.
Thanks again for your help troubleshooting this one!
Maybe you are looking for
-
ITunes running as a process in Task Manager but not opening up
Hi all I got an iPod nano a week ago, and since I installed the CD for the iPod on my computer, iTunes doesn't open. I removed QT and iTunes and the iPod updater and reinstalled them, but to no avail. I took my computer to the local Apple store and t
-
Best way to deal with hard coded variables in a package
There is a plsql package that reads a line from a file, parses the data, does a ton of sql operation with it (select update, inserts, calculations) and then writes the output to an output file. The file names and the firectories are retieved from a d
-
Create view with dynamic from-clause
Dear all, you might have some ideas to help me out of my issue that i just "created myself" ;-) i have a unknown and non-constant amount of tables using the the same table-structure and i do have a master table that contains all names of these kind o
-
Ping failes for fqdn with two records, first record unavailable
Scenario is: 10.80.56.147 = DOWN (unavailable) 10.80.56.148 = UP (available) bash-2.05# nslookup cscs.floreffe.se Server: idns.floreffe.se Address: 10.80.56.186 Name: cscs.floreffe.se Addresses: 10.80.56.147, 10.80.56.148 bash-2.05# ping cscs.floreff
-
If I run windows 7 on my macbook, can I use microsoft access?