Another oci8 question

Hi there,
Sorry to ask what seems to be a common question, but I've been trawling through threads and walkthroughs for a couple of days now and don't seem to be able to crack the problem I'm having.
Running Win XP with Oracle 10g installed. I'm using the Apache HTTP server that came with this DB installation, which includes PHP 4 and the oci8 extension. Now trying to connect to my DB in PHP but continually getting the familiar "Fatal Error: Call to undefined function: oci_connect()". Have also tried using OCILogin() but the problem is the same.
When I run a phpinfo() output, the oci8 module is listed, the directories for php.ini and the php extensions directory are correct, but still can't get past this error.
It just seems strange that the module is clearly getting picked up by phpinfo but yet still not able to function. Any ideas?
Thanks,
Dave

You were on the right track with the old names. With PHP 4 the names like oci_connect() are not available. Did you have a typo in the script or the post with ocilogin()? It should be ocilogon(). See Appendix C "OCI8 FUNCTION NAMES IN PHP 4 AND PHP 5" in The Underground PHP and Oracle Manual.
I can't ever recommend anyone use PHP4. It's obsolete and the version of the OCI8 extension it ships with is unstable.
Where exactly did the Apache install come from? From Oracle Apps Server?

Similar Messages

  • Another newb question: multiple virtual servers

    Hi, I have yet another ignorant question. I have several unrelated web projects that I am working on, and I would like to be able to set up a virtual server for each one for testing purposes, such as: http://project1, http://project2, http://project3. Can someone tell me if this is doable, and if there are any tutorials/resources on this for someone who has 0 experience running a web serer? Sorry for being so ignorant!

    Yes, it is doable.
    You can setup virtual server either by IP or by name.
    If you have one IP, and want to set them up by name (ex. http://project1, http://project2, http://project3) you can do so easily with this type of configuration:
    <virtual-server>
        <name>mydomain</name>
        <http-listener-name>http-listener-1</http-listener-name>
        <host>*.mydomain.com</host>
        <document-root>/www/domain</document-root>
      </virtual-server>
      <virtual-server>
        <name>myotherdomain</name>
        <http-listener-name>http-listener-1</http-listener-name>
        <host>*.myotherdomain.com</host>
        <document-root>/www/myotherdomain</document-root>
      </virtual-server>
    ....The important part here is that
    a) all virtual servers share the same HTTP listener
    b) which virtual server serves the request depends on the $HOST request header send by the client. Sun Web Server does the matching for you. It will match $HOST vs. the virtual server's host attribute. Depending on which site you connect to the right virtual server will be used.
    c) if the $HOST request header does not match any of the virtual servers, then the default virtual server defined in the HTTP listener will be used.
    To create a virtual server, use the Admin GUI, access the configuration, and then add new virtual server. Or use the following CLI command.
    wadm> create-virtual-server --config=myconfig --http-listener-name=http-listener-1 --document-root=/www/docs/myserver.com --host-pattern=myserver.com --log-file=../logs/myserver.com-error_logs myserverHost pattern will be used for matching. Some of this elements might be optional.
    Hope that helps. And keep the questions coming :D
    Edit: Also check the documentation
    Using Virtual Servers in SJS Web Server 7.0

  • Another simple questions

    Hello friends:
    Another simple question: I need to learn things about Oracle on my desktop.
    My machine runs Windows 98. Oracle has some desktop product of its Database Line?
    For example: Oracle Personal?
    And Oracle Lite? What's the main difference between Oracle Personal and
    Oracle Lite?
    Thank You
    Gracias
    Ing. Pablo Romero
    CORDOBA ARGENTINA

    1. I didn't know the answer to your first question, but I googled it and it says the item is the in-call audio boost.
    http://forums.crackberry.com/f71/flag-icon-47659/
    2. isn't this setting determined by the carrier? So it's not a setting in the phone, but when you call in to your voicemail you can change your options?

  • Another BW question about filter in the query definition

    Hi ,
    I have another question about filter in the query definition.
    <u>Question:</u>
    Which of the following objects can be filtered in the query definition?
    A. characteristic
    B. Key figure
    C. Structure
    D. Units
    E. Hierarchy
    My answer is A,B,D,E.
    The answer in the book is A,B,D
    Can anybody tell me which one is wrong?
    Thanks in advance,
    Liu Jia

    HI
    1.The answer could be A,B,D.you can not apply filters on hierarchies
    2.Whenever there is a change in Attribute data(like Location,Num etc...)that has to be reflected in all aggregates of the cube.Thsi can be done by running "ATTRIBUTE CHANGE RUN".
    sri

  • Yet another standby question...

    Hi gurus,
    Please help to resolve the quiz. I have completed manual physical standby installation. It is up and running. I then decided to install Grid Control and to use Data Guard for the standby creation. I've successfully installed GC, deployed all agents, I can see my previous standbys, life is good in short. Now, when I am trying to create the second standby for my production database using the Data Guard I stuck on a logical question:
    On the step 3 of Data Guard standby creation, there is a note, saying:
    The instance name (also referred to as the SID) must be unique on the standby host.
    Yeah, fair enough. But i can't understand what should I do next? I have:
    db_name YELLOW - primary prod
    db_name YELLOW - standby prod 1st
    and i need db_name YELLOW - standby 2nd
    But I can't create it on the same server where the first standby resides.. What options do I have? Do I need to create the second standby on another server? Do I need to kill 1st standby? Is there any way to avoid this conflict? I am confused. I have no equipment for TWO standby servers... I thought I can install there up to 9 standbys.. But it seems to be a problem.. And definitely, I cannot give my second standby other name than YELLOW as all my applications are strongly tied on db_name...
    Friends, please clarify this if you can. I am kinda lost in here..
    Thanks as usual,
    Maria

    well, that's a good question! :)
    because I don't have spare server for the standby. the question is not about: 'should I or should not put more than one standbys in one server' , but more about: 'is there any way to put two standbys with the identical db_names in one server'. I know that I probably sound unprofessional, but I just wanna know.. If the answer is 'no way', I will kill the first standby then and recreate the second one using DG with the correct name.
    Thanks for writing to me,
    M.

  • Re: another build question! (sorry lol)

    Hi all
    right, after days and days of researching all the excellent articles on here ive had to write a post! So apologies for going over old ground
    Im going to build a new CS5.5 rig (having had a guts full of Apple and their FCPX fiasco its back to pc!)
    so although i appreciate the 990x o'c is prob best option, bang for  buck is leading me down the sandybridge i7 2600k o'c option on p67 mobo with 16gb of ram (option to take to 32 down the line when the chips are out)
    anyway, im sorted on chip mobo (msi big bang marshal p67), nivida 570 etc , its the drives im struggling on!! Im edit avchd video and some after effects, small amount of 3d, and in FCP i always transcoded everything to prores. Now on cs5.5 it looks like real time performance is possible with high end hardwear.
    So mobo, ram, and chip aside, my HDD config im unsure on, ive not really got the cash to go crazy with raid controllors etc, but understand need for seperate drives, etc and tbh might even go downt he cineform route as a prores alternative (prob avoiding hassles of drive speed with avchd)
    im thinking as the SSD's are now dropping in price and the ocz are producing these 500 mb r/w speed sata 6 120gb drives for a reasonable price, would 3 of these drives (one for os, one for media , one for scracth disk ) be a good set up or is it a waste of cash and should i raid 0 from bios/mobo?
    I appreicate that 120 gb drives for media etc are small, but i would take project media from another much large backup drive and just use the 3x ssd set up as working disks for editing & os? once project over, clear out drives to larger back up and start new project!
    Its either that or i go SSD as bootdrive, but some sort of cheap raid set up for my scratch disk, media drives? prob is if i do that, from what ive read (brain dead now) i would be best off with 2 x raid 0 as scratch disk and orginal media respectively when workign with avchd
    HOWEVER, on my mobo there are only 4 sata 6 ports, so if i use one for ssd boot drive, and then im left with 3 x sata 6 ports and another 4 x sata 3 ports to raid on? how does this work? any point in getting the sata 6 drives as one would be stripped with a sata 6 drive plugged into a sata 3 port (this was my reasoning behind using 3 small sata 6 ssd's plugged to the sata 6 ports  and rest of sata 3 ports as storage and backups!
    confused lol!! I just want the overclocked sandybridge system with decent gpu card, as much ram as possible at present, but im thinking my bottleneck will be in the HDD config! any suggestions are much appreicated! im not that techy so whilst have read all the articles am more confused now (plus normally a mac user, so its out of the box configuration usually!) for what its worth looking to purchase something from scan uk in terms of parts! total build cost including a reasonable screen £2,000
    many thanks

    You have a limited budget, especially in the UK, but then don't we all?
    Going for the 980X will triple the cost of the CPU, but even when editing AVCHD material the gains are not sizable enough IMO to justify that cost differential. Add to that you will need 24 GB instead of 16 GB and that carries an additional price tag. Both factors will easily move you out of budget range if you want to have a number of disks and possibly a raid controller.
    Did you read my article To Raid or not to Raid, that is the question. It can be found under the Overview tab at the top of the page? (Currently responding from abroad on my notebook and not having the bookmarks available for easy linking). http://forums.adobe.com/thread/525263
    With media and projects I would advise against a raid0, because of the lack of redundancy. For pagefile, media cache and previews (scratch disks) raid0 is quite OK. They will be recreated if needed. The performance gain from a raid0 for media and projects over a parity raid is easily offset by the time spent on making backups. For parity raids do not use WD Caviar Blacks, but look at the Hitachi 7K3000 line of disks.
    The question of Sandy Bridge versus the old X58 platform is essentially one of 'which limitations are acceptable to me'.
    The Sandy Bridge is a great processor and at least the equal to the old i7-9xx quad cores. However, the platform, the chipset, has its shortcomings in terms of PCIe lanes. Whether that is relevant to you, only you can decide. But hey, we would be in serious trouble if Intel did not manage some progress in two years time from the i7-920 to the i7-2600K. So of course the i7-2600K shows much more potential than the almost retired 920, it is the chipset for the Sandy Bridge that is 'flawed' in comparison to the X58, but that is no surprise, since the Sandy Bridge is a 'middle-of-the-road' platform and the X58 was a 'high performance' platform.
    BFTB-wise I think that within your budget limits, you should look at the i7-2600K, but with the best disk setup you can afford.

  • Another Noobie question - readLine()

    Hi all
    This is another one of the extreme noob questions. I wrote a small program to read form a text file
        String NetworkLine = new String();
        try{
            FileReader inputFile = new FileReader("Test.txt");  //
            BufferedReader in = new BufferedReader(inputFile);
           try{
               while (in.readLine() != null){
                NetworkLine = in.readLine();
                System.out.println(NetworkLine);
           }catch (IOException e){
                System.err.println("Error in reading the file");
        }catch (FileNotFoundException e){
            e.printStackTrace();
        }My Test.txt is
    One
    Two
    Three
    Four
    Five
    Six
    without the *
    The output I get is
    Two
    Four
    Six
    I cannot figure out why only even no. lines are being read. I inserted a breakpoint at the line
              System.out.println(NetworkLine);This shows me that only even no. lines are being read by readLine(). Any help will be appreaciated.
    Thanks
    Ayesha

        String NetworkLine = new String();
        try{
            FileReader inputFile = new FileReader("Test.txt");  //
            BufferedReader in = new BufferedReader(inputFile);
           try{
               while (in.readLine() != null){  // <-- This reads a line, checks it for null ,and drops it
                NetworkLine = in.readLine(); // <-- this reads the next line
                System.out.println(NetworkLine);
           }catch (IOException e){
                System.err.println("Error in reading the file");
        }catch (FileNotFoundException e){
            e.printStackTrace();
        }So the upshot is that you print every other line.
    Corrected:
        String networkLine = new String();
        try{
            FileReader inputFile = new FileReader("Test.txt");  //
            BufferedReader in = new BufferedReader(inputFile);
           try{
               while ((networkLine = in.readLine()) != null){
                System.out.println(networkLine);
           }catch (IOException e){
                System.err.println("Error in reading the file");
        }catch (FileNotFoundException e){
            e.printStackTrace();
        }

  • Another beginner question about targeting functions

    I've read what I thought was an excellent thread about scope in EA, but I'm still not getting some of the basics (btw the thread was http://forums.adobe.com/message/5287753#5287753).
    I have "slides" in the symbol library and in the main composition compositionReady script I've set up a generic script for playing back sound. That script works fine when I bind it within the compositionReady script to a symbol and click, so I know the funciton itself is fine. My question, I'm programmatically loading the slides from the library as I go along and want to use the generic function I created in the compositionReady script, but I can't seem to create the proper syntax to call the script. Here's some that I have tried. What is the correct syntax? The script is on frame inside the slide symbol.
    //sym.getComposition().getStage().playSound();
    //sym.getComposition().playSound();
    //Edge.getComposition("CER_1").playSound();

    Thanks for having a look. Yea, it's getting to the script fine but it doesn't like the syntax. Console always indicates javascript error, which is what happens when Edge throws an exception because it doesn't know what to do. The article that Elaine posted on above gives me the sense that it might be best to change the function to a variable, then it would be in scope to call but I have parameters I'd like to pass with it and I don't think  I can pass a parameter with to a variabalized (word?) function. I know it's just me moving from ActionScript to Edge JavaScript and scope. Whereas I could always find a homebase in ActionScript with the stage, it seems that the stage in Edge is just another symbol and calling a function within the stage is never getting there. Elaine hints at putting outside the stage closure and it would be accessible, which, of course, has led me to start readying JavaScript books and learning more about scope etc. It seems like that is life as a developer. I  dont' get that, oh, better take a day or two to  understand that concept, oh, that function works now, next problem. ;-)

  • Another excel question

    hi,
    I read an excel file like this:
      CREATE OBJECT gv_excel 'Excel.Application'.
      SET PROPERTY OF gv_excel 'VISIBLE' = 0.
      CALL METHOD OF gv_excel 'Workbooks' = gv_books.
      CALL METHOD OF gv_books 'Open'
        EXPORTING
          #1 = p_file
          #2 = 1.
      FREE OBJECT gv_cell.
      FREE OBJECT gv_excel.
      FREE OBJECT gv_books.
      FREE OBJECT gv_sheet.
      CALL METHOD OF gv_excel 'QUIT'.
    the question is, why the excel process is not kill in the task manager?
    joseph

    Hi ,
    i think Rich is right.
    another problem could be if you've used an object to
    save your data:
    like :
    CALL METHOD  OF H_EXCEL 'Save' = h_save.     
    so you've to free this too:
    FREE OBJECT H_save.    
    regards Andreas

  • Windows 7 Another Preorder Question :)

    Ok bestbuy.com has taken out the 108$ deposit and now the order is confirmed so does
    bestbuy.com hold the Funds and use them when it ships or can i use the 108$ for something
    else now since the order is done and i Can just put another 108$ in there for them to take it 
    out on 10/22/09 the release date or when it ships
    i need to know if i can do this thanks 

    Well you can purchase either an upgrade or a full copy. Difference is, one has to be upgraded from a previous operating system (XP or Vista) and the other can do a clean install without the need to have a previous operating system. The Windows 7 Upgrade program provides you with an upgrade copy of Windows 7.
    Adam
    Best Buy Community - Retail, Americas
    Forum Guidelines | Terms & Conditions | Community Guidelines | Blogging Guidelines
    *Remember to mark your questions solved and click the star under the user's name to show your thanks!

  • ANOTHER formats question...

    I've been using Streamclip to convert mpeg2's to Quicktime. I've experimented with Apple MPEG4 and Sorenson 3. Not the jpeg format so much.
    My question: which is the best format for keeping the file size about the same and losing the least video quality? These files are for multiple purposes. Some will be used on the internet and others will find their way onto dvds.
    Is the option from streamclip to DV good for Final Cut and Quicktime?
    I realize the short answer to my question is that it totally depends on what I want the file for. But what I'm really looking for is a primer on the diff between Sorenson, MP4, JPEG-A(B)....etc.
    I'm moving toward using h.264 for everything, but not everyone has qt7 - you know?

    My question: which is the best format for keeping the file size about the same and losing the least video quality? These files are for multiple purposes. Some will be used on the internet and others will find their way onto dvds.
    Everybody has their own picks. However, you might also want to consider the fact that not everybody has upgraded to latest QuickTime Player.
    My general pick would be Sorenson Video 3 for general purposes. Sorenson Video 3 performed better (in terms of quality) then MPEG 4 when you limit the bitrate to some small number (i.e. small filesize). As for DVDs, you might want to export in another format for it.
    Is the option from streamclip to DV good for Final Cut and Quicktime?
    It is, assume the original file is good quality.
    But what I'm really looking for is a primer on the diff between Sorenson, MP4, JPEG-A(B)....etc.
    I made this page awhile back, you might find it useful.
    http://mac.sillydog.org/qt/compare.php
    Hope this helps.
    <small>disclaimer: I am not selling any products, but there are Google Ads in that page.</small>

  • Another resolution question.....sorry

    Thanks to Zac and Bogie for helping me out with the whole resolution questions but I do have one more....sorry. Do I need to log and capture in FCP in order to import the file into compressor to change the codec or is there another way? Maybe direct from the camera so it doesn;t get any more compressed than it is?
    Thanks again for putting up with me
    Rick

    If you shot on DV, for example, capturing it isn't compressing more. It is what it is. You shot it DV, it is DV. What's on the tape isn't "better" than what gets captured to your hard drive.
    Anyway, yes, you have to capture or ingest the footage or have some sort of existing movie file to put it into Compressor. You can't take it from the camera directly.

  • Another 5GHz question

    I have an older Extreme, not Simultaneous, that is upstairs and an iPad that lives downstairs with an old iBook G4. The iBook doesn't have much problem with its 802.11G connection over 2.4 GHz but the iPad is often weak. I'm thinking of getting a new Extreme so I can run both Bands. I'm also hoping the newer antenna will cover the house better. Going out on the deck with the iPad is almost impossible.
    Question is - if coverage is still spotty can I use the old Extreme to extend the network and pick which Band for it to extend?
    Thanks for any info.

    +It's the square version; does both bands, just not simultaneous. I already have Ethernet down to my Entertainment Center so my plan was to relocate the older Extreme down there. But now, as I think about it, would I actually be setting up another wireless network?+
    Ethernet will work much better to connect the Extremes together. Technically, you would be setting up another wireless network...but, if you configure this network with exactly the same wireless network name, security and password, then you will in effect, have a much larger wireless network. Computers and devices can "roam" from one area to another and stay on the same network. For this to occur, the older Extreme will need to be configured as a "bridge".
    +Would that work; wire the two Extremes together and have the newer broadcast from both bands and the older put out just 5GHz+
    Yes, you could try 5 GHz on the older Extreme to see if that provides the coverage you need. Keep in mind that you may need to use 2.4 GHz on this device because this signal is stronger and penetrates obstructions much more effectively than 5 GHz, which is more of a line-of-sight deal.
    Post back if you need step by step to configure the older Extreme. It's a bit tricky and users get confused easily here. One of the reasons for this is that you do not use the "extend a wireless network" setting, as you might think.

  • Another Mina Question :(

    So I have Mina running but I am using basically using it as a gateway between two legacy systems. One running a script based application on one end and the other a native C++ application. The communication works fine from one end where Mina is in the server role. My question now is is there an efficient way of working with Mina in a client role so that I can route requests to another application without blocking on the response, I can do this using the standard java.nio package but does Mina provide some mechanism?
    Thanks, S.D.

    Sure - Mina has great support for clients as well as servers!
    You'll probably want to work with the 0.9 stream rather than the 0.8 stram though, as non-blocking connects is not available in 0.8.
    You will probably also find the mailing list an invaluable tool: Trustin has built up a thriving community!
    (dev a-t directory dot apache d o t org. Prefix messages with [mina])
    ~D

  • Another dns question

    Hi
    I've been reading the posts on dns both for advanced server and standard server and feel I understand what needs to be done. But knowing what to enter is one thing, and understanding the process another. The thing that puzzles me is this.
    I have an ip provider who provides me with a static ip and has configured dns for that ipnr. If I set up dns in a advanced server is that a dns info that is independent of the dns my ip has set up? I noted that one can set up dns and forward dns requests to external nameservers after having first queried the local dns. Does this mean that my "local" dns can contain whatever i choose adn will work fine as long as I "forward" queries that cannot be solved by my "local" dns to a external nameserver? Or to put it another way - how is my advanced servers dns related to the dns set up by my ip provider? I'm hoping this question is understandable to you gurus out there.
    Thomas

    HI,
    I kind withdraw my question. I was reading apples server resources and finally found some info that pretty much explianed it to me.

Maybe you are looking for

  • LaCie external hard drive keeps losing connection to Windows 8.1 computer

    Hello all, My LaCie external hard drive (Rugged version) seems like it keeps losing connection to my brand new Windows 8.1 laptop. The laptop is an HP Pavillion 15-p 133cl TouchSmart Notebook which I just got today. Basically, every few minutes, or i

  • Takes a long time to upload a publish to folder site

    i have charter.net internet service...3mb high speed internet service... i recently built a site that is approximately 19mb...when i use either fetch or captain ftp, it takes a long time to upload (hours sometimes)...most of the time is gets hung up

  • Why cant i access one of my email accounts, and how to fix?

    I have a Iphone 5, and when for some reason one of my email accounts seems to be bugged. When I go into setting and click on it, it canels the setting menu and goes to my home screen. in the mail icon it asks for a password, I put it in and an imap e

  • Group Consolidation Error

    HI Experts, I had run a consolidation package sucessfully. But the problem i am facing currently is that when i open my evdre and check the trial balance my group consolidation shows a difference i.e balance sheet does not get tally. The difference i

  • Recording actions like Macro ?

    Hi, Does labview has option to record actions like how we do it in Excel application? Regards Gopal